コード例 #1
0
        static int _m_Show(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.PopupMenu gen_to_be_invoked = (FairyGUI.PopupMenu)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.Show(  );



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <FairyGUI.GObject>(L, 2))
                {
                    FairyGUI.GObject _target = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject));

                    gen_to_be_invoked.Show(_target);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <FairyGUI.GObject>(L, 2) && translator.Assignable <FairyGUI.PopupDirection>(L, 3))
                {
                    FairyGUI.GObject        _target = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject));
                    FairyGUI.PopupDirection _dir; translator.Get(L, 3, out _dir);

                    gen_to_be_invoked.Show(_target, _dir);



                    return(0);
                }
                if (gen_param_count == 4 && translator.Assignable <FairyGUI.GObject>(L, 2) && translator.Assignable <FairyGUI.PopupDirection>(L, 3) && translator.Assignable <FairyGUI.PopupMenu>(L, 4))
                {
                    FairyGUI.GObject        _target = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject));
                    FairyGUI.PopupDirection _dir; translator.Get(L, 3, out _dir);
                    FairyGUI.PopupMenu      _parentMenu = (FairyGUI.PopupMenu)translator.GetObject(L, 4, typeof(FairyGUI.PopupMenu));

                    gen_to_be_invoked.Show(_target, _dir, _parentMenu);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.PopupMenu.Show!"));
        }
コード例 #2
0
        static StackObject *Show_18(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            FairyGUI.PopupMenu instance_of_this_method = (FairyGUI.PopupMenu) typeof(FairyGUI.PopupMenu).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Show();

            return(__ret);
        }