NBC修改

This commit is contained in:
bob
2025-07-03 14:16:18 +08:00
parent 4febfadd56
commit 800e96aac7
2083 changed files with 60081 additions and 2942 deletions

View File

@@ -11,6 +11,9 @@ namespace NBF
public partial class FishingPanel
{
public GObject this[string aKey] => ContentPane.GetChild(aKey);
public override string UIPackName => "Fishing";
public override string UIResName => "FishingPanel";
[AutoFind(Name = "throwCtrl")]
public Controller throwCtrl;
[AutoFind(Name = "fishingState")]
@@ -31,6 +34,11 @@ namespace NBF
public GList OperationTips;
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
public static void Show(object param = null){ App.UI.OpenUI<FishingPanel>(param); }
public static void Hide(){ App.UI.HideUI<FishingPanel>(); }
public static void Del(){ App.UI.DestroyUI<FishingPanel>(); }
}
}

View File

@@ -8,9 +8,6 @@ namespace NBF
{
public partial class FishingPanel : UIPanel
{
public override string UIPackName => "Fishing";
public override string UIResName => "FishingPanel";
protected override void OnInit()
{
IsShowCursor = false;
@@ -50,7 +47,7 @@ namespace NBF
if (action == InputDef.UI.Back)
{
if (!IsTop) return;
UI.Inst.OpenUI<HomePanel>();
HomePanel.Show();
}
}

View File

@@ -61,7 +61,7 @@ namespace NBF
}
else if (_interactiveObject.Type == UIDef.InteractiveType.FishingShop)
{
UI.Inst.OpenUI<FishingShopPanel>();
FishingShopPanel.Show();
}
}