Package gaiasky.gui

Class PreferencesWindow

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

public class PreferencesWindow extends GenericDialog implements IObserver
  • Constructor Details

    • PreferencesWindow

      public PreferencesWindow(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, GlobalResources globalResources)
    • PreferencesWindow

      public PreferencesWindow(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, GlobalResources globalResources, boolean welcomeScreen)
  • 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, com.badlogic.gdx.scenes.scene2d.Action action)
      Description copied from class: GenericDialog
      Packs the dialog and adds it to the stage with custom action which can be null for instant show.
      Overrides:
      show in class GenericDialog
    • touch

      public void touch()
      Description copied from class: GenericDialog
      Override this method to update the contents of this dialog before displaying it.
      Overrides:
      touch in class GenericDialog
    • reloadGamepadMappings

      protected void reloadGamepadMappings(Path selectedFile)
    • generateGamepadsList

      protected void generateGamepadsList(com.badlogic.gdx.scenes.scene2d.ui.Table table)
    • 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
    • showDialogHook

      protected void showDialogHook(com.badlogic.gdx.scenes.scene2d.Stage stage)
      Overrides:
      showDialogHook 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.