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

                DCET.Model.FUI gen_to_be_invoked = (DCET.Model.FUI)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.GObject = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #2
0
        static int _s_set_Visible(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.FUI gen_to_be_invoked = (DCET.Model.FUI)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Visible = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #3
0
        static int _g_get_GObject(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.FUI gen_to_be_invoked = (DCET.Model.FUI)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.GObject);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Example #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.FUI gen_ret = new DCET.Model.FUI();
                    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 DCET.Model.FUI constructor!"));
        }
Example #5
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.FUI gen_to_be_invoked = (DCET.Model.FUI)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));
            }
        }
Example #6
0
        static int _m_Add(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.FUIComponent gen_to_be_invoked = (DCET.Model.FUIComponent)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.FUI _ui = (DCET.Model.FUI)translator.GetObject(L, 2, typeof(DCET.Model.FUI));

                    gen_to_be_invoked.Add(_ui);



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


                DCET.Model.FUI gen_to_be_invoked = (DCET.Model.FUI)translator.FastGetCSObj(L, 1);



                {
                    string _name = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.Remove(_name);



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


                DCET.Model.FUIComponent gen_to_be_invoked = (DCET.Model.FUIComponent)translator.FastGetCSObj(L, 1);



                {
                    string _name = LuaAPI.lua_tostring(L, 2);

                    DCET.Model.FUI gen_ret = gen_to_be_invoked.Get(_name);
                    translator.Push(L, gen_ret);



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


                DCET.Model.FUIAwakeSystem gen_to_be_invoked = (DCET.Model.FUIAwakeSystem)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.FUI   _self    = (DCET.Model.FUI)translator.GetObject(L, 2, typeof(DCET.Model.FUI));
                    FairyGUI.GObject _gObject = (FairyGUI.GObject)translator.GetObject(L, 3, typeof(FairyGUI.GObject));

                    gen_to_be_invoked.Awake(_self, _gObject);



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