Package com.fs.starfarer.api.campaign
Class BaseCustomUIPanelPlugin
java.lang.Object
com.fs.starfarer.api.campaign.BaseCustomUIPanelPlugin
- All Implemented Interfaces:
CustomUIPanelPlugin
- Direct Known Subclasses:
DuelPanel
,DuelTutorialPanel
,ExampleCustomUIPanel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) void
buttonPressed
(Object buttonId) void
positionChanged
(PositionAPI position) Called whenever the location or size of this UI panel changes.void
processInput
(List<InputEventAPI> events) List of input events that occurred this frame.void
render
(float alphaMult) alphaMult is the transparency the panel should be rendered at.void
renderBelow
(float alphaMult) Below any UI elements in the panel.
-
Constructor Details
-
BaseCustomUIPanelPlugin
public BaseCustomUIPanelPlugin()
-
-
Method Details
-
positionChanged
Description copied from interface:CustomUIPanelPlugin
Called whenever the location or size of this UI panel changes.- Specified by:
positionChanged
in interfaceCustomUIPanelPlugin
-
renderBelow
public void renderBelow(float alphaMult) Description copied from interface:CustomUIPanelPlugin
Below any UI elements in the panel.- Specified by:
renderBelow
in interfaceCustomUIPanelPlugin
-
render
public void render(float alphaMult) Description copied from interface:CustomUIPanelPlugin
alphaMult is the transparency the panel should be rendered at.- Specified by:
render
in interfaceCustomUIPanelPlugin
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceCustomUIPanelPlugin
- Parameters:
amount
- in seconds.
-
processInput
Description copied from interface:CustomUIPanelPlugin
List of input events that occurred this frame. (Almost) always includes one mouse move event. Events should be consume()d if they are acted on. Mouse-move events should generally not be consumed. The loop processing events should check to see if an event has already been consumed, and if so, skip it. Accessing the data of a consumed event will throw an exception.- Specified by:
processInput
in interfaceCustomUIPanelPlugin
-
buttonPressed
- Specified by:
buttonPressed
in interfaceCustomUIPanelPlugin
-