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.
- package/CHANGELOG.md +13 -1
- package/Editor/GUIDrawer.cs +1 -1
- package/Editor/HistoryVersionWindow.cs +6 -4
- package/Editor/OppoMiniConfig.cs +7 -7
- package/Editor/PreferencesWindow.cs +1 -2
- package/Editor/PublishSettingGUIDrawer.cs +2 -2
- package/Editor/PublishSettingInspector.cs +2 -2
- package/Editor/PublishWindow.cs +24 -21
- 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/Texture/dark.meta +8 -0
- 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/Texture/icon.meta +8 -0
- 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 +3 -4
- package/Editor/VivoMiniConfig.cs +7 -7
- package/Editor/WxMiniConfig.cs +1 -1
- package/package.json +1 -1
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)
|
|
@@ -156,7 +158,7 @@ namespace TyphoonUnitySDK
|
|
|
156
158
|
rectView.height -= 8;
|
|
157
159
|
rectView.center = center;
|
|
158
160
|
GUILayout.BeginArea(rectView);
|
|
159
|
-
_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.
|
|
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;
|
|
@@ -462,7 +462,7 @@ namespace TyphoonUnitySDK
|
|
|
462
462
|
menu.ShowAsContext();
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
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 =
|
|
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.
|
|
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();
|
|
@@ -214,8 +214,10 @@ namespace TyphoonUnitySDK
|
|
|
214
214
|
var rectSearch = rectLeftMenu;
|
|
215
215
|
rectSearch.y = rectToolbar.yMax;
|
|
216
216
|
rectSearch.height = 22;
|
|
217
|
-
|
|
218
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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, "检查更新"
|
|
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, "所有版本"
|
|
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, "说明文档"
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
493
|
+
bool clickApply = GUI.Button(rectNextBtn, "应用", Styles.Square.BtnBold);
|
|
491
494
|
|
|
492
495
|
foreach (var bottomGUI in ExtensionBottomGUI)
|
|
493
496
|
{
|