Class NeonStyles

java.lang.Object
com.csse3200.game.ui.NeonStyles

public class NeonStyles extends Object
Builds a neon, rounded button style for Scene2D.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a style helper with a default fill alpha of 0.70.
    NeonStyles(float fillAlpha)
    Creates a style helper with a custom inner fill alpha.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.badlogic.gdx.scenes.scene2d.ui.TextButton.TextButtonStyle
    Builds a TextButton.TextButtonStyle with rounded corners and a neon rim.
    void
    Frees textures created by this class and the font used in the style.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NeonStyles

      public NeonStyles()
      Creates a style helper with a default fill alpha of 0.70.
    • NeonStyles

      public NeonStyles(float fillAlpha)
      Creates a style helper with a custom inner fill alpha.
  • Method Details

    • buttonRounded

      public com.badlogic.gdx.scenes.scene2d.ui.TextButton.TextButtonStyle buttonRounded()
      Builds a TextButton.TextButtonStyle with rounded corners and a neon rim.
    • dispose

      public void dispose()
      Frees textures created by this class and the font used in the style.