コード例 #1
0
    static int set_backgroundImage(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            VisowFrameWork.UIProgressBar obj  = (VisowFrameWork.UIProgressBar)o;
            UnityEngine.UI.Image         arg0 = (UnityEngine.UI.Image)ToLua.CheckObject <UnityEngine.UI.Image>(L, 2);
            obj.backgroundImage = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index backgroundImage on a nil value"));
        }
    }
コード例 #2
0
    static int get_progressImage(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            VisowFrameWork.UIProgressBar obj = (VisowFrameWork.UIProgressBar)o;
            UnityEngine.UI.Image         ret = obj.progressImage;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index progressImage on a nil value"));
        }
    }
コード例 #3
0
    static int get_Percent(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            VisowFrameWork.UIProgressBar obj = (VisowFrameWork.UIProgressBar)o;
            float ret = obj.Percent;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Percent on a nil value"));
        }
    }
コード例 #4
0
    static int set_Percent(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            VisowFrameWork.UIProgressBar obj = (VisowFrameWork.UIProgressBar)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.Percent = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Percent on a nil value"));
        }
    }