Package gaiasky.gui

Class TextureWindow

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

public class TextureWindow extends GenericDialog
  • Constructor Details

    • TextureWindow

      public TextureWindow(String title, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.graphics.Texture texture, float scale)
    • TextureWindow

      public TextureWindow(String title, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.graphics.Texture texture)
    • TextureWindow

      public TextureWindow(String title, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, float scale)
    • TextureWindow

      public TextureWindow(String title, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer)
  • Method Details

    • setFlip

      public void setFlip(boolean x, boolean y)
      Flip the texture.
      Parameters:
      x - Flip horizontally.
      y - Flip vertically.
    • setScale

      public void setScale(float scale)
      Set the scale factor of the texture.
      Overrides:
      setScale in class com.badlogic.gdx.scenes.scene2d.Actor
      Parameters:
      scale - The scale factor in both x and y dimensions.
    • setScale

      public void setScale(float scaleX, float scaleY)
      Set the scale factor of the texture.
      Overrides:
      setScale in class com.badlogic.gdx.scenes.scene2d.Actor
      Parameters:
      scaleX - The scale factor in x.
      scaleY - The scale factor in y.
    • build

      protected void build()
      Description copied from class: GenericDialog
      Build the content here.
      Specified by:
      build in class GenericDialog
    • 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