Skip to content

Commit 0b831b0

Browse files
committed
补充文件
1 parent 5feca9f commit 0b831b0

File tree

5 files changed

+323
-8
lines changed

5 files changed

+323
-8
lines changed

Assets/Script/Core/Editor/Data/DataEditorWindow.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
public class DataEditorWindow : EditorWindow
1414
{
15+
private const string FontPlayerPrefKey = "DataEditorWindow.FontKey";
16+
1517
UILayerManager m_UILayerManager;
1618
static DataEditorWindow win;
1719

@@ -44,6 +46,11 @@ void OnEnable()
4446
configFileNames.AddRange(PathUtils.GetDirectoryFileNames(m_directoryPath, new string[] { ".txt" }, false, false));
4547

4648
}
49+
private void OnDestroy()
50+
{
51+
PlayerPrefs.SetInt(FontPlayerPrefKey, nowButtonFontSize);
52+
PlayerPrefs.Save();
53+
}
4754
public static void Refresh()
4855
{
4956
if (win)
@@ -430,8 +437,10 @@ private void GridTopFunctionGUI()
430437
//字体大小调节
431438
helpBoxStyle.fontSize = helpBoxStyle.font.fontSize;
432439
oldButtonFontSize = helpBoxStyle.fontSize;
433-
if (nowButtonFontSize == 0)
434-
nowButtonFontSize = oldButtonFontSize;
440+
if (nowButtonFontSize <= 0)
441+
{
442+
nowButtonFontSize = PlayerPrefs.GetInt(FontPlayerPrefKey, oldButtonFontSize);
443+
}
435444

436445
nowButtonFontSize = EditorGUILayout.IntSlider("字体大小", nowButtonFontSize, oldButtonFontSize / 2, MaxButtonFontSize);
437446
GUILayout.FlexibleSpace();

Assets/Script/Core/Lua/ToLua/PluginsRes/CString.dll.meta

Lines changed: 78 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Script/Core/Lua/ToLua/PluginsRes/Debugger.dll.meta

Lines changed: 78 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Script/Core/Lua/ToLua/PluginsRes/x86/tolua.dll.meta

Lines changed: 78 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)