NBC修改
This commit is contained in:
@@ -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>(); }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace NBF
|
||||
}
|
||||
else if (_interactiveObject.Type == UIDef.InteractiveType.FishingShop)
|
||||
{
|
||||
UI.Inst.OpenUI<FishingShopPanel>();
|
||||
FishingShopPanel.Show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user