结构大修改,改成朴实无华的结构,不过度架构。能跑就行
This commit is contained in:
@@ -32,11 +32,11 @@ namespace NBF
|
||||
public GButton BtnSaveSetting;
|
||||
public override string[] GetDependPackages(){ return new string[] {"Common","Main"}; }
|
||||
|
||||
public static void Show(object param = null){ App.UI.OpenUI<PreviewDetailsPanel>(param); }
|
||||
public static void Show(object param = null){ UI.Inst.OpenUI<PreviewDetailsPanel>(param); }
|
||||
|
||||
public static void Hide(){ App.UI.HideUI<PreviewDetailsPanel>(); }
|
||||
public static void Hide(){ UI.Inst.HideUI<PreviewDetailsPanel>(); }
|
||||
|
||||
public static void Del(){ App.UI.DestroyUI<PreviewDetailsPanel>(); }
|
||||
public static void Del(){ UI.Inst.DestroyUI<PreviewDetailsPanel>(); }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ namespace NBF
|
||||
});
|
||||
// Model.SetBackground(Back);
|
||||
|
||||
Game.Input.OnUICanceled += OnUICanceled;
|
||||
InputManager.OnUICanceled += OnUICanceled;
|
||||
}
|
||||
|
||||
|
||||
|
||||
6
Assets/Scripts/UI/Tools/PreviewPanel.Designer.cs
generated
6
Assets/Scripts/UI/Tools/PreviewPanel.Designer.cs
generated
@@ -24,11 +24,11 @@ namespace NBF
|
||||
public ModelViewer GenModel;
|
||||
public override string[] GetDependPackages(){ return new string[] {"Common","Main"}; }
|
||||
|
||||
public static void Show(object param = null){ App.UI.OpenUI<PreviewPanel>(param); }
|
||||
public static void Show(object param = null){ UI.Inst.OpenUI<PreviewPanel>(param); }
|
||||
|
||||
public static void Hide(){ App.UI.HideUI<PreviewPanel>(); }
|
||||
public static void Hide(){ UI.Inst.HideUI<PreviewPanel>(); }
|
||||
|
||||
public static void Del(){ App.UI.DestroyUI<PreviewPanel>(); }
|
||||
public static void Del(){ UI.Inst.DestroyUI<PreviewPanel>(); }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ namespace NBF
|
||||
protected override void OnShow()
|
||||
{
|
||||
ItemList.List.OnClickItem += OnClickItem;
|
||||
Game.Input.OnUICanceled += OnUICanceled;
|
||||
InputManager.OnUICanceled += OnUICanceled;
|
||||
|
||||
List<TabItemData> tabItemList = new List<TabItemData>();
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace NBF
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
Game.Input.OnUICanceled -= OnUICanceled;
|
||||
InputManager.OnUICanceled -= OnUICanceled;
|
||||
ItemList.List.OnClickItem -= OnClickItem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user