| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 9, 1, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 9, 2, 1); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDefaultSpriteGrayMaterial", _m_GetDefaultSpriteGrayMaterial_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInstantiatedSpriteGrayMaterial", _m_GetInstantiatedSpriteGrayMaterial_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSmoothMaskGrayMaterial", _m_GetSmoothMaskGrayMaterial_xlua_st_); |
| | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hudMaterial", _g_get_hudMaterial); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "m_HudMaterial", _g_get_m_HudMaterial); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "m_HudMaterial", _s_set_m_HudMaterial); |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_m_HudMaterial(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, MaterialUtility.m_HudMaterial); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_m_HudMaterial(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | MaterialUtility.m_HudMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |