|
@@ -34,6 +34,7 @@ namespace ET.Client
|
|
|
{ }
|
|
|
|
|
|
var view = await UIHelper.Create( "Login" );
|
|
|
+ bEnd = false;
|
|
|
InitLogin(view);
|
|
|
}
|
|
|
|
|
@@ -220,6 +221,17 @@ namespace ET.Client
|
|
|
|
|
|
private void InitLogin(GComponent view)
|
|
|
{
|
|
|
+ var globalConfig = Resources.Load<GlobalConfig>("GlobalConfig");
|
|
|
+ var field = typeof(GlobalConfig).GetField("ExeVersion");
|
|
|
+ string exeVersion = "first";
|
|
|
+ if (field != null)
|
|
|
+ {
|
|
|
+ exeVersion = field.GetValue(globalConfig).ToString();
|
|
|
+ }
|
|
|
+ var txtVer = view.GetChild("Text_Version");
|
|
|
+
|
|
|
+ txtVer.text = $"Main({exeVersion}) Res({YooAsset.YooAssets.GetResourceVersion()})@{globalConfig.Version}";
|
|
|
+
|
|
|
var comp = view.GetChild("comp_login") as GComponent;
|
|
|
var listSvr = view.GetChild("listServer").asComboBox;
|
|
|
var listResolution = view.GetChild("listResolution").asComboBox;
|