Class ObjectDebugWindow

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
com.badlogic.gdx.scenes.scene2d.ui.Table
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable, com.badlogic.gdx.scenes.scene2d.utils.Layout, IObserver, IScreen

public class ObjectDebugWindow extends GenericDialog implements IObserver
This window provides a way to review and manipulate objects' internals. It acts on Entity objects as base units. It exposes the internal Component objects and their attributes.
  • Constructor Details

    • ObjectDebugWindow

      public ObjectDebugWindow(com.badlogic.gdx.scenes.scene2d.Stage ui, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, Scene scene)
  • Method Details

    • build

      protected void build()
      Description copied from class: GenericDialog
      Build the content here.
      Specified by:
      build in class GenericDialog
    • show

      public GenericDialog show(com.badlogic.gdx.scenes.scene2d.Stage stage)
      Description copied from class: GenericDialog
      Packs the dialog and adds it to the stage, centered with default fadeIn action.
      Overrides:
      show in class GenericDialog
    • createEnumSelectBox

      public <T extends Enum<T>> OwnSelectBox<T> createEnumSelectBox(Class<T> enumType)
    • getAllFields

      public static com.badlogic.gdx.utils.Array<Field> getAllFields(com.badlogic.ashley.core.Component component)
      Gets all fields of the given component and all its ancestors that are also components.
      Parameters:
      component - The component.
      Returns:
      An array of fields.
    • parse

    • clearText

      public void clearText()
    • accept

      protected boolean accept()
      Description copied from class: GenericDialog
      The accept function, if any.
      Specified by:
      accept in class GenericDialog
      Returns:
      True if the dialog must close after the call, false otherwise.
    • cancel

      protected void cancel()
      Description copied from class: GenericDialog
      The cancel function, if any.
      Specified by:
      cancel in class GenericDialog
    • dispose

      public void dispose()
      Specified by:
      dispose in class GenericDialog
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.