Class RenderGui

  • All Implemented Interfaces:
    com.badlogic.gdx.utils.Disposable, IObserver, IGui

    public class RenderGui
    extends AbstractGui
    Only for frame output mode, it displays the current time.
    • Field Detail

      • time

        protected com.badlogic.gdx.scenes.scene2d.ui.Label time
      • mainTable

        protected com.badlogic.gdx.scenes.scene2d.ui.Table mainTable
    • Constructor Detail

      • RenderGui

        public RenderGui()
    • Method Detail

      • initialize

        public void initialize​(com.badlogic.gdx.assets.AssetManager assetManager)
        Description copied from interface: IGui
        Initializes the GUI, adding all the resources to the asset manager queue for loading
        Parameters:
        assetManager - The asset manager to load the resources with
      • doneLoading

        public void doneLoading​(com.badlogic.gdx.assets.AssetManager assetManager)
        Description copied from interface: IGui
        Hook that runs after the assets have been loaded. Completes the initialization process
        Parameters:
        assetManager - The asset manager
      • rebuildGui

        protected void rebuildGui()
        Description copied from class: AbstractGui
        Adds the already created GUI objects to the stage.
        Specified by:
        rebuildGui in class AbstractGui