static int _s_set_mOnFinish(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UIRollNumWidget __cl_gen_to_be_invoked = (UIRollNumWidget)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mOnFinish = translator.GetDelegate <UIRollNumWidget.Finish>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_TimeScale(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UIRollNumWidget __cl_gen_to_be_invoked = (UIRollNumWidget)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.TimeScale = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UIRollNumWidget __cl_gen_ret = new UIRollNumWidget();
                    translator.Push(L, __cl_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 UIRollNumWidget constructor!"));
        }
        static int _m_Awake(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UIRollNumWidget __cl_gen_to_be_invoked = (UIRollNumWidget)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Awake(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_SetNewNum(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UIRollNumWidget __cl_gen_to_be_invoked = (UIRollNumWidget)translator.FastGetCSObj(L, 1);


            try {
                {
                    int newNum = LuaAPI.xlua_tointeger(L, 2);

                    __cl_gen_to_be_invoked.SetNewNum(newNum);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
 protected override void InitUI()
 {
     for (int i = 1; i <= 5; i++)
     {
         string str = "frame" + i;
         mFrame.Add(FindChild(str));
     }
     mTypeimg = FindChild("localImg").GetComponent <UISprite>();
     for (int i = 1; i <= 4; i++)
     {
         string str  = "new" + i;
         string str1 = "old" + i;
         mNewLabel.Add(FindChild(str).GetComponent <UILabel>());
         mOldLabel.Add(FindChild(str1).GetComponent <UILabel>());
     }
     mRollWidget = FindChild("RollNum").GetComponent <UIRollNumWidget>();
     mAdd        = FindChild("add").GetComponent <UILabel>();
     mCloseBtn   = FindChild("CloseBtn").GetComponent <UIButton>();
     mUnlockImg  = FindChild("localImg").GetComponent <UISprite>();
     mFrame[0].transform.localPosition = new Vector3(0, 90, 0);
     base.InitUI();
 }
        static int _m_Show(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UIRollNumWidget __cl_gen_to_be_invoked = (UIRollNumWidget)translator.FastGetCSObj(L, 1);


            try {
                {
                    int   num       = LuaAPI.xlua_tointeger(L, 2);
                    int   newNum    = LuaAPI.xlua_tointeger(L, 3);
                    float timeScale = (float)LuaAPI.lua_tonumber(L, 4);

                    __cl_gen_to_be_invoked.Show(num, newNum, timeScale);



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