com.typhoon.unitysdk 1.0.91 → 1.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # 更新日志
2
- ## [1.0.91] - 2024-01-13
2
+ ## [1.0.93] - 2024-01-23
3
3
 
4
4
  ### 修复
5
+ * 抖音快捷发布GUIbug
6
+
7
+
8
+ ## [1.0.92] - 2024-01-13
9
+
10
+ ### 修复
11
+ * 输入框中文bug
12
+
13
+
14
+ ## [1.0.91] - 2024-01-13
15
+
16
+ ### 修复
5
17
  * 样式出错问题
6
18
 
7
19
 
@@ -158,7 +158,7 @@ namespace TyphoonUnitySDK
158
158
  rectView.height -= 8;
159
159
  rectView.center = center;
160
160
  GUILayout.BeginArea(rectView);
161
- _inputSearch = GUILayout.TextField(_inputSearch);
161
+ _inputSearch = EditorGUILayout.TextField(_inputSearch);
162
162
  var low = string.IsNullOrWhiteSpace(_inputSearch) ? null : _inputSearch.ToLower();
163
163
  _scroll = GUILayout.BeginScrollView(_scroll);
164
164
 
@@ -462,7 +462,7 @@ namespace TyphoonUnitySDK
462
462
  menu.ShowAsContext();
463
463
  }
464
464
 
465
- modify.VariableValue = GUILayout.TextField(modify.VariableValue);
465
+ modify.VariableValue = EditorGUILayout.TextField(modify.VariableValue);
466
466
  GUILayout.EndHorizontal();
467
467
  }
468
468
 
@@ -580,7 +580,7 @@ namespace TyphoonUnitySDK
580
580
  }
581
581
 
582
582
  var tem = modify.VariableValue;
583
- modify.VariableValue = GUILayout.TextField(modify.VariableValue);
583
+ modify.VariableValue = EditorGUILayout.TextField(modify.VariableValue);
584
584
  if (tem != modify.VariableValue)
585
585
  {
586
586
  VariablePreset.Default.Modify(modify.VariableName, modify.VariableValue);
@@ -192,7 +192,7 @@ namespace TyphoonUnitySDK
192
192
 
193
193
  GUILayout.Space(1);
194
194
  if (GUILayout.Button(new GUIContent(EditorIcons.icon_refresh, "刷新"), Styles.Square.Btn,
195
- GUILayout.Width(40), GUILayout.Height(20)))
195
+ GUILayout.Width(32), GUILayout.Height(20)))
196
196
  {
197
197
  ReloadSettings();
198
198
  Repaint();
@@ -214,8 +214,10 @@ namespace TyphoonUnitySDK
214
214
  var rectSearch = rectLeftMenu;
215
215
  rectSearch.y = rectToolbar.yMax;
216
216
  rectSearch.height = 22;
217
- InputTxtSearchSetting = GUI.TextField(rectSearch, InputTxtSearchSetting);
218
- if (string.IsNullOrEmpty(InputTxtSearchSetting))
217
+ var searchControl = $"{nameof(PublishWindow)}.InputTxtSearchSetting";
218
+ GUI.SetNextControlName(searchControl);
219
+ InputTxtSearchSetting = EditorGUI.TextField(rectSearch, InputTxtSearchSetting);
220
+ if (string.IsNullOrEmpty(InputTxtSearchSetting) && GUI.GetNameOfFocusedControl() != searchControl)
219
221
  {
220
222
  GUI.Label(rectSearch, "搜索...", Styles.ItalicLabel);
221
223
  }
@@ -51,7 +51,7 @@ namespace TyphoonUnitySDK
51
51
  toolbarArea.center = center;
52
52
  GUILayout.BeginArea(toolbarArea);
53
53
  GUILayout.BeginHorizontal();
54
- _inputTxt = GUILayout.TextField(_inputTxt);
54
+ _inputTxt = EditorGUILayout.TextField(_inputTxt);
55
55
  GUI.SetNextControlName("input");
56
56
  if (GUILayout.Button("+新建变量", GUILayout.Width(80)))
57
57
  {
@@ -89,7 +89,7 @@ namespace TyphoonUnitySDK
89
89
  menu.ShowAsContext();
90
90
  }
91
91
 
92
- item.VariableValue = GUILayout.TextField(item.VariableValue);
92
+ item.VariableValue = EditorGUILayout.TextField(item.VariableValue);
93
93
  GUILayout.EndHorizontal();
94
94
  }
95
95
 
@@ -94,7 +94,7 @@ namespace TyphoonUnitySDK
94
94
  {
95
95
  GUILayout.BeginHorizontal();
96
96
  GUILayout.Label("发布目录", GUILayout.Width(146));
97
- arg.DST = GUILayout.TextField(arg.DST);
97
+ arg.DST = EditorGUILayout.TextField(arg.DST);
98
98
  if (GUILayout.Button("打开", GUILayout.Width(50)))
99
99
  {
100
100
  if (Directory.Exists(arg.DST))
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.91","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.0.91] - 2024-01-13\r\n\r\n### 修复\n* 样式出错问题\r\n\r\n","major_flag":false,"write_time_stamp":1705078412000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.93","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.0.93] - 2024-01-23\r\n\r\n### 修复\n* 抖音快捷发布GUIbug\r\n\r\n","major_flag":false,"write_time_stamp":1706020228000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}