예제 #1
0
 static int SetCount(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.UIGroup obj  = (UI.UIGroup)ToLua.CheckObject(L, 1, typeof(UI.UIGroup));
         int        arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.SetCount(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int GetEnumerator(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UI.UIGroup obj = (UI.UIGroup)ToLua.CheckObject(L, 1, typeof(UI.UIGroup));
         System.Collections.IEnumerator o = obj.GetEnumerator();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int get_Item(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.UIGroup             obj  = (UI.UIGroup)ToLua.CheckObject(L, 1, typeof(UI.UIGroup));
         int                    arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.GameObject o    = obj[arg0];
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
    static int get_Count(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.UIGroup obj = (UI.UIGroup)o;
            int        ret = obj.Count;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Count on a nil value" : e.Message));
        }
    }
예제 #5
0
 public static void Show()
 {
     Group = ModMenu.Ins.Cover(new[] { "UIPrefab/MainMenu_Board" });
 }
 public static void Show()
 {
     Group = ModMenu.Ins.Cover(new[] { "UIPrefab/Bottom_Board", "UIPrefab/DifficultySelect_Board" });
 }