Esempio n. 1
0
        static int _m_SetCodeText(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.SetCodeText(_id);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    int  _id = LuaAPI.xlua_tointeger(L, 2);
                    bool _z1 = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.SetCodeText(_id, _z1);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    int _z1 = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.SetCodeText(_id, _z1);



                    return(0);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _text = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.SetCodeText(_text);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Game.UIText.SetCodeText!"));
        }
Esempio n. 2
0
        static int _s_set_addColon(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.addColon = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 3
0
        static int _g_get_showVertical(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showVertical);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Game.UIText gen_ret = new Game.UIText();
                    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 Game.UIText constructor!"));
        }
Esempio n. 5
0
        static int _m_GetWidth(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1);



                {
                    float gen_ret = gen_to_be_invoked.GetWidth(  );
                    LuaAPI.lua_pushnumber(L, gen_ret);



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


                Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1);



                {
                    int _anchor = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.SetTextAlignment(_anchor);



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


                Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1);



                {
                    int     _id = LuaAPI.xlua_tointeger(L, 2);
                    zstring _z1 = (zstring)translator.GetObject(L, 3, typeof(zstring));

                    gen_to_be_invoked.SetCodeTextZ(_id, _z1);



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