CenterOn() public method

Make the window be center of the screen.
public CenterOn ( GRoot r, bool restraint ) : void
r GRoot
restraint bool Add relations to ensure keeping center on screen size changed.
return void
Exemplo n.º 1
0
 static int CenterOn(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.Window obj  = (FairyGUI.Window)ToLua.CheckObject(L, 1, typeof(FairyGUI.Window));
         FairyGUI.GRoot  arg0 = (FairyGUI.GRoot)ToLua.CheckObject(L, 2, typeof(FairyGUI.GRoot));
         bool            arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.CenterOn(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static public int CenterOn(IntPtr l)
 {
     try {
         FairyGUI.Window self = (FairyGUI.Window)checkSelf(l);
         FairyGUI.GRoot  a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.CenterOn(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }