替换UI
This commit is contained in:
@@ -61,9 +61,9 @@ namespace NBF
|
||||
// await Task.Delay(100);
|
||||
CommonTopPanel.Show();
|
||||
// SettingPanel.Show();
|
||||
// LoginPanel.Show();
|
||||
LoginPanel.Show();
|
||||
// MessageBox.Show();
|
||||
FishingShopPanel.Show();
|
||||
// FishingShopPanel.Show();
|
||||
// PreviewPanel.Show();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace NBF
|
||||
for (int i = 0; i < subItems.Count; i++)
|
||||
{
|
||||
var tabData = subItems[i];
|
||||
var tabItem = List.AddItemFromPool(i == 0 ? BtnSubMenuLeft.URL : BtnSubMenu.URL).asButton;
|
||||
var tabItem = List.AddItemFromPool(BtnSubMenu.URL).asButton;//i == 0 ? BtnSubMenuLeft.URL :
|
||||
tabItem.SetLanguage(tabData.Key);
|
||||
|
||||
width += tabItem.width;
|
||||
|
||||
@@ -32,7 +32,8 @@ namespace NBF
|
||||
}
|
||||
else if (btn == BtnFishBag)
|
||||
{
|
||||
FishBagPanel.Show();
|
||||
// FishBagPanel.Show();
|
||||
FishingShopPanel.Show();
|
||||
}
|
||||
else if (btn == BtnMake)
|
||||
{
|
||||
|
||||
@@ -22,9 +22,9 @@ namespace NBF
|
||||
{
|
||||
if (btn == BtnLogin)
|
||||
{
|
||||
// OnLoginClick().Coroutine();
|
||||
Debug.LogError("test");
|
||||
MessageBox.Show();
|
||||
OnLoginClick().Coroutine();
|
||||
// Debug.LogError("test");
|
||||
// MessageBox.Show();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,15 +32,14 @@ namespace NBF
|
||||
{
|
||||
await LoginHelper.Login(InputAccount.text);
|
||||
|
||||
// await Fishing.Instance.Go(RoleModel.Instance.Info.MapId);
|
||||
// await MapHelper.EnterMap(mapId, role.RoomCode);
|
||||
await Fishing.Instance.Go(RoleModel.Instance.Info.MapId);
|
||||
|
||||
// BagPanel.Show();
|
||||
// BagSlotPanel.Show();
|
||||
|
||||
// SettingPanel.Show();
|
||||
// HomePanel.Show();
|
||||
FishingShopPanel.Show();
|
||||
|
||||
|
||||
Del();
|
||||
}
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -14,16 +14,18 @@ namespace NBF
|
||||
public override string UIPackName => "Main";
|
||||
public override string UIResName => "FishingShopPanel";
|
||||
|
||||
[AutoFind(Name = "BottomMenu")]
|
||||
public BottomMenu BottomMenu;
|
||||
[AutoFind(Name = "ItemList")]
|
||||
public CommonItemList ItemList;
|
||||
[AutoFind(Name = "BottomMenu")]
|
||||
public BottomMenu BottomMenu;
|
||||
[AutoFind(Name = "Currencys")]
|
||||
public GComponent Currencys;
|
||||
[AutoFind(Name = "Loading")]
|
||||
public GLabel Loading;
|
||||
[AutoFind(Name = "Head")]
|
||||
public GButton Head;
|
||||
[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<FishingShopPanel>(param); }
|
||||
|
||||
Reference in New Issue
Block a user