Class VisualSettingsComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.VisualSettingsComponent
- All Implemented Interfaces:
IObserver
GUI component that allows to change various visual settings in Gaia Sky, such as star brightness,
magnitude multiplier, glow factor, label sizes, and line widths.
This component provides sliders and buttons that interact with the EventManager
to publish commands to the rest of the application. It also supports resetting these values
to their defaults by reading from the internal configuration file.
-
Field Summary
Fields inherited from class GuiComponent
component, pad1, pad12, pad20, pad3, pad30, pad4, pad6, pad8, pad9, skin, stageModifier and TypeFieldDescriptionprotected com.badlogic.gdx.scenes.scene2d.Actorprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected com.badlogic.gdx.scenes.scene2d.ui.Skinprotected com.badlogic.gdx.scenes.scene2d.Stage -
Constructor Summary
ConstructorsConstructorDescriptionVisualSettingsComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Methods inherited from class GuiComponent
getActor, group
-
Constructor Details
-
VisualSettingsComponent
public VisualSettingsComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
initialize
public void initialize(float componentWidth) Description copied from class:GuiComponentInitialises the component.- Specified by:
initializein classGuiComponent- Parameters:
componentWidth- The target width of the component.
-
notify
-
dispose
public void dispose()Description copied from class:GuiComponentDisposes the component.- Specified by:
disposein classGuiComponent
-