예제 #1
0
 /**
  * If not {@link Debug#none}, debug is enabled only for the first ascendant of the actor under the
  * mouse that is a table. Can be combined with {@link #setDebugAll(boolean)}.
  *
  * @param debugTableUnderMouse May be null for {@link Debug#none}.
  */
 public void setDebugTableUnderMouse(Debug debugTableUnderMouse) {
   if (debugTableUnderMouse == null) debugTableUnderMouse = Debug.none;
   if (this.debugTableUnderMouse == debugTableUnderMouse) return;
   this.debugTableUnderMouse = debugTableUnderMouse;
   if (debugTableUnderMouse != Debug.none) debug = true;
   else root.setDebug(false, true);
 }
예제 #2
0
 /**
  * If true, debug is enabled only for the parent of the actor under the mouse. Can be combined
  * with {@link #setDebugAll(boolean)}.
  */
 public void setDebugParentUnderMouse(boolean debugParentUnderMouse) {
   if (this.debugParentUnderMouse == debugParentUnderMouse) return;
   this.debugParentUnderMouse = debugParentUnderMouse;
   if (debugParentUnderMouse) debug = true;
   else root.setDebug(false, true);
 }
예제 #3
0
 /** If true, debug lines are shown for all actors. */
 public void setDebugAll(boolean debugAll) {
   if (this.debugAll == debugAll) return;
   this.debugAll = debugAll;
   if (debugAll) debug = true;
   else root.setDebug(false, true);
 }