Exemple #1
0
        static int _m_ShowOneButtonTip(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UINoticeTip gen_to_be_invoked = (UINoticeTip)translator.FastGetCSObj(L, 1);



                {
                    string        _title    = LuaAPI.lua_tostring(L, 2);
                    string        _content  = LuaAPI.lua_tostring(L, 3);
                    string        _btnText  = LuaAPI.lua_tostring(L, 4);
                    System.Action _callback = translator.GetDelegate <System.Action>(L, 5);

                    gen_to_be_invoked.ShowOneButtonTip(_title, _content, _btnText, _callback);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemple #2
0
        static int _g_get_isDone(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UINoticeTip gen_to_be_invoked = (UINoticeTip)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDone);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemple #3
0
        static int _s_set_UIGameObject(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UINoticeTip gen_to_be_invoked = (UINoticeTip)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.UIGameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UINoticeTip gen_ret = new UINoticeTip();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UINoticeTip constructor!"));
        }
Exemple #5
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UINoticeTip gen_to_be_invoked = (UINoticeTip)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }