Exemplo n.º 1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        UnityEngine.UI.InputField.LineType o = (UnityEngine.UI.InputField.LineType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
    static int get_lineType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.InputField          obj = (UnityEngine.UI.InputField)o;
            UnityEngine.UI.InputField.LineType ret = obj.lineType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index lineType on a nil value"));
        }
    }
    static int set_lineType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.InputField          obj  = (UnityEngine.UI.InputField)o;
            UnityEngine.UI.InputField.LineType arg0 = (UnityEngine.UI.InputField.LineType)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.InputField.LineType));
            obj.lineType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index lineType on a nil value"));
        }
    }
Exemplo n.º 4
0
 static void Push(IntPtr L, UnityEngine.UI.InputField.LineType arg)
 {
     ToLua.Push(L, arg);
 }