コード例 #1
0
    public static int __callBase_BindFieldImpl(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)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 = gainRewardButton.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);
    }
コード例 #2
0
    public static int set_EventOnClick(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton          gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            Action <GainRewardButton> value;
            int num = LuaObject.checkDelegate <Action <GainRewardButton> >(l, 2, out value);
            if (num != 0)
            {
                if (num == 1)
                {
                    gainRewardButton.EventOnClick += value;
                }
                else if (num == 2)
                {
                    gainRewardButton.EventOnClick -= value;
                }
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #3
0
    public static int get_m_status(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)gainRewardButton.m_luaExportHelper.m_status);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #4
0
    public static int __callBase_Clear(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            gainRewardButton.m_luaExportHelper.__callBase_Clear();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #5
0
    public static int OnBindFiledsCompleted(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            gainRewardButton.m_luaExportHelper.OnBindFiledsCompleted();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #6
0
    public static int GetNum(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            int num = gainRewardButton.GetNum();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, num);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #7
0
    public static int GetStatus(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            GainRewardStatus status           = gainRewardButton.GetStatus();
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)status);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #8
0
    public static int set_m_status(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            GainRewardStatus status;
            LuaObject.checkEnum <GainRewardStatus>(l, 2, out status);
            gainRewardButton.m_luaExportHelper.m_status = status;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #9
0
    public static int set_m_num(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            int num;
            LuaObject.checkType(l, 2, out num);
            gainRewardButton.m_luaExportHelper.m_num = num;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #10
0
    public static int set_m_openGameObject(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            GameObject       openGameObject;
            LuaObject.checkType <GameObject>(l, 2, out openGameObject);
            gainRewardButton.m_luaExportHelper.m_openGameObject = openGameObject;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #11
0
    public static int __clearDele_EventOnClick(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            GainRewardButton obj;
            LuaObject.checkType <GainRewardButton>(l, 2, out obj);
            gainRewardButton.m_luaExportHelper.__clearDele_EventOnClick(obj);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #12
0
    public static int SetId(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            int id;
            LuaObject.checkType(l, 2, out id);
            gainRewardButton.SetId(id);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #13
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>)))
            {
                GainRewardButton gainRewardButton = (GainRewardButton)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);
                gainRewardButton.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>)))
            {
                GainRewardButton gainRewardButton2 = (GainRewardButton)LuaObject.checkSelf(l);
                string           fieldName;
                LuaObject.checkType(l, 2, out fieldName);
                Action <UIControllerBase, bool> action2;
                LuaObject.checkDelegate <Action <UIControllerBase, bool> >(l, 3, out action2);
                gainRewardButton2.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);
    }
コード例 #14
0
    public static int __callBase_SetButtonLongPressEndListener(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            string           fieldName;
            LuaObject.checkType(l, 2, out fieldName);
            Action <UIControllerBase> action;
            LuaObject.checkDelegate <Action <UIControllerBase> >(l, 3, out action);
            gainRewardButton.m_luaExportHelper.__callBase_SetButtonLongPressEndListener(fieldName, action);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #15
0
    public static int __callBase_OnButtonClick(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            Button           button;
            LuaObject.checkType <Button>(l, 2, out button);
            string fieldName;
            LuaObject.checkType(l, 3, out fieldName);
            gainRewardButton.m_luaExportHelper.__callBase_OnButtonClick(button, fieldName);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #16
0
    public static int __callBase_Initlize(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            string           ctrlName;
            LuaObject.checkType(l, 2, out ctrlName);
            bool bindNow;
            LuaObject.checkType(l, 3, out bindNow);
            gainRewardButton.m_luaExportHelper.__callBase_Initlize(ctrlName, bindNow);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }