|
|
@@ -121,7 +121,20 @@ public class CheckHotUpdateRes : EditorWindow
|
|
|
GUILayout.Label("资源版本:", GUILayout.Width(65));
|
|
|
GUILayout.Space(10);
|
|
|
info.ResVersion = GUILayout.TextField(info.ResVersion, GUILayout.Width(160));
|
|
|
+ GUILayout.Space(10);
|
|
|
+ if (GUILayout.Button("读取版本", GUILayout.Width(100)))
|
|
|
+ {
|
|
|
+ info.ResVersion = File.ReadAllText($"{info.OldPath}/{info.VersionFileName}");
|
|
|
+ }
|
|
|
+ GUILayout.Space(10);
|
|
|
|
|
|
+ if (GUILayout.Button("版本+1", GUILayout.Width(100)))
|
|
|
+ {
|
|
|
+ VersionCode lVersionCode = info.ResVersion;
|
|
|
+ lVersionCode.patch += 1;
|
|
|
+ info.ResVersion = lVersionCode.ToString();
|
|
|
+ }
|
|
|
+ GUILayout.Space(10);
|
|
|
GUILayout.EndHorizontal();
|
|
|
|
|
|
}
|