GLabel class.
Inheritance: GComponent
 static public int get_title(IntPtr l)
 {
     try {
         FairyGUI.GLabel self = (FairyGUI.GLabel)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.title);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         FairyGUI.GLabel o;
         o = new FairyGUI.GLabel();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Setup_AfterAdd(IntPtr l)
 {
     try {
         FairyGUI.GLabel    self = (FairyGUI.GLabel)checkSelf(l);
         FairyGUI.Utils.XML a1;
         checkType(l, 2, out a1);
         self.Setup_AfterAdd(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_title(IntPtr l)
 {
     try {
         FairyGUI.GLabel self = (FairyGUI.GLabel)checkSelf(l);
         string          v;
         checkType(l, 2, out v);
         self.title = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetTextField(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GLabel     obj = (FairyGUI.GLabel)ToLua.CheckObject <FairyGUI.GLabel>(L, 1);
         FairyGUI.GTextField o   = obj.GetTextField();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Setup_AfterAdd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GLabel    obj  = (FairyGUI.GLabel)ToLua.CheckObject <FairyGUI.GLabel>(L, 1);
         FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject <FairyGUI.Utils.XML>(L, 2);
         obj.Setup_AfterAdd(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int ConstructFromXML(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GLabel    obj  = (FairyGUI.GLabel)ToLua.CheckObject(L, 1, typeof(FairyGUI.GLabel));
         FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject(L, 2, typeof(FairyGUI.Utils.XML));
         obj.ConstructFromXML(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Setup_AfterAdd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.GLabel           obj  = (FairyGUI.GLabel)ToLua.CheckObject <FairyGUI.GLabel>(L, 1);
         FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject <FairyGUI.Utils.ByteBuffer>(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.Setup_AfterAdd(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_icon(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj = (FairyGUI.GLabel)o;
            string          ret = obj.icon;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index icon on a nil value"));
        }
    }
    static int set_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel   obj  = (FairyGUI.GLabel)o;
            UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
            obj.color = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"));
        }
    }
    static int set_titleFontSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj  = (FairyGUI.GLabel)o;
            int             arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.titleFontSize = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index titleFontSize on a nil value"));
        }
    }
Example #12
0
    static int set_icon(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj  = (FairyGUI.GLabel)o;
            string          arg0 = ToLua.CheckString(L, 2);
            obj.icon = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index icon on a nil value" : e.Message));
        }
    }
    static int set_text(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj  = (FairyGUI.GLabel)o;
            string          arg0 = ToLua.CheckString(L, 2);
            obj.text = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index text on a nil value"));
        }
    }
    static int get_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel   obj = (FairyGUI.GLabel)o;
            UnityEngine.Color ret = obj.color;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"));
        }
    }
    static int get_titleFontSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj = (FairyGUI.GLabel)o;
            int             ret = obj.titleFontSize;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index titleFontSize on a nil value"));
        }
    }
    static int get_editable(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj = (FairyGUI.GLabel)o;
            bool            ret = obj.editable;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index editable on a nil value"));
        }
    }
    static int set_editable(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj  = (FairyGUI.GLabel)o;
            bool            arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.editable = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index editable on a nil value"));
        }
    }
Example #18
0
    static int get_text(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GLabel obj = (FairyGUI.GLabel)o;
            string          ret = obj.text;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index text on a nil value" : e.Message));
        }
    }
    static int _CreateFairyGUI_GLabel(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                FairyGUI.GLabel obj = new FairyGUI.GLabel();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.GLabel.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }