static int _s_set_ignoreOrientation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIContentScaler gen_to_be_invoked = (FairyGUI.UIContentScaler)translator.FastGetCSObj(L, 1); gen_to_be_invoked.ignoreOrientation = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_defaultSpriteDPI(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIContentScaler gen_to_be_invoked = (FairyGUI.UIContentScaler)translator.FastGetCSObj(L, 1); gen_to_be_invoked.defaultSpriteDPI = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_constantScaleFactor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIContentScaler gen_to_be_invoked = (FairyGUI.UIContentScaler)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.constantScaleFactor); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_screenMatchMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIContentScaler gen_to_be_invoked = (FairyGUI.UIContentScaler)translator.FastGetCSObj(L, 1); translator.PushFairyGUIUIContentScalerScreenMatchMode(L, gen_to_be_invoked.screenMatchMode); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_screenMatchMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIContentScaler gen_to_be_invoked = (FairyGUI.UIContentScaler)translator.FastGetCSObj(L, 1); FairyGUI.UIContentScaler.ScreenMatchMode gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.screenMatchMode = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { FairyGUI.UIContentScaler gen_ret = new FairyGUI.UIContentScaler(); 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 FairyGUI.UIContentScaler constructor!")); }
static int _m_ApplyModifiedProperties(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.UIContentScaler gen_to_be_invoked = (FairyGUI.UIContentScaler)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ApplyModifiedProperties( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }