Example #1
0
        private void ListenNet(Type publishType, int code, IEventArgs args, object[] param)
        {
            LoginResponse res = param[0] as LoginResponse;

            if (res != null && res.sucess)
            {
                APP.acc   = res.account;
                APP.uname = res.name;
                APP.psd   = password;
                APP.UI.Get <GamePanel>(UIConfig.Name <GamePanel>(), UIConfig.Path <GamePanel>(), UIConfig.Layer <GamePanel>());
            }
        }
Example #2
0
        private void InitAppModules()
        {
            UI = Framework.env1.modules.CreateModule <UIModule>();
            UI.AddLoader(UILoader);
            UIPanel UILoader(Type type, string path, string name, UIPanelLayer layer)
            {
                GameObject go = Resources.Load <GameObject>(path);
                UIPanel    p  = go.GetComponent <UIPanel>();

                return(p);
            }

            UI.SetMap(UIMap_MVVM.map);

            UI.Get <TipPanel>(UIConfig.Name <TipPanel>(), UIConfig.Path <TipPanel>(), UIConfig.Layer <TipPanel>());

            UI.Get <StatusPanel>(UIConfig.Name <StatusPanel>(), UIConfig.Path <StatusPanel>(), UIConfig.Layer <StatusPanel>());
            UI.Get <UpdatePanel>(UIConfig.Name <UpdatePanel>(), UIConfig.Path <UpdatePanel>(), UIConfig.Layer <UpdatePanel>());
        }
Example #3
0
        private void InitAppModules()
        {
            UI = Framework.env1.modules.CreateModule <UIModule>();
            UI.AddLoader(this);


            UI.SetGroups(new Groups(UIMap_MVVM.map));

            UI.Get <TipPanel>(UIConfig.Name <TipPanel>(), UIConfig.Path <TipPanel>(), UIConfig.Layer <TipPanel>());

            UI.Get <StatusPanel>(UIConfig.Name <StatusPanel>(), UIConfig.Path <StatusPanel>(), UIConfig.Layer <StatusPanel>());
            UI.Get <UpdatePanel>(UIConfig.Name <UpdatePanel>(), UIConfig.Path <UpdatePanel>(), UIConfig.Layer <UpdatePanel>());
        }
 private void GoToAppCoverPanel()
 {
     APP.UI.Get <AppCoverPanel>(UIConfig.Name <AppCoverPanel>(), UIConfig.Path <AppCoverPanel>(), UIConfig.Layer <AppCoverPanel>());
 }
 protected override void OnLoad()
 {
     this.Tpanel.Btn_Register.onClick.AddListener(() =>
     {
         APP.UI.Get <RegisterPanel>(UIConfig.Name <RegisterPanel>(), UIConfig.Path <RegisterPanel>(), UIConfig.Layer <RegisterPanel>());
     });
     this.Tpanel.Btn_Load.onClick.AddListener(() =>
     {
         APP.UI.Get <LoadPanel>(UIConfig.Name <LoadPanel>(), UIConfig.Path <LoadPanel>(), UIConfig.Layer <LoadPanel>());
     });
 }