Class UiUtils

java.lang.Object
com.prineside.tdi2.utils.UiUtils

public class UiUtils extends Object
  • Constructor Details

    • UiUtils

      public UiUtils()
  • Method Details

    • finishActions

      public static void finishActions(Actor actor, float maxDuration)
    • bringToFront

      public static void bringToFront(Actor actor)
      Bring actor to the top by moving it to the end in its parent's children list. Does not remove the actor and preserves keyboard / scroll focus.
    • hasParent

      public static boolean hasParent(Actor actor, Group parent)
    • getFullPathToStage

      public static StringBuilder getFullPathToStage(Actor actor)
    • enableMouseMoveScrollFocus

      public static void enableMouseMoveScrollFocus(ScrollPane scrollPane)
      Make scrollPane focused / unfocused when player moves the cursor over it
    • isVisibleRecursive

      public static boolean isVisibleRecursive(Actor actor)
      Returns:
      false if not visible, parents are not visible or not on a stage
    • bouncyShowOverlay

      public static void bouncyShowOverlay(Actor overlayTable, Actor mainTable, Group container)
    • bouncyShowOverlayWithCallback

      public static void bouncyShowOverlayWithCallback(Actor overlayTable, Actor mainTable, Group container, Runnable cb)
    • bouncyHideOverlay

      public static void bouncyHideOverlay(Actor overlayTable, Actor mainTable, Group container)
    • bouncyHideOverlayWithCallback

      public static void bouncyHideOverlayWithCallback(Actor overlayTable, Actor mainTable, Group container, Runnable cb)