public void Dismiss() { OnDismiss?.Invoke(); navAnimate?.AnimateOut(); IsCurrent = false; MVCCLog.Log($"UIView Dismiss {this.gameObject.name}"); }
public void Hide() { navAnimate?.AnimateOutInstant(); IsCurrent = false; OnDismiss?.Invoke(); MVCCLog.Log($"UIView Hide {this.gameObject.name}"); }
public virtual void Awake() { MVCCLog.Log("Reg View3d:" + name); App.ui3dviewObsever.Subscribe(this); navAnimate.Setup(); SetModel(); }
public void Present() { app.HideViews(this, controllerId); navAnimate?.AnimateIn(() => { OnPresent?.Invoke(); }); IsCurrent = true; MVCCLog.Log($"UIView Present {this.gameObject.name}"); }
public T GetView <T>() where T : UIView { var temp = typeof(T); if (App.uiviewList.ContainsKey(temp)) { if (App.uiviewList[temp].controllerId == controllerId) { return(App.uiviewList[temp] as T); } } MVCCLog.LogError($"Invalid View {typeof(T)}"); return(default);
public void ActivateNavController <T>() where T : UIViewControllerBase { var temp = GetNav <T>(CONTROLLER_TYPE.ALL); if (temp != null) { if (!temp.enableSwitch) { temp.OnNavigationActivate(); MVCCLog.Log($"NavController Activated: {temp.GetType()}"); } OnNavLog?.Invoke(temp); } }
public App() { model = new AppModel(); monoObsever.registerCall = (newcontroller) => { if (newcontroller.priority == 0) { monocontroller_list.Insert(0, newcontroller); } else { monocontroller_list.Add(newcontroller); } AddInterfaces(newcontroller); }; monoObsever.Publish(); uiviewObsever.registerCall = (uiview) => { var t = uiview.GetType(); if (!uiviewList.ContainsKey(t)) { uiviewList.Add(t, uiview); } }; uiviewObsever.Publish(); ui3dviewObsever.registerCall = (uiview) => { var t = uiview.GetType(); if (!uiviewList.ContainsKey(t)) { ui3dviewList.Add(t, uiview); } }; ui3dviewObsever.Publish(); MVCCLog.Log("App Class Started"); }