Exemplo n.º 1
0
 public override void LoadOption()
 {
     if (!OptionsController.TryGetOptionValue(optionName, out string optionValue) ||
         !bool.TryParse(optionValue, out bool value) || toggle == null)
     {
         return;
     }
     toggle.SetIsOnWithoutNotify(value);
 }
        static StackObject *SetIsOnWithoutNotify_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Toggle instance_of_this_method = (UnityEngine.UI.Toggle) typeof(UnityEngine.UI.Toggle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetIsOnWithoutNotify(@value);

            return(__ret);
        }
Exemplo n.º 3
0
        int UnityEngineUIToggle_m_SetIsOnWithoutNotify(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1);


            {
                bool _value = LuaAPI.lua_toboolean(L, 2);

                gen_to_be_invoked.SetIsOnWithoutNotify(_value);



                return(0);
            }
        }
Exemplo n.º 4
0
        static int _m_SetIsOnWithoutNotify(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1);



                {
                    bool _value = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.SetIsOnWithoutNotify(_value);



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