Package gaiasky.interafce
Class SpacecraftGui
java.lang.Object
gaiasky.interafce.AbstractGui
gaiasky.interafce.SpacecraftGui
public class SpacecraftGui extends AbstractGui
-
Field Summary
Fields inherited from class gaiasky.interafce.AbstractGui
graphics, hoffset, interfaces, lock, name, skin, ui, unitsPerPixel, vr -
Constructor Summary
Constructors Constructor Description SpacecraftGui(com.badlogic.gdx.backends.lwjgl3.Lwjgl3Graphics graphics, java.lang.Float unitsPerPixel) -
Method Summary
Modifier and Type Method Description voiddoneLoading(com.badlogic.gdx.assets.AssetManager assetManager)Constructs the interfacevoidinitialize(com.badlogic.gdx.assets.AssetManager assetManager, com.badlogic.gdx.graphics.g2d.SpriteBatch sb)Initializes the GUI, adding all the resources to the asset manager queue for loadingvoidnotify(Events event, java.lang.Object... data)protected voidrebuildGui()Adds the already created GUI objects to the stage.voidrender(int rw, int rh)Renders this GUIvoidresizeImmediate(int width, int height)Resizes without waiting for the current loop to finishMethods inherited from class gaiasky.interafce.AbstractGui
cancelTouchFocus, dispose, findActor, getGuiStage, getName, mustDraw, resize, setHoffset, setVisibilityToggles, setVr, update, updateUnitsPerPixelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SpacecraftGui
public SpacecraftGui(com.badlogic.gdx.backends.lwjgl3.Lwjgl3Graphics graphics, java.lang.Float unitsPerPixel)
-
-
Method Details
-
initialize
public void initialize(com.badlogic.gdx.assets.AssetManager assetManager, com.badlogic.gdx.graphics.g2d.SpriteBatch sb)Description copied from interface:IGuiInitializes the GUI, adding all the resources to the asset manager queue for loading- Parameters:
assetManager- The asset manager to load the resources withsb- The sprite batch to use for this GUI's stage
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager assetManager)Constructs the interface- Parameters:
assetManager- The asset manager
-
rebuildGui
protected void rebuildGui()Description copied from class:AbstractGuiAdds the already created GUI objects to the stage.- Specified by:
rebuildGuiin classAbstractGui
-
render
public void render(int rw, int rh)Description copied from interface:IGuiRenders this GUI- Specified by:
renderin interfaceIGui- Overrides:
renderin classAbstractGui- Parameters:
rw- The render widthrh- The render height
-
resizeImmediate
public void resizeImmediate(int width, int height)Description copied from interface:IGuiResizes without waiting for the current loop to finish- Specified by:
resizeImmediatein interfaceIGui- Overrides:
resizeImmediatein classAbstractGui- Parameters:
width- The new widthheight- The new height
-
notify
- Specified by:
notifyin interfaceIObserver- Overrides:
notifyin classAbstractGui
-