Beispiel #1
0
    public static int set_EventOnClose(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            Action value;
            int    num = LuaObject.checkDelegate <Action>(l, 2, out value);
            if (num != 0)
            {
                if (num == 1)
                {
                    playerLevelUpUIController.EventOnClose += value;
                }
                else if (num == 2)
                {
                    playerLevelUpUIController.EventOnClose -= value;
                }
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #2
0
    public static int __callBase_BindFieldImpl(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            Type fieldType;
            LuaObject.checkType(l, 2, out fieldType);
            string path;
            LuaObject.checkType(l, 3, out path);
            AutoBindAttribute.InitState initState;
            LuaObject.checkEnum <AutoBindAttribute.InitState>(l, 4, out initState);
            string fieldName;
            LuaObject.checkType(l, 5, out fieldName);
            string ctrlName;
            LuaObject.checkType(l, 6, out ctrlName);
            bool optional;
            LuaObject.checkType(l, 7, out optional);
            UnityEngine.Object o = playerLevelUpUIController.m_luaExportHelper.__callBase_BindFieldImpl(fieldType, path, initState, fieldName, ctrlName, optional);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #3
0
    public static int get_m_isClick(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, playerLevelUpUIController.m_luaExportHelper.m_isClick);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #4
0
    public static int __clearDele_EventOnClose(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            playerLevelUpUIController.m_luaExportHelper.__clearDele_EventOnClose();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #5
0
    public static int OnBindFiledsCompleted(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            playerLevelUpUIController.m_luaExportHelper.OnBindFiledsCompleted();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #6
0
    public static int __callBase_ToString(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            string s = playerLevelUpUIController.m_luaExportHelper.__callBase_ToString();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, s);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #7
0
    public static int set_m_addEnergyText(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            Text addEnergyText;
            LuaObject.checkType <Text>(l, 2, out addEnergyText);
            playerLevelUpUIController.m_luaExportHelper.m_addEnergyText = addEnergyText;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #8
0
    public static int set_m_backgroundButton(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            Button backgroundButton;
            LuaObject.checkType <Button>(l, 2, out backgroundButton);
            playerLevelUpUIController.m_luaExportHelper.m_backgroundButton = backgroundButton;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #9
0
    public static int set_m_uiStateController(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            CommonUIStateController   uiStateController;
            LuaObject.checkType <CommonUIStateController>(l, 2, out uiStateController);
            playerLevelUpUIController.m_luaExportHelper.m_uiStateController = uiStateController;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #10
0
    public static int __callBase_SetToggleValueChangedListener(IntPtr l)
    {
        int result;

        try
        {
            int total = LuaDLL.lua_gettop(l);
            if (LuaObject.matchType(l, total, 2, typeof(string[]), typeof(Action <UIControllerBase, bool>)))
            {
                PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
                string[] fieldNames;
                LuaObject.checkArray <string>(l, 2, out fieldNames);
                Action <UIControllerBase, bool> action;
                LuaObject.checkDelegate <Action <UIControllerBase, bool> >(l, 3, out action);
                playerLevelUpUIController.m_luaExportHelper.__callBase_SetToggleValueChangedListener(fieldNames, action);
                LuaObject.pushValue(l, true);
                result = 1;
            }
            else if (LuaObject.matchType(l, total, 2, typeof(string), typeof(Action <UIControllerBase, bool>)))
            {
                PlayerLevelUpUIController playerLevelUpUIController2 = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
                string fieldName;
                LuaObject.checkType(l, 2, out fieldName);
                Action <UIControllerBase, bool> action2;
                LuaObject.checkDelegate <Action <UIControllerBase, bool> >(l, 3, out action2);
                playerLevelUpUIController2.m_luaExportHelper.__callBase_SetToggleValueChangedListener(fieldName, action2);
                LuaObject.pushValue(l, true);
                result = 1;
            }
            else
            {
                LuaObject.pushValue(l, false);
                LuaDLL.lua_pushstring(l, "No matched override function __callBase_SetToggleValueChangedListener to call");
                result = 2;
            }
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #11
0
    public static int __callBase_SetButtonLongPressEndListener(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            string fieldName;
            LuaObject.checkType(l, 2, out fieldName);
            Action <UIControllerBase> action;
            LuaObject.checkDelegate <Action <UIControllerBase> >(l, 3, out action);
            playerLevelUpUIController.m_luaExportHelper.__callBase_SetButtonLongPressEndListener(fieldName, action);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #12
0
    public static int __callBase_OnButtonClick(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            Button button;
            LuaObject.checkType <Button>(l, 2, out button);
            string fieldName;
            LuaObject.checkType(l, 3, out fieldName);
            playerLevelUpUIController.m_luaExportHelper.__callBase_OnButtonClick(button, fieldName);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #13
0
    public static int ShowPlayerLevelUp(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            int oldLevel;
            LuaObject.checkType(l, 2, out oldLevel);
            int newLevel;
            LuaObject.checkType(l, 3, out newLevel);
            playerLevelUpUIController.ShowPlayerLevelUp(oldLevel, newLevel);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #14
0
    public static int __callBase_Initlize(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            string ctrlName;
            LuaObject.checkType(l, 2, out ctrlName);
            bool bindNow;
            LuaObject.checkType(l, 3, out bindNow);
            playerLevelUpUIController.m_luaExportHelper.__callBase_Initlize(ctrlName, bindNow);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #15
0
    public static int Co_SetAndWaitUIState(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            CommonUIStateController   ctrl;
            LuaObject.checkType <CommonUIStateController>(l, 2, out ctrl);
            string state;
            LuaObject.checkType(l, 3, out state);
            IEnumerator o = playerLevelUpUIController.m_luaExportHelper.Co_SetAndWaitUIState(ctrl, state);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #16
0
    public static int Co_Open(IntPtr l)
    {
        int result;

        try
        {
            PlayerLevelUpUIController playerLevelUpUIController = (PlayerLevelUpUIController)LuaObject.checkSelf(l);
            int oldLevel;
            LuaObject.checkType(l, 2, out oldLevel);
            int newLevel;
            LuaObject.checkType(l, 3, out newLevel);
            IEnumerator o = playerLevelUpUIController.m_luaExportHelper.Co_Open(oldLevel, newLevel);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }