com.typhoon.unitysdk 1.0.90 → 1.0.92

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.
Files changed (158) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/Editor/GUIDrawer.cs +1 -1
  3. package/Editor/HistoryVersionWindow.cs +6 -4
  4. package/Editor/OppoMiniConfig.cs +7 -7
  5. package/Editor/PreferencesWindow.cs +1 -2
  6. package/Editor/PublishSettingGUIDrawer.cs +2 -2
  7. package/Editor/PublishSettingInspector.cs +2 -2
  8. package/Editor/PublishWindow.cs +24 -21
  9. package/Editor/Styles.cs +474 -181
  10. package/Editor/Texture/dark/blue_active.png +0 -0
  11. package/Editor/Texture/dark/blue_active.png.meta +144 -0
  12. package/Editor/Texture/dark/blue_hover.png +0 -0
  13. package/Editor/Texture/dark/blue_hover.png.meta +144 -0
  14. package/Editor/Texture/dark/blue_normal.png +0 -0
  15. package/Editor/Texture/dark/blue_normal.png.meta +144 -0
  16. package/Editor/Texture/dark/green_active.png +0 -0
  17. package/Editor/Texture/dark/green_active.png.meta +144 -0
  18. package/Editor/Texture/dark/green_hover.png +0 -0
  19. package/Editor/Texture/dark/green_hover.png.meta +144 -0
  20. package/Editor/Texture/dark/green_normal.png +0 -0
  21. package/Editor/Texture/dark/green_normal.png.meta +144 -0
  22. package/Editor/Texture/dark/help_box.png +0 -0
  23. package/Editor/Texture/dark/help_box.png.meta +144 -0
  24. package/Editor/Texture/dark/menu_active.png +0 -0
  25. package/Editor/Texture/dark/menu_active.png.meta +144 -0
  26. package/Editor/Texture/dark/n_active.png +0 -0
  27. package/Editor/Texture/dark/n_active.png.meta +144 -0
  28. package/Editor/Texture/dark/n_hover.png +0 -0
  29. package/Editor/Texture/dark/n_hover.png.meta +144 -0
  30. package/Editor/Texture/dark/n_normal.png +0 -0
  31. package/Editor/Texture/dark/n_normal.png.meta +144 -0
  32. package/Editor/Texture/dark/red_active.png +0 -0
  33. package/Editor/Texture/dark/red_active.png.meta +144 -0
  34. package/Editor/Texture/dark/red_hover.png +0 -0
  35. package/Editor/Texture/dark/red_hover.png.meta +144 -0
  36. package/Editor/Texture/dark/red_normal.png +0 -0
  37. package/Editor/Texture/dark/red_normal.png.meta +144 -0
  38. package/Editor/Texture/dark/square_b_active.png +0 -0
  39. package/Editor/Texture/dark/square_b_active.png.meta +144 -0
  40. package/Editor/Texture/dark/square_b_hover.png +0 -0
  41. package/Editor/Texture/dark/square_b_hover.png.meta +144 -0
  42. package/Editor/Texture/dark/square_b_normal.png +0 -0
  43. package/Editor/Texture/dark/square_b_normal.png.meta +144 -0
  44. package/Editor/Texture/dark/square_g_active.png +0 -0
  45. package/Editor/Texture/dark/square_g_active.png.meta +144 -0
  46. package/Editor/Texture/dark/square_g_hover.png +0 -0
  47. package/Editor/Texture/dark/square_g_hover.png.meta +144 -0
  48. package/Editor/Texture/dark/square_g_normal.png +0 -0
  49. package/Editor/Texture/dark/square_g_normal.png.meta +144 -0
  50. package/Editor/Texture/dark/square_menu_active.png +0 -0
  51. package/Editor/Texture/dark/square_menu_active.png.meta +144 -0
  52. package/Editor/Texture/dark/square_n_active.png +0 -0
  53. package/Editor/Texture/dark/square_n_active.png.meta +144 -0
  54. package/Editor/Texture/dark/square_n_hover.png +0 -0
  55. package/Editor/Texture/dark/square_n_hover.png.meta +144 -0
  56. package/Editor/Texture/dark/square_n_normal.png +0 -0
  57. package/Editor/Texture/dark/square_n_normal.png.meta +144 -0
  58. package/Editor/Texture/dark/square_r_active.png +0 -0
  59. package/Editor/Texture/dark/square_r_active.png.meta +144 -0
  60. package/Editor/Texture/dark/square_r_hover.png +0 -0
  61. package/Editor/Texture/dark/square_r_hover.png.meta +144 -0
  62. package/Editor/Texture/dark/square_r_normal.png +0 -0
  63. package/Editor/Texture/dark/square_r_normal.png.meta +144 -0
  64. package/Editor/Texture/dark/square_y_active.png +0 -0
  65. package/Editor/Texture/dark/square_y_active.png.meta +144 -0
  66. package/Editor/Texture/dark/square_y_hover.png +0 -0
  67. package/Editor/Texture/dark/square_y_hover.png.meta +144 -0
  68. package/Editor/Texture/dark/square_y_normal.png +0 -0
  69. package/Editor/Texture/dark/square_y_normal.png.meta +144 -0
  70. package/Editor/Texture/dark/title_bar.png +0 -0
  71. package/Editor/Texture/dark/title_bar.png.meta +144 -0
  72. package/Editor/Texture/dark/yellow_active.png +0 -0
  73. package/Editor/Texture/dark/yellow_active.png.meta +144 -0
  74. package/Editor/Texture/dark/yellow_hover.png +0 -0
  75. package/Editor/Texture/dark/yellow_hover.png.meta +144 -0
  76. package/Editor/Texture/dark/yellow_normal.png +0 -0
  77. package/Editor/Texture/dark/yellow_normal.png.meta +144 -0
  78. package/Editor/Texture/dark.meta +8 -0
  79. package/Editor/Texture/icon/error.png +0 -0
  80. package/Editor/Texture/icon/error.png.meta +144 -0
  81. package/Editor/Texture/icon/info.png +0 -0
  82. package/Editor/Texture/icon/info.png.meta +144 -0
  83. package/Editor/Texture/icon/warning.png +0 -0
  84. package/Editor/Texture/icon/warning.png.meta +144 -0
  85. package/Editor/Texture/icon.meta +8 -0
  86. package/Editor/Texture/light/blue_active.png +0 -0
  87. package/Editor/Texture/light/blue_active.png.meta +144 -0
  88. package/Editor/Texture/light/blue_hover.png +0 -0
  89. package/Editor/Texture/light/blue_hover.png.meta +144 -0
  90. package/Editor/Texture/light/blue_normal.png +0 -0
  91. package/Editor/Texture/light/blue_normal.png.meta +144 -0
  92. package/Editor/Texture/light/green_active.png +0 -0
  93. package/Editor/Texture/light/green_active.png.meta +144 -0
  94. package/Editor/Texture/light/green_hover.png +0 -0
  95. package/Editor/Texture/light/green_hover.png.meta +144 -0
  96. package/Editor/Texture/light/green_normal.png +0 -0
  97. package/Editor/Texture/light/green_normal.png.meta +144 -0
  98. package/Editor/Texture/light/help_box.png +0 -0
  99. package/Editor/Texture/light/help_box.png.meta +144 -0
  100. package/Editor/Texture/light/menu_active.png +0 -0
  101. package/Editor/Texture/light/menu_active.png.meta +144 -0
  102. package/Editor/Texture/light/n_active.png +0 -0
  103. package/Editor/Texture/light/n_active.png.meta +144 -0
  104. package/Editor/Texture/light/n_hover.png +0 -0
  105. package/Editor/Texture/light/n_hover.png.meta +144 -0
  106. package/Editor/Texture/light/n_normal.png +0 -0
  107. package/Editor/Texture/light/n_normal.png.meta +144 -0
  108. package/Editor/Texture/light/red_active.png +0 -0
  109. package/Editor/Texture/light/red_active.png.meta +144 -0
  110. package/Editor/Texture/light/red_hover.png +0 -0
  111. package/Editor/Texture/light/red_hover.png.meta +144 -0
  112. package/Editor/Texture/light/red_normal.png +0 -0
  113. package/Editor/Texture/light/red_normal.png.meta +144 -0
  114. package/Editor/Texture/light/square_b_active.png +0 -0
  115. package/Editor/Texture/light/square_b_active.png.meta +144 -0
  116. package/Editor/Texture/light/square_b_hover.png +0 -0
  117. package/Editor/Texture/light/square_b_hover.png.meta +144 -0
  118. package/Editor/Texture/light/square_b_normal.png +0 -0
  119. package/Editor/Texture/light/square_b_normal.png.meta +144 -0
  120. package/Editor/Texture/light/square_g_active.png +0 -0
  121. package/Editor/Texture/light/square_g_active.png.meta +144 -0
  122. package/Editor/Texture/light/square_g_hover.png +0 -0
  123. package/Editor/Texture/light/square_g_hover.png.meta +144 -0
  124. package/Editor/Texture/light/square_g_normal.png +0 -0
  125. package/Editor/Texture/light/square_g_normal.png.meta +144 -0
  126. package/Editor/Texture/light/square_menu_active.png +0 -0
  127. package/Editor/Texture/light/square_menu_active.png.meta +144 -0
  128. package/Editor/Texture/light/square_n_active.png +0 -0
  129. package/Editor/Texture/light/square_n_active.png.meta +144 -0
  130. package/Editor/Texture/light/square_n_hover.png +0 -0
  131. package/Editor/Texture/light/square_n_hover.png.meta +144 -0
  132. package/Editor/Texture/light/square_n_normal.png +0 -0
  133. package/Editor/Texture/light/square_n_normal.png.meta +144 -0
  134. package/Editor/Texture/light/square_r_active.png +0 -0
  135. package/Editor/Texture/light/square_r_active.png.meta +144 -0
  136. package/Editor/Texture/light/square_r_hover.png +0 -0
  137. package/Editor/Texture/light/square_r_hover.png.meta +144 -0
  138. package/Editor/Texture/light/square_r_normal.png +0 -0
  139. package/Editor/Texture/light/square_r_normal.png.meta +144 -0
  140. package/Editor/Texture/light/square_y_active.png +0 -0
  141. package/Editor/Texture/light/square_y_active.png.meta +144 -0
  142. package/Editor/Texture/light/square_y_hover.png +0 -0
  143. package/Editor/Texture/light/square_y_hover.png.meta +144 -0
  144. package/Editor/Texture/light/square_y_normal.png +0 -0
  145. package/Editor/Texture/light/square_y_normal.png.meta +144 -0
  146. package/Editor/Texture/light/title_bar.png +0 -0
  147. package/Editor/Texture/light/title_bar.png.meta +144 -0
  148. package/Editor/Texture/light/yellow_active.png +0 -0
  149. package/Editor/Texture/light/yellow_active.png.meta +144 -0
  150. package/Editor/Texture/light/yellow_hover.png +0 -0
  151. package/Editor/Texture/light/yellow_hover.png.meta +144 -0
  152. package/Editor/Texture/light/yellow_normal.png +0 -0
  153. package/Editor/Texture/light/yellow_normal.png.meta +144 -0
  154. package/Editor/Texture/light.meta +8 -0
  155. package/Editor/VariablePresetWindow.cs +3 -4
  156. package/Editor/VivoMiniConfig.cs +7 -7
  157. package/Editor/WxMiniConfig.cs +1 -1
  158. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # 更新日志
2
- ## [1.0.90] - 2024-01-07
2
+ ## [1.0.92] - 2024-01-13
3
3
 
4
4
  ### 修复
5
+ * 输入框中文bug
6
+
7
+
8
+ ## [1.0.91] - 2024-01-13
9
+
10
+ ### 修复
11
+ * 样式出错问题
12
+
13
+
14
+ ## [1.0.90] - 2024-01-07
15
+
16
+ ### 修复
5
17
  * 字体丢失问题
6
18
 
7
19
 
@@ -98,7 +98,7 @@ namespace TyphoonUnitySDK
98
98
  {
99
99
  var click = GUILayout.Button(
100
100
  new GUIContent($"{content}", foldout ? EditorIcons.icon_drop_arrow : EditorIcons.icon_arrow_right),
101
- Styles.TitleFoldoutButton, option);
101
+ Styles.Square.BtnLeft, option);
102
102
  if (click)
103
103
  {
104
104
  return !foldout;
@@ -124,7 +124,7 @@ namespace TyphoonUnitySDK
124
124
  {
125
125
  if (History.Count <= 0)
126
126
  {
127
- GUILayout.Label("读取失败,请检查更新后再重试", Styles.BoldTitle);
127
+ GUILayout.Label("读取失败,请检查更新后再重试", Styles.BoldLabel);
128
128
  }
129
129
  else
130
130
  {
@@ -146,6 +146,8 @@ namespace TyphoonUnitySDK
146
146
  rectRight.width = rect.xMax - rectRight.x;
147
147
  DrawRightGUI(rectRight);
148
148
  }
149
+
150
+ Repaint();
149
151
  }
150
152
 
151
153
  private void DrawLeftMenu(Rect rect)
@@ -156,7 +158,7 @@ namespace TyphoonUnitySDK
156
158
  rectView.height -= 8;
157
159
  rectView.center = center;
158
160
  GUILayout.BeginArea(rectView);
159
- _inputSearch = GUILayout.TextField(_inputSearch);
161
+ _inputSearch = EditorGUILayout.TextField(_inputSearch);
160
162
  var low = string.IsNullOrWhiteSpace(_inputSearch) ? null : _inputSearch.ToLower();
161
163
  _scroll = GUILayout.BeginScrollView(_scroll);
162
164
 
@@ -240,7 +242,7 @@ namespace TyphoonUnitySDK
240
242
  title += $" [重大修复版本]";
241
243
  }
242
244
 
243
- GUILayout.Label(title, Styles.BoldTitle, GUILayout.Height(24));
245
+ GUILayout.Label(title, Styles.BoldLabel, GUILayout.Height(24));
244
246
  GUILayout.Label($"发布时间: {_select.GetPublishTimeString()}", Styles.ItalicLabel);
245
247
  GUILayout.Space(5);
246
248
  GUILayout.Label("版本更新日志:", Styles.BoldLabel);
@@ -289,7 +291,7 @@ namespace TyphoonUnitySDK
289
291
  var used = CurrentVersion.Version == _select.Version;
290
292
  GUI.enabled = !used;
291
293
  var txt = used ? "使用中" : $"安装";
292
- if (GUI.Button(draw, txt, Styles.BoldButton))
294
+ if (GUI.Button(draw, txt, Styles.BtnGreen))
293
295
  {
294
296
  UniEditor.UpdateInstallVersion(_select);
295
297
  }
@@ -64,7 +64,7 @@ namespace TyphoonUnitySDK
64
64
  private static bool DrawProperty_EnableTrack(OppoMiniConfig arg)
65
65
  {
66
66
  GUILayout.Space(10);
67
- GUILayout.Label("事件上报", Styles.BoldTitle);
67
+ GUILayout.Label("事件上报", Styles.BoldLabel);
68
68
  GUILayout.BeginHorizontal();
69
69
  GUILayout.Label("开启事件上报", GUILayout.Width(146));
70
70
  GUIDrawer.DrawPopUpToggle(arg.EnableTrack, (v) => arg.EnableTrack = v);
@@ -96,7 +96,7 @@ namespace TyphoonUnitySDK
96
96
  private static bool DrawProperty_PrivacyPolicy(OppoMiniConfig arg)
97
97
  {
98
98
  GUILayout.Space(10);
99
- GUILayout.Label("隐私政策", Styles.BoldTitle);
99
+ GUILayout.Label("隐私政策", Styles.BoldLabel);
100
100
  arg.PrivacyPolicyImage =
101
101
  (Texture)EditorGUILayout.ObjectField("文案长图", arg.PrivacyPolicyImage, typeof(Texture), false);
102
102
  GUIDrawer.DrawKeynotes("文本转长图在线转换工具:(点击链接跳转)");
@@ -253,7 +253,7 @@ namespace TyphoonUnitySDK
253
253
  private static bool DrawProperty_BannerEnable(OppoMiniConfig arg)
254
254
  {
255
255
  GUILayout.Space(10);
256
- GUILayout.Label("广告参数", Styles.BoldTitle);
256
+ GUILayout.Label("广告参数", Styles.BoldLabel);
257
257
  GUILayout.BeginHorizontal();
258
258
  GUILayout.Label("Banner开关", GUILayout.Width(146));
259
259
  GUIDrawer.DrawPopUpToggle(arg.BannerEnable, (v) => arg.BannerEnable = v);
@@ -284,7 +284,7 @@ namespace TyphoonUnitySDK
284
284
  btnNewRect.height -= 4;
285
285
  btnNewRect.center = center;
286
286
  btnNewRect.x = last.xMax - btnNewRect.width - 2;
287
- if (GUI.Button(btnNewRect, "创建签名", Styles.BoldButton))
287
+ if (GUI.Button(btnNewRect, "创建签名", Styles.Square.Btn))
288
288
  {
289
289
  //创建openssl 签名
290
290
  UniEditor.CreateOpensslKeystore();
@@ -297,7 +297,7 @@ namespace TyphoonUnitySDK
297
297
  {
298
298
  GUILayout.Space(10);
299
299
 
300
- GUILayout.Label("签名", Styles.BoldTitle);
300
+ GUILayout.Label("签名", Styles.BoldLabel);
301
301
  GUILayout.BeginHorizontal();
302
302
  arg.PrivatePem = EditorGUILayout.TextField("private.pem", arg.PrivatePem);
303
303
  if (GUILayout.Button("选择", GUILayout.Width(60)))
@@ -324,7 +324,7 @@ namespace TyphoonUnitySDK
324
324
  rectBtn.y += 2;
325
325
  rectBtn.x = last.xMax - rectBtn.width;
326
326
  rectBtn.x -= 2;
327
- if (GUI.Button(rectBtn, "自动版本号", Styles.BoldButton))
327
+ if (GUI.Button(rectBtn, "自动版本号", Styles.Square.BtnBlue))
328
328
  {
329
329
  arg.VersionCode += 1;
330
330
  try
@@ -360,7 +360,7 @@ namespace TyphoonUnitySDK
360
360
  private static bool DrawProperty_VersionName(OppoMiniConfig arg)
361
361
  {
362
362
  GUILayout.Space(10);
363
- GUILayout.Label("版本信息", Styles.BoldTitle);
363
+ GUILayout.Label("版本信息", Styles.BoldLabel);
364
364
  arg.VersionName = EditorGUILayout.TextField("版本名", arg.VersionName);
365
365
  return true;
366
366
  }
@@ -27,8 +27,7 @@ namespace TyphoonUnitySDK
27
27
  rectTitle.x += 4;
28
28
  rectTitle.width -= 8;
29
29
  rectTitle.height = 32;
30
- EditorGUI.DrawRect(rectTitle, Styles.TitleBgColor);
31
- GUI.Label(rectTitle, "选项", Styles.BoldTitle);
30
+ GUI.Label(rectTitle, "选项", Styles.TitleBar);
32
31
 
33
32
  var rectSave = rectTitle;
34
33
  rectSave.width = 90;
@@ -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);
@@ -11,12 +11,12 @@ namespace TyphoonUnitySDK
11
11
  public override void OnInspectorGUI()
12
12
  {
13
13
  base.OnInspectorGUI();
14
- if (GUILayout.Button("应用", Styles.BlueButton, GUILayout.Height(32)))
14
+ if (GUILayout.Button("应用", Styles.Square.BtnGreen, GUILayout.Height(32)))
15
15
  {
16
16
  Target.Apply();
17
17
  }
18
18
 
19
- if (GUILayout.Button("发布", Styles.BlueButton, GUILayout.Height(32)))
19
+ if (GUILayout.Button("发布", Styles.Square.BtnBlue, GUILayout.Height(32)))
20
20
  {
21
21
  Target.Apply();
22
22
  }
@@ -144,7 +144,7 @@ namespace TyphoonUnitySDK
144
144
  {
145
145
  var tipRect = rect;
146
146
  tipRect.height = 44;
147
- GUI.TextArea(tipRect, "编译中,请稍等...\n\r", Styles.BoldTitle);
147
+ GUI.TextArea(tipRect, "编译中,请稍等...\n\r", Styles.BoldLabel);
148
148
  }
149
149
  else
150
150
  {
@@ -177,21 +177,21 @@ namespace TyphoonUnitySDK
177
177
  GUILayout.BeginHorizontal();
178
178
  GUILayout.Label("发布配置", Styles.BoldLabel, GUILayout.Width(70));
179
179
  GUILayout.Space(1);
180
- if (GUILayout.Button(new GUIContent(EditorIcons.icon_import, "导入常用配置"), Styles.Button,
180
+ if (GUILayout.Button(new GUIContent(EditorIcons.icon_import, "导入常用配置"), Styles.Square.Btn,
181
181
  GUILayout.Width(40), GUILayout.Height(20)))
182
182
  {
183
183
  UniEditor.ImportPackage(UniEditor.PackagePath_PublishSetting);
184
184
  }
185
185
 
186
186
  GUILayout.Space(1);
187
- if (GUILayout.Button(new GUIContent(EditorIcons.icon_variable, "自定义变量"), Styles.Button,
187
+ if (GUILayout.Button(new GUIContent(EditorIcons.icon_variable, "自定义变量"), Styles.Square.Btn,
188
188
  GUILayout.Width(40), GUILayout.Height(20)))
189
189
  {
190
190
  VariablePresetWindow.Open();
191
191
  }
192
192
 
193
193
  GUILayout.Space(1);
194
- if (GUILayout.Button(new GUIContent(EditorIcons.icon_refresh, "刷新"), Styles.Button,
194
+ if (GUILayout.Button(new GUIContent(EditorIcons.icon_refresh, "刷新"), Styles.Square.Btn,
195
195
  GUILayout.Width(40), GUILayout.Height(20)))
196
196
  {
197
197
  ReloadSettings();
@@ -200,7 +200,7 @@ namespace TyphoonUnitySDK
200
200
 
201
201
  GUILayout.Space(1);
202
202
 
203
- if (GUILayout.Button(new GUIContent(EditorIcons.icon_extension, "更多"), Styles.Button,
203
+ if (GUILayout.Button(new GUIContent(EditorIcons.icon_extension, "更多"), Styles.Square.Btn,
204
204
  GUILayout.Width(40), GUILayout.Height(20)))
205
205
  {
206
206
  var menu = new GenericMenu();
@@ -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
  }
@@ -249,7 +251,7 @@ namespace TyphoonUnitySDK
249
251
  rectItem.height = MENU_ITEM_HEIGHT - 2;
250
252
  if (setting != null)
251
253
  {
252
- var style = _select == setting ? Styles.MenuButtonActive : Styles.MenuButtonNormal;
254
+ var style = _select == setting ? Styles.Square.MenuButtonActive : Styles.Square.MenuButton;
253
255
 
254
256
  if (Event.current.type == EventType.MouseDown && rectItem.Contains(Event.current.mousePosition))
255
257
  {
@@ -276,7 +278,7 @@ namespace TyphoonUnitySDK
276
278
  var lockRect = rectItem;
277
279
  lockRect.width = 60;
278
280
  lockRect.x = rectItem.xMax - lockRect.width;
279
- GUI.Label(lockRect, "未开放", Styles.ItalicLabel);
281
+ GUI.Label(lockRect, "未开放", Styles.ItalicLabelMiddle);
280
282
  }
281
283
  }
282
284
 
@@ -288,7 +290,7 @@ namespace TyphoonUnitySDK
288
290
  {
289
291
  var rectImport = rectPos;
290
292
  rectImport.height = MENU_ITEM_HEIGHT;
291
- if (GUI.Button(rectImport, new GUIContent("导入常用配置", EditorIcons.icon_import), Styles.Button))
293
+ if (GUI.Button(rectImport, new GUIContent("导入常用配置", EditorIcons.icon_import), Styles.Square.Btn))
292
294
  {
293
295
  UniEditor.ImportPackage(UniEditor.PackagePath_PublishSetting);
294
296
  }
@@ -321,7 +323,9 @@ namespace TyphoonUnitySDK
321
323
  rect.width -= 4;
322
324
  rect.height -= 4;
323
325
  rect.center = center;
324
- GUILayout.BeginArea(rect);
326
+ var labRect = rect;
327
+ labRect.width -= 70;
328
+ GUILayout.BeginArea(labRect);
325
329
 
326
330
  GUIDrawer.DrawKeynotes(
327
331
  $"当前 {CurrentVersionInfo.Version} {CurrentVersionInfo.GetWriteTimeDateString()}");
@@ -347,7 +351,7 @@ namespace TyphoonUnitySDK
347
351
  draw.width -= 4;
348
352
  draw.height -= 4;
349
353
  draw.center = center;
350
- if (GUI.Button(draw, "检查更新", Styles.Button))
354
+ if (GUI.Button(draw, "检查更新"))
351
355
  {
352
356
  UniEditor.ManualCheckNewVersion();
353
357
  }
@@ -359,7 +363,7 @@ namespace TyphoonUnitySDK
359
363
  draw.width -= 4;
360
364
  draw.height -= 4;
361
365
  draw.center = center;
362
- if (GUI.Button(draw, "所有版本", Styles.Button))
366
+ if (GUI.Button(draw, "所有版本"))
363
367
  {
364
368
  if (CheckUpdateCacheData.Default.AllVersions.Count < 0)
365
369
  {
@@ -379,7 +383,7 @@ namespace TyphoonUnitySDK
379
383
  draw.width -= 4;
380
384
  draw.height -= 4;
381
385
  draw.center = center;
382
- if (GUI.Button(draw, "说明文档", Styles.Button))
386
+ if (GUI.Button(draw, "说明文档"))
383
387
  {
384
388
  //读取所有历史版本,弹出右键菜单
385
389
  UniEditor.OpenDoc();
@@ -416,14 +420,13 @@ namespace TyphoonUnitySDK
416
420
  {
417
421
  var tipRect = rectContent;
418
422
  tipRect.height = 44;
419
- GUI.TextArea(tipRect, "请选择配置...\n\r初次使用,可从左侧菜单栏中导入常用配置", Styles.BoldTitle);
423
+ GUI.TextArea(tipRect, "请选择配置...\n\r初次使用,可从左侧菜单栏中导入常用配置", Styles.BoldLabel);
420
424
  }
421
425
  else
422
426
  {
423
427
  var rectTitle = rectContent;
424
428
  rectTitle.height = 32;
425
- EditorGUI.DrawRect(rectTitle, Styles.TitleBgColor);
426
- GUI.Label(rectTitle, $"{_select.name}", Styles.BoldTitle);
429
+ GUI.Label(rectTitle, $"{_select.name}", Styles.TitleBar);
427
430
  var rectSave = rectTitle;
428
431
  rectSave.width = 90;
429
432
  rectSave.x = rectTitle.xMax - rectSave.width;
@@ -431,7 +434,7 @@ namespace TyphoonUnitySDK
431
434
  rectSave.width -= 8;
432
435
  rectSave.height -= 8;
433
436
  rectSave.center = center;
434
- if (GUI.Button(rectSave, new GUIContent("保存配置", EditorIcons.icon_save)))
437
+ if (GUI.Button(rectSave, new GUIContent("保存配置", EditorIcons.icon_save), Styles.Square.Btn))
435
438
  {
436
439
  EditorUtility.SetDirty(_select);
437
440
  ApplyTool.SaveAllChannelConfig();
@@ -474,7 +477,7 @@ namespace TyphoonUnitySDK
474
477
  var rectBtnPublish = rectArea;
475
478
  rectBtnPublish.width = 128;
476
479
  rectBtnPublish.x = rectArea.xMax - rectBtnPublish.width;
477
- bool clickPublish = GUI.Button(rectBtnPublish, "发布", Styles.BoldButton);
480
+ bool clickPublish = GUI.Button(rectBtnPublish, "发布", Styles.Square.BtnBold);
478
481
 
479
482
  var rectNextBtn = rectBtnPublish;
480
483
  rectNextBtn.x -= 2;
@@ -482,12 +485,12 @@ namespace TyphoonUnitySDK
482
485
  bool clickBuildAA = false;
483
486
  if (UniEditor.HasAddressableSupport())
484
487
  {
485
- clickBuildAA = GUI.Button(rectNextBtn, "构建AA", Styles.BoldButton);
488
+ clickBuildAA = GUI.Button(rectNextBtn, "构建AA", Styles.Square.BtnBold);
486
489
  rectNextBtn.x -= 2;
487
490
  rectNextBtn.x -= rectNextBtn.width;
488
491
  }
489
492
 
490
- bool clickApply = GUI.Button(rectNextBtn, "应用", Styles.BoldButton);
493
+ bool clickApply = GUI.Button(rectNextBtn, "应用", Styles.Square.BtnBold);
491
494
 
492
495
  foreach (var bottomGUI in ExtensionBottomGUI)
493
496
  {