-
- All Implemented Interfaces:
-
com.fs.starfarer.api.combat.CombatEnginePlugin,com.fs.starfarer.api.combat.EveryFrameCombatPlugin
public abstract class SampleGuiLauncher extends BaseEveryFrameCombatPluginClass that, when added to engine via e.g. addPlugin, will open/close GUI when specified hotkey is pressed. Extend this class by overriding constructGui to construct a GuiObject that extends GuiBase. This class is mainly intended as an example or to quickly get started. In the long term, you probably want to implement your own GUI launching logic in order to be able to customize things.
-
-
Constructor Summary
Constructors Constructor Description SampleGuiLauncher(Character hotkey)
-
Method Summary
Modifier and Type Method Description abstract GuiBaseconstructGui()override this to return a new GUI object from this function, e.g. Unitadvance(Float amount, List<InputEventAPI> events)UnitrenderInUICoords(ViewportAPI viewport)-
-
Constructor Detail
-
SampleGuiLauncher
SampleGuiLauncher(Character hotkey)
- Parameters:
hotkey- lowercase char representation of hotkey to press to open/close the GUI.
-
-
Method Detail
-
constructGui
abstract GuiBase constructGui()
override this to return a new GUI object from this function, e.g. "return new MyGui()"
-
renderInUICoords
Unit renderInUICoords(ViewportAPI viewport)
-
-
-
-