Exemplo n.º 1
0
        static int _s_set_show(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ETCArea gen_to_be_invoked = (ETCArea)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.show = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        ETCArea t = (ETCArea)target;

        t.show = ETCGuiTools.Toggle("Show at runtime", t.show, true);
        EditorGUILayout.Space();

        preset = (ETCArea.AreaPreset)EditorGUILayout.EnumPopup("Preset", preset);
        if (preset != ETCArea.AreaPreset.Choose)
        {
            t.ApplyPreset(preset);
            preset = ETCArea.AreaPreset.Choose;
        }
    }
Exemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new ETCArea();
                    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 ETCArea constructor!"));
        }
Exemplo n.º 4
0
    public override void OnInspectorGUI()
    {
        ETCArea t = (ETCArea)target;

        t.show = ETCGuiTools.Toggle("Show at runtime", t.show, true);
        EditorGUILayout.Space();

        preset = (ETCArea.AreaPreset)EditorGUILayout.EnumPopup("Preset", preset);
        if (preset != ETCArea.AreaPreset.Choose)
        {
            t.ApplyPreset(preset);
            preset = ETCArea.AreaPreset.Choose;
        }

        if (GUI.changed)
        {
            EditorUtility.SetDirty(t);
            EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene());
        }
    }
Exemplo n.º 5
0
        static int _m_Awake(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.Awake(  );



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


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



                {
                    ETCArea.AreaPreset _preset; translator.Get(L, 2, out _preset);

                    gen_to_be_invoked.ApplyPreset(_preset);



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