com.typhoon.unitysdk 1.0.89 → 1.0.91

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 (160) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/Editor/GUIDrawer.cs +1 -1
  3. package/Editor/HistoryVersionWindow.cs +5 -3
  4. package/Editor/OppoMiniConfig.cs +7 -7
  5. package/Editor/PreferencesWindow.cs +1 -2
  6. package/Editor/PublishSettingInspector.cs +2 -2
  7. package/Editor/PublishWindow.cs +20 -19
  8. package/Editor/Styles.cs +474 -181
  9. package/Editor/Texture/dark/blue_active.png +0 -0
  10. package/Editor/Texture/dark/blue_active.png.meta +144 -0
  11. package/Editor/Texture/dark/blue_hover.png +0 -0
  12. package/Editor/Texture/dark/blue_hover.png.meta +144 -0
  13. package/Editor/Texture/dark/blue_normal.png +0 -0
  14. package/Editor/Texture/dark/blue_normal.png.meta +144 -0
  15. package/Editor/Texture/dark/green_active.png +0 -0
  16. package/Editor/Texture/dark/green_active.png.meta +144 -0
  17. package/Editor/Texture/dark/green_hover.png +0 -0
  18. package/Editor/Texture/dark/green_hover.png.meta +144 -0
  19. package/Editor/Texture/dark/green_normal.png +0 -0
  20. package/Editor/Texture/dark/green_normal.png.meta +144 -0
  21. package/Editor/Texture/dark/help_box.png +0 -0
  22. package/Editor/Texture/dark/help_box.png.meta +144 -0
  23. package/Editor/Texture/dark/menu_active.png +0 -0
  24. package/Editor/Texture/dark/menu_active.png.meta +144 -0
  25. package/Editor/Texture/dark/n_active.png +0 -0
  26. package/Editor/Texture/dark/n_active.png.meta +144 -0
  27. package/Editor/Texture/dark/n_hover.png +0 -0
  28. package/Editor/Texture/dark/n_hover.png.meta +144 -0
  29. package/Editor/Texture/dark/n_normal.png +0 -0
  30. package/Editor/Texture/dark/n_normal.png.meta +144 -0
  31. package/Editor/Texture/dark/red_active.png +0 -0
  32. package/Editor/Texture/dark/red_active.png.meta +144 -0
  33. package/Editor/Texture/dark/red_hover.png +0 -0
  34. package/Editor/Texture/dark/red_hover.png.meta +144 -0
  35. package/Editor/Texture/dark/red_normal.png +0 -0
  36. package/Editor/Texture/dark/red_normal.png.meta +144 -0
  37. package/Editor/Texture/dark/square_b_active.png +0 -0
  38. package/Editor/Texture/dark/square_b_active.png.meta +144 -0
  39. package/Editor/Texture/dark/square_b_hover.png +0 -0
  40. package/Editor/Texture/dark/square_b_hover.png.meta +144 -0
  41. package/Editor/Texture/dark/square_b_normal.png +0 -0
  42. package/Editor/Texture/dark/square_b_normal.png.meta +144 -0
  43. package/Editor/Texture/dark/square_g_active.png +0 -0
  44. package/Editor/Texture/dark/square_g_active.png.meta +144 -0
  45. package/Editor/Texture/dark/square_g_hover.png +0 -0
  46. package/Editor/Texture/dark/square_g_hover.png.meta +144 -0
  47. package/Editor/Texture/dark/square_g_normal.png +0 -0
  48. package/Editor/Texture/dark/square_g_normal.png.meta +144 -0
  49. package/Editor/Texture/dark/square_menu_active.png +0 -0
  50. package/Editor/Texture/dark/square_menu_active.png.meta +144 -0
  51. package/Editor/Texture/dark/square_n_active.png +0 -0
  52. package/Editor/Texture/dark/square_n_active.png.meta +144 -0
  53. package/Editor/Texture/dark/square_n_hover.png +0 -0
  54. package/Editor/Texture/dark/square_n_hover.png.meta +144 -0
  55. package/Editor/Texture/dark/square_n_normal.png +0 -0
  56. package/Editor/Texture/dark/square_n_normal.png.meta +144 -0
  57. package/Editor/Texture/dark/square_r_active.png +0 -0
  58. package/Editor/Texture/dark/square_r_active.png.meta +144 -0
  59. package/Editor/Texture/dark/square_r_hover.png +0 -0
  60. package/Editor/Texture/dark/square_r_hover.png.meta +144 -0
  61. package/Editor/Texture/dark/square_r_normal.png +0 -0
  62. package/Editor/Texture/dark/square_r_normal.png.meta +144 -0
  63. package/Editor/Texture/dark/square_y_active.png +0 -0
  64. package/Editor/Texture/dark/square_y_active.png.meta +144 -0
  65. package/Editor/Texture/dark/square_y_hover.png +0 -0
  66. package/Editor/Texture/dark/square_y_hover.png.meta +144 -0
  67. package/Editor/Texture/dark/square_y_normal.png +0 -0
  68. package/Editor/Texture/dark/square_y_normal.png.meta +144 -0
  69. package/Editor/Texture/dark/title_bar.png +0 -0
  70. package/Editor/Texture/dark/title_bar.png.meta +144 -0
  71. package/Editor/Texture/dark/yellow_active.png +0 -0
  72. package/Editor/Texture/dark/yellow_active.png.meta +144 -0
  73. package/Editor/Texture/dark/yellow_hover.png +0 -0
  74. package/Editor/Texture/dark/yellow_hover.png.meta +144 -0
  75. package/Editor/Texture/dark/yellow_normal.png +0 -0
  76. package/Editor/Texture/dark/yellow_normal.png.meta +144 -0
  77. package/Editor/{Skin.guiskin.meta → Texture/dark.meta} +3 -3
  78. package/Editor/Texture/icon/error.png +0 -0
  79. package/Editor/Texture/icon/error.png.meta +144 -0
  80. package/Editor/Texture/icon/info.png +0 -0
  81. package/Editor/Texture/icon/info.png.meta +144 -0
  82. package/Editor/Texture/icon/warning.png +0 -0
  83. package/Editor/Texture/icon/warning.png.meta +144 -0
  84. package/Editor/{SkinLight.guiskin.meta → Texture/icon.meta} +3 -3
  85. package/Editor/Texture/light/blue_active.png +0 -0
  86. package/Editor/Texture/light/blue_active.png.meta +144 -0
  87. package/Editor/Texture/light/blue_hover.png +0 -0
  88. package/Editor/Texture/light/blue_hover.png.meta +144 -0
  89. package/Editor/Texture/light/blue_normal.png +0 -0
  90. package/Editor/Texture/light/blue_normal.png.meta +144 -0
  91. package/Editor/Texture/light/green_active.png +0 -0
  92. package/Editor/Texture/light/green_active.png.meta +144 -0
  93. package/Editor/Texture/light/green_hover.png +0 -0
  94. package/Editor/Texture/light/green_hover.png.meta +144 -0
  95. package/Editor/Texture/light/green_normal.png +0 -0
  96. package/Editor/Texture/light/green_normal.png.meta +144 -0
  97. package/Editor/Texture/light/help_box.png +0 -0
  98. package/Editor/Texture/light/help_box.png.meta +144 -0
  99. package/Editor/Texture/light/menu_active.png +0 -0
  100. package/Editor/Texture/light/menu_active.png.meta +144 -0
  101. package/Editor/Texture/light/n_active.png +0 -0
  102. package/Editor/Texture/light/n_active.png.meta +144 -0
  103. package/Editor/Texture/light/n_hover.png +0 -0
  104. package/Editor/Texture/light/n_hover.png.meta +144 -0
  105. package/Editor/Texture/light/n_normal.png +0 -0
  106. package/Editor/Texture/light/n_normal.png.meta +144 -0
  107. package/Editor/Texture/light/red_active.png +0 -0
  108. package/Editor/Texture/light/red_active.png.meta +144 -0
  109. package/Editor/Texture/light/red_hover.png +0 -0
  110. package/Editor/Texture/light/red_hover.png.meta +144 -0
  111. package/Editor/Texture/light/red_normal.png +0 -0
  112. package/Editor/Texture/light/red_normal.png.meta +144 -0
  113. package/Editor/Texture/light/square_b_active.png +0 -0
  114. package/Editor/Texture/light/square_b_active.png.meta +144 -0
  115. package/Editor/Texture/light/square_b_hover.png +0 -0
  116. package/Editor/Texture/light/square_b_hover.png.meta +144 -0
  117. package/Editor/Texture/light/square_b_normal.png +0 -0
  118. package/Editor/Texture/light/square_b_normal.png.meta +144 -0
  119. package/Editor/Texture/light/square_g_active.png +0 -0
  120. package/Editor/Texture/light/square_g_active.png.meta +144 -0
  121. package/Editor/Texture/light/square_g_hover.png +0 -0
  122. package/Editor/Texture/light/square_g_hover.png.meta +144 -0
  123. package/Editor/Texture/light/square_g_normal.png +0 -0
  124. package/Editor/Texture/light/square_g_normal.png.meta +144 -0
  125. package/Editor/Texture/light/square_menu_active.png +0 -0
  126. package/Editor/Texture/light/square_menu_active.png.meta +144 -0
  127. package/Editor/Texture/light/square_n_active.png +0 -0
  128. package/Editor/Texture/light/square_n_active.png.meta +144 -0
  129. package/Editor/Texture/light/square_n_hover.png +0 -0
  130. package/Editor/Texture/light/square_n_hover.png.meta +144 -0
  131. package/Editor/Texture/light/square_n_normal.png +0 -0
  132. package/Editor/Texture/light/square_n_normal.png.meta +144 -0
  133. package/Editor/Texture/light/square_r_active.png +0 -0
  134. package/Editor/Texture/light/square_r_active.png.meta +144 -0
  135. package/Editor/Texture/light/square_r_hover.png +0 -0
  136. package/Editor/Texture/light/square_r_hover.png.meta +144 -0
  137. package/Editor/Texture/light/square_r_normal.png +0 -0
  138. package/Editor/Texture/light/square_r_normal.png.meta +144 -0
  139. package/Editor/Texture/light/square_y_active.png +0 -0
  140. package/Editor/Texture/light/square_y_active.png.meta +144 -0
  141. package/Editor/Texture/light/square_y_hover.png +0 -0
  142. package/Editor/Texture/light/square_y_hover.png.meta +144 -0
  143. package/Editor/Texture/light/square_y_normal.png +0 -0
  144. package/Editor/Texture/light/square_y_normal.png.meta +144 -0
  145. package/Editor/Texture/light/title_bar.png +0 -0
  146. package/Editor/Texture/light/title_bar.png.meta +144 -0
  147. package/Editor/Texture/light/yellow_active.png +0 -0
  148. package/Editor/Texture/light/yellow_active.png.meta +144 -0
  149. package/Editor/Texture/light/yellow_hover.png +0 -0
  150. package/Editor/Texture/light/yellow_hover.png.meta +144 -0
  151. package/Editor/Texture/light/yellow_normal.png +0 -0
  152. package/Editor/Texture/light/yellow_normal.png.meta +144 -0
  153. package/Editor/Texture/light.meta +8 -0
  154. package/Editor/VariablePresetWindow.cs +1 -2
  155. package/Editor/VivoMiniConfig.cs +7 -7
  156. package/package.json +1 -1
  157. package/Editor/Skin.guiskin +0 -1928
  158. package/Editor/SkinLight.guiskin +0 -1994
  159. package/Runtime/ximaiti.otf +0 -0
  160. package/Runtime/ximaiti.otf.meta +0 -21
package/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # 更新日志
2
- ## [1.0.89] - 2024-01-07
2
+ ## [1.0.91] - 2024-01-13
3
3
 
4
4
  ### 修复
5
+ * 样式出错问题
6
+
7
+
8
+ ## [1.0.90] - 2024-01-07
9
+
10
+ ### 修复
11
+ * 字体丢失问题
12
+
13
+
14
+ ## [1.0.89] - 2024-01-07
15
+
16
+ ### 修复
5
17
  * styles加载失败问题
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)
@@ -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;
@@ -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();
@@ -249,7 +249,7 @@ namespace TyphoonUnitySDK
249
249
  rectItem.height = MENU_ITEM_HEIGHT - 2;
250
250
  if (setting != null)
251
251
  {
252
- var style = _select == setting ? Styles.MenuButtonActive : Styles.MenuButtonNormal;
252
+ var style = _select == setting ? Styles.Square.MenuButtonActive : Styles.Square.MenuButton;
253
253
 
254
254
  if (Event.current.type == EventType.MouseDown && rectItem.Contains(Event.current.mousePosition))
255
255
  {
@@ -276,7 +276,7 @@ namespace TyphoonUnitySDK
276
276
  var lockRect = rectItem;
277
277
  lockRect.width = 60;
278
278
  lockRect.x = rectItem.xMax - lockRect.width;
279
- GUI.Label(lockRect, "未开放", Styles.ItalicLabel);
279
+ GUI.Label(lockRect, "未开放", Styles.ItalicLabelMiddle);
280
280
  }
281
281
  }
282
282
 
@@ -288,7 +288,7 @@ namespace TyphoonUnitySDK
288
288
  {
289
289
  var rectImport = rectPos;
290
290
  rectImport.height = MENU_ITEM_HEIGHT;
291
- if (GUI.Button(rectImport, new GUIContent("导入常用配置", EditorIcons.icon_import), Styles.Button))
291
+ if (GUI.Button(rectImport, new GUIContent("导入常用配置", EditorIcons.icon_import), Styles.Square.Btn))
292
292
  {
293
293
  UniEditor.ImportPackage(UniEditor.PackagePath_PublishSetting);
294
294
  }
@@ -321,7 +321,9 @@ namespace TyphoonUnitySDK
321
321
  rect.width -= 4;
322
322
  rect.height -= 4;
323
323
  rect.center = center;
324
- GUILayout.BeginArea(rect);
324
+ var labRect = rect;
325
+ labRect.width -= 70;
326
+ GUILayout.BeginArea(labRect);
325
327
 
326
328
  GUIDrawer.DrawKeynotes(
327
329
  $"当前 {CurrentVersionInfo.Version} {CurrentVersionInfo.GetWriteTimeDateString()}");
@@ -347,7 +349,7 @@ namespace TyphoonUnitySDK
347
349
  draw.width -= 4;
348
350
  draw.height -= 4;
349
351
  draw.center = center;
350
- if (GUI.Button(draw, "检查更新", Styles.Button))
352
+ if (GUI.Button(draw, "检查更新"))
351
353
  {
352
354
  UniEditor.ManualCheckNewVersion();
353
355
  }
@@ -359,7 +361,7 @@ namespace TyphoonUnitySDK
359
361
  draw.width -= 4;
360
362
  draw.height -= 4;
361
363
  draw.center = center;
362
- if (GUI.Button(draw, "所有版本", Styles.Button))
364
+ if (GUI.Button(draw, "所有版本"))
363
365
  {
364
366
  if (CheckUpdateCacheData.Default.AllVersions.Count < 0)
365
367
  {
@@ -379,7 +381,7 @@ namespace TyphoonUnitySDK
379
381
  draw.width -= 4;
380
382
  draw.height -= 4;
381
383
  draw.center = center;
382
- if (GUI.Button(draw, "说明文档", Styles.Button))
384
+ if (GUI.Button(draw, "说明文档"))
383
385
  {
384
386
  //读取所有历史版本,弹出右键菜单
385
387
  UniEditor.OpenDoc();
@@ -416,14 +418,13 @@ namespace TyphoonUnitySDK
416
418
  {
417
419
  var tipRect = rectContent;
418
420
  tipRect.height = 44;
419
- GUI.TextArea(tipRect, "请选择配置...\n\r初次使用,可从左侧菜单栏中导入常用配置", Styles.BoldTitle);
421
+ GUI.TextArea(tipRect, "请选择配置...\n\r初次使用,可从左侧菜单栏中导入常用配置", Styles.BoldLabel);
420
422
  }
421
423
  else
422
424
  {
423
425
  var rectTitle = rectContent;
424
426
  rectTitle.height = 32;
425
- EditorGUI.DrawRect(rectTitle, Styles.TitleBgColor);
426
- GUI.Label(rectTitle, $"{_select.name}", Styles.BoldTitle);
427
+ GUI.Label(rectTitle, $"{_select.name}", Styles.TitleBar);
427
428
  var rectSave = rectTitle;
428
429
  rectSave.width = 90;
429
430
  rectSave.x = rectTitle.xMax - rectSave.width;
@@ -431,7 +432,7 @@ namespace TyphoonUnitySDK
431
432
  rectSave.width -= 8;
432
433
  rectSave.height -= 8;
433
434
  rectSave.center = center;
434
- if (GUI.Button(rectSave, new GUIContent("保存配置", EditorIcons.icon_save)))
435
+ if (GUI.Button(rectSave, new GUIContent("保存配置", EditorIcons.icon_save), Styles.Square.Btn))
435
436
  {
436
437
  EditorUtility.SetDirty(_select);
437
438
  ApplyTool.SaveAllChannelConfig();
@@ -474,7 +475,7 @@ namespace TyphoonUnitySDK
474
475
  var rectBtnPublish = rectArea;
475
476
  rectBtnPublish.width = 128;
476
477
  rectBtnPublish.x = rectArea.xMax - rectBtnPublish.width;
477
- bool clickPublish = GUI.Button(rectBtnPublish, "发布", Styles.BoldButton);
478
+ bool clickPublish = GUI.Button(rectBtnPublish, "发布", Styles.Square.BtnBold);
478
479
 
479
480
  var rectNextBtn = rectBtnPublish;
480
481
  rectNextBtn.x -= 2;
@@ -482,12 +483,12 @@ namespace TyphoonUnitySDK
482
483
  bool clickBuildAA = false;
483
484
  if (UniEditor.HasAddressableSupport())
484
485
  {
485
- clickBuildAA = GUI.Button(rectNextBtn, "构建AA", Styles.BoldButton);
486
+ clickBuildAA = GUI.Button(rectNextBtn, "构建AA", Styles.Square.BtnBold);
486
487
  rectNextBtn.x -= 2;
487
488
  rectNextBtn.x -= rectNextBtn.width;
488
489
  }
489
490
 
490
- bool clickApply = GUI.Button(rectNextBtn, "应用", Styles.BoldButton);
491
+ bool clickApply = GUI.Button(rectNextBtn, "应用", Styles.Square.BtnBold);
491
492
 
492
493
  foreach (var bottomGUI in ExtensionBottomGUI)
493
494
  {