替换UI
This commit is contained in:
@@ -13,6 +13,7 @@ namespace NBF
|
||||
|
||||
public Controller style;
|
||||
public GImage back;
|
||||
public GImage back2;
|
||||
public GTextField TextName;
|
||||
public GTextField TextInfo;
|
||||
public GSlider Slider;
|
||||
@@ -29,6 +30,7 @@ namespace NBF
|
||||
|
||||
style = GetController("style");
|
||||
back = (GImage)GetChild("back");
|
||||
back2 = (GImage)GetChild("back2");
|
||||
TextName = (GTextField)GetChild("TextName");
|
||||
TextInfo = (GTextField)GetChild("TextInfo");
|
||||
Slider = (GSlider)GetChild("Slider");
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace NBF
|
||||
public override string UIPackName => "Main";
|
||||
public override string UIResName => "SettingPanel";
|
||||
|
||||
[AutoFind(Name = "Title")]
|
||||
public GComponent Title;
|
||||
[AutoFind(Name = "MenuList")]
|
||||
public CommonSubMenu MenuList;
|
||||
[AutoFind(Name = "Introduce")]
|
||||
@@ -24,8 +26,6 @@ namespace NBF
|
||||
public BottomMenu BottomMenu;
|
||||
[AutoFind(Name = "Mask")]
|
||||
public GLabel Mask;
|
||||
[AutoFind(Name = "Title")]
|
||||
public GComponent Title;
|
||||
public override string[] GetDependPackages(){ return new string[] {"Common","CommonNew"}; }
|
||||
|
||||
public static void Show(object param = null){ UI.Inst.OpenUI<SettingPanel>(param); }
|
||||
|
||||
@@ -82,16 +82,15 @@ namespace NBF
|
||||
|
||||
|
||||
var url = UIPackage.GetItemURL(UIPackName, "SettingSubTitleItem");
|
||||
var groupIndex = 0;
|
||||
|
||||
foreach (var key in groupOptions.Keys)
|
||||
{
|
||||
var value = groupOptions[key];
|
||||
if (groupIndex > 0)
|
||||
|
||||
|
||||
if (List.AddItemFromPool(url) is GLabel label)
|
||||
{
|
||||
if (List.AddItemFromPool(url) is GLabel label)
|
||||
{
|
||||
label.SetLanguage(key);
|
||||
}
|
||||
label.SetLanguage(key);
|
||||
}
|
||||
|
||||
foreach (var option in value)
|
||||
@@ -103,8 +102,6 @@ namespace NBF
|
||||
_canSelectIndex.Add(index);
|
||||
}
|
||||
}
|
||||
|
||||
groupIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace NBF
|
||||
public override string UIPackName => "Main";
|
||||
public override string UIResName => "SettingWaitInputPanel";
|
||||
|
||||
[AutoFind(Name = "back")]
|
||||
public GImage back;
|
||||
[AutoFind(Name = "TextTime")]
|
||||
public GTextField TextTime;
|
||||
[AutoFind(Name = "BtnCancel")]
|
||||
|
||||
Reference in New Issue
Block a user