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.
- package/CHANGELOG.md +13 -1
- package/Editor/GUIDrawer.cs +1 -1
- package/Editor/HistoryVersionWindow.cs +5 -3
- package/Editor/OppoMiniConfig.cs +7 -7
- package/Editor/PreferencesWindow.cs +1 -2
- package/Editor/PublishSettingInspector.cs +2 -2
- package/Editor/PublishWindow.cs +20 -19
- package/Editor/Styles.cs +474 -181
- package/Editor/Texture/dark/blue_active.png +0 -0
- package/Editor/Texture/dark/blue_active.png.meta +144 -0
- package/Editor/Texture/dark/blue_hover.png +0 -0
- package/Editor/Texture/dark/blue_hover.png.meta +144 -0
- package/Editor/Texture/dark/blue_normal.png +0 -0
- package/Editor/Texture/dark/blue_normal.png.meta +144 -0
- package/Editor/Texture/dark/green_active.png +0 -0
- package/Editor/Texture/dark/green_active.png.meta +144 -0
- package/Editor/Texture/dark/green_hover.png +0 -0
- package/Editor/Texture/dark/green_hover.png.meta +144 -0
- package/Editor/Texture/dark/green_normal.png +0 -0
- package/Editor/Texture/dark/green_normal.png.meta +144 -0
- package/Editor/Texture/dark/help_box.png +0 -0
- package/Editor/Texture/dark/help_box.png.meta +144 -0
- package/Editor/Texture/dark/menu_active.png +0 -0
- package/Editor/Texture/dark/menu_active.png.meta +144 -0
- package/Editor/Texture/dark/n_active.png +0 -0
- package/Editor/Texture/dark/n_active.png.meta +144 -0
- package/Editor/Texture/dark/n_hover.png +0 -0
- package/Editor/Texture/dark/n_hover.png.meta +144 -0
- package/Editor/Texture/dark/n_normal.png +0 -0
- package/Editor/Texture/dark/n_normal.png.meta +144 -0
- package/Editor/Texture/dark/red_active.png +0 -0
- package/Editor/Texture/dark/red_active.png.meta +144 -0
- package/Editor/Texture/dark/red_hover.png +0 -0
- package/Editor/Texture/dark/red_hover.png.meta +144 -0
- package/Editor/Texture/dark/red_normal.png +0 -0
- package/Editor/Texture/dark/red_normal.png.meta +144 -0
- package/Editor/Texture/dark/square_b_active.png +0 -0
- package/Editor/Texture/dark/square_b_active.png.meta +144 -0
- package/Editor/Texture/dark/square_b_hover.png +0 -0
- package/Editor/Texture/dark/square_b_hover.png.meta +144 -0
- package/Editor/Texture/dark/square_b_normal.png +0 -0
- package/Editor/Texture/dark/square_b_normal.png.meta +144 -0
- package/Editor/Texture/dark/square_g_active.png +0 -0
- package/Editor/Texture/dark/square_g_active.png.meta +144 -0
- package/Editor/Texture/dark/square_g_hover.png +0 -0
- package/Editor/Texture/dark/square_g_hover.png.meta +144 -0
- package/Editor/Texture/dark/square_g_normal.png +0 -0
- package/Editor/Texture/dark/square_g_normal.png.meta +144 -0
- package/Editor/Texture/dark/square_menu_active.png +0 -0
- package/Editor/Texture/dark/square_menu_active.png.meta +144 -0
- package/Editor/Texture/dark/square_n_active.png +0 -0
- package/Editor/Texture/dark/square_n_active.png.meta +144 -0
- package/Editor/Texture/dark/square_n_hover.png +0 -0
- package/Editor/Texture/dark/square_n_hover.png.meta +144 -0
- package/Editor/Texture/dark/square_n_normal.png +0 -0
- package/Editor/Texture/dark/square_n_normal.png.meta +144 -0
- package/Editor/Texture/dark/square_r_active.png +0 -0
- package/Editor/Texture/dark/square_r_active.png.meta +144 -0
- package/Editor/Texture/dark/square_r_hover.png +0 -0
- package/Editor/Texture/dark/square_r_hover.png.meta +144 -0
- package/Editor/Texture/dark/square_r_normal.png +0 -0
- package/Editor/Texture/dark/square_r_normal.png.meta +144 -0
- package/Editor/Texture/dark/square_y_active.png +0 -0
- package/Editor/Texture/dark/square_y_active.png.meta +144 -0
- package/Editor/Texture/dark/square_y_hover.png +0 -0
- package/Editor/Texture/dark/square_y_hover.png.meta +144 -0
- package/Editor/Texture/dark/square_y_normal.png +0 -0
- package/Editor/Texture/dark/square_y_normal.png.meta +144 -0
- package/Editor/Texture/dark/title_bar.png +0 -0
- package/Editor/Texture/dark/title_bar.png.meta +144 -0
- package/Editor/Texture/dark/yellow_active.png +0 -0
- package/Editor/Texture/dark/yellow_active.png.meta +144 -0
- package/Editor/Texture/dark/yellow_hover.png +0 -0
- package/Editor/Texture/dark/yellow_hover.png.meta +144 -0
- package/Editor/Texture/dark/yellow_normal.png +0 -0
- package/Editor/Texture/dark/yellow_normal.png.meta +144 -0
- package/Editor/{Skin.guiskin.meta → Texture/dark.meta} +3 -3
- package/Editor/Texture/icon/error.png +0 -0
- package/Editor/Texture/icon/error.png.meta +144 -0
- package/Editor/Texture/icon/info.png +0 -0
- package/Editor/Texture/icon/info.png.meta +144 -0
- package/Editor/Texture/icon/warning.png +0 -0
- package/Editor/Texture/icon/warning.png.meta +144 -0
- package/Editor/{SkinLight.guiskin.meta → Texture/icon.meta} +3 -3
- package/Editor/Texture/light/blue_active.png +0 -0
- package/Editor/Texture/light/blue_active.png.meta +144 -0
- package/Editor/Texture/light/blue_hover.png +0 -0
- package/Editor/Texture/light/blue_hover.png.meta +144 -0
- package/Editor/Texture/light/blue_normal.png +0 -0
- package/Editor/Texture/light/blue_normal.png.meta +144 -0
- package/Editor/Texture/light/green_active.png +0 -0
- package/Editor/Texture/light/green_active.png.meta +144 -0
- package/Editor/Texture/light/green_hover.png +0 -0
- package/Editor/Texture/light/green_hover.png.meta +144 -0
- package/Editor/Texture/light/green_normal.png +0 -0
- package/Editor/Texture/light/green_normal.png.meta +144 -0
- package/Editor/Texture/light/help_box.png +0 -0
- package/Editor/Texture/light/help_box.png.meta +144 -0
- package/Editor/Texture/light/menu_active.png +0 -0
- package/Editor/Texture/light/menu_active.png.meta +144 -0
- package/Editor/Texture/light/n_active.png +0 -0
- package/Editor/Texture/light/n_active.png.meta +144 -0
- package/Editor/Texture/light/n_hover.png +0 -0
- package/Editor/Texture/light/n_hover.png.meta +144 -0
- package/Editor/Texture/light/n_normal.png +0 -0
- package/Editor/Texture/light/n_normal.png.meta +144 -0
- package/Editor/Texture/light/red_active.png +0 -0
- package/Editor/Texture/light/red_active.png.meta +144 -0
- package/Editor/Texture/light/red_hover.png +0 -0
- package/Editor/Texture/light/red_hover.png.meta +144 -0
- package/Editor/Texture/light/red_normal.png +0 -0
- package/Editor/Texture/light/red_normal.png.meta +144 -0
- package/Editor/Texture/light/square_b_active.png +0 -0
- package/Editor/Texture/light/square_b_active.png.meta +144 -0
- package/Editor/Texture/light/square_b_hover.png +0 -0
- package/Editor/Texture/light/square_b_hover.png.meta +144 -0
- package/Editor/Texture/light/square_b_normal.png +0 -0
- package/Editor/Texture/light/square_b_normal.png.meta +144 -0
- package/Editor/Texture/light/square_g_active.png +0 -0
- package/Editor/Texture/light/square_g_active.png.meta +144 -0
- package/Editor/Texture/light/square_g_hover.png +0 -0
- package/Editor/Texture/light/square_g_hover.png.meta +144 -0
- package/Editor/Texture/light/square_g_normal.png +0 -0
- package/Editor/Texture/light/square_g_normal.png.meta +144 -0
- package/Editor/Texture/light/square_menu_active.png +0 -0
- package/Editor/Texture/light/square_menu_active.png.meta +144 -0
- package/Editor/Texture/light/square_n_active.png +0 -0
- package/Editor/Texture/light/square_n_active.png.meta +144 -0
- package/Editor/Texture/light/square_n_hover.png +0 -0
- package/Editor/Texture/light/square_n_hover.png.meta +144 -0
- package/Editor/Texture/light/square_n_normal.png +0 -0
- package/Editor/Texture/light/square_n_normal.png.meta +144 -0
- package/Editor/Texture/light/square_r_active.png +0 -0
- package/Editor/Texture/light/square_r_active.png.meta +144 -0
- package/Editor/Texture/light/square_r_hover.png +0 -0
- package/Editor/Texture/light/square_r_hover.png.meta +144 -0
- package/Editor/Texture/light/square_r_normal.png +0 -0
- package/Editor/Texture/light/square_r_normal.png.meta +144 -0
- package/Editor/Texture/light/square_y_active.png +0 -0
- package/Editor/Texture/light/square_y_active.png.meta +144 -0
- package/Editor/Texture/light/square_y_hover.png +0 -0
- package/Editor/Texture/light/square_y_hover.png.meta +144 -0
- package/Editor/Texture/light/square_y_normal.png +0 -0
- package/Editor/Texture/light/square_y_normal.png.meta +144 -0
- package/Editor/Texture/light/title_bar.png +0 -0
- package/Editor/Texture/light/title_bar.png.meta +144 -0
- package/Editor/Texture/light/yellow_active.png +0 -0
- package/Editor/Texture/light/yellow_active.png.meta +144 -0
- package/Editor/Texture/light/yellow_hover.png +0 -0
- package/Editor/Texture/light/yellow_hover.png.meta +144 -0
- package/Editor/Texture/light/yellow_normal.png +0 -0
- package/Editor/Texture/light/yellow_normal.png.meta +144 -0
- package/Editor/Texture/light.meta +8 -0
- package/Editor/VariablePresetWindow.cs +1 -2
- package/Editor/VivoMiniConfig.cs +7 -7
- package/package.json +1 -1
- package/Editor/Skin.guiskin +0 -1928
- package/Editor/SkinLight.guiskin +0 -1994
- package/Runtime/ximaiti.otf +0 -0
- package/Runtime/ximaiti.otf.meta +0 -21
package/CHANGELOG.md
CHANGED
package/Editor/GUIDrawer.cs
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
294
|
+
if (GUI.Button(draw, txt, Styles.BtnGreen))
|
|
293
295
|
{
|
|
294
296
|
UniEditor.UpdateInstallVersion(_select);
|
|
295
297
|
}
|
package/Editor/OppoMiniConfig.cs
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
19
|
+
if (GUILayout.Button("发布", Styles.Square.BtnBlue, GUILayout.Height(32)))
|
|
20
20
|
{
|
|
21
21
|
Target.Apply();
|
|
22
22
|
}
|
package/Editor/PublishWindow.cs
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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, "检查更新"
|
|
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, "所有版本"
|
|
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, "说明文档"
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
491
|
+
bool clickApply = GUI.Button(rectNextBtn, "应用", Styles.Square.BtnBold);
|
|
491
492
|
|
|
492
493
|
foreach (var bottomGUI in ExtensionBottomGUI)
|
|
493
494
|
{
|