예제 #1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        FairyGUI.VertAlignType o = (FairyGUI.VertAlignType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
예제 #2
0
    static int set_verticalAlign(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GTextField    obj  = (FairyGUI.GTextField)o;
            FairyGUI.VertAlignType arg0 = (FairyGUI.VertAlignType)ToLua.CheckObject(L, 2, typeof(FairyGUI.VertAlignType));
            obj.verticalAlign = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index verticalAlign on a nil value" : e.Message));
        }
    }
예제 #3
0
    static int get_verticalAlign(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GTextField    obj = (FairyGUI.GTextField)o;
            FairyGUI.VertAlignType ret = obj.verticalAlign;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index verticalAlign on a nil value" : e.Message));
        }
    }
예제 #4
0
        static StackObject *set_verticalAlign_14(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, 2);

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

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

            instance_of_this_method.verticalAlign = value;

            return(__ret);
        }