Exemple #1
0
    static int set_Text(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            JJLabel           obj = (JJLabel)o;
            UnityEngine.Color ret = obj.FontColor;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FontColor on a nil value" : e.Message));
        }
    }
Exemple #3
0
    static int set_FontColor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            JJLabel           obj  = (JJLabel)o;
            UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
            obj.FontColor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FontColor on a nil value" : e.Message));
        }
    }
Exemple #4
0
    static int get_Text(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            JJLabel obj = (JJLabel)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));
        }
    }
Exemple #5
0
    static int set_FontStyle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            JJLabel obj  = (JJLabel)o;
            int     arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.FontStyle = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FontStyle on a nil value" : e.Message));
        }
    }