Example #1
0
 static int Refresh(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIClippingLoop obj = (UIClippingLoop)ToLua.CheckObject(L, 1, typeof(UIClippingLoop));
         obj.Refresh();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
    static int set_refreshThreshold(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIClippingLoop obj  = (UIClippingLoop)o;
            float          arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.refreshThreshold = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refreshThreshold on a nil value" : e.Message));
        }
    }
Example #3
0
    static int get_refreshThreshold(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIClippingLoop obj = (UIClippingLoop)o;
            float          ret = obj.refreshThreshold;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refreshThreshold on a nil value" : e.Message));
        }
    }