Exemple #1
0
        private void _ShowUI(Command cmd)
        {
            BaseUI ui = null;

            _dicUI.TryGetValue(cmd.UIType, out ui);
            if (ui != null)
            {
                ui.Show(cmd.Params);

                _curUI = ui;
                if (ui.mUIStyle == E_UIStyle.BackClose)
                {
                    _backSequence.Push(ui);
                }

                if (cmd.Listener != null)
                {
                    cmd.Listener(ui);
                }

                if (cmd.lua_fun != null)
                {
                    cmd.lua_fun.Call(ui.gameObject);
                }
            }
        }
Exemple #2
0
 static int Show(IntPtr L)
 {
     try
     {
         int count = LuaDLL.lua_gettop(L);
         MyFrameWork.BaseUI obj  = (MyFrameWork.BaseUI)ToLua.CheckObject(L, 1, typeof(MyFrameWork.BaseUI));
         object[]           arg0 = ToLua.ToParamsObject(L, 2, count - 1);
         obj.Show(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }