Package com.csse3200.game.ui
Class NeonStyles
java.lang.Object
com.csse3200.game.ui.NeonStyles
Builds a neon, rounded button style for Scene2D.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptioncom.badlogic.gdx.scenes.scene2d.ui.TextButton.TextButtonStyle
Builds aTextButton.TextButtonStyle
with rounded corners and a neon rim.void
dispose()
Frees textures created by this class and the font used in the style.
-
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 aTextButton.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.
-