Class BaseCustomUIPanelPlugin

java.lang.Object
com.fs.starfarer.api.campaign.BaseCustomUIPanelPlugin
All Implemented Interfaces:
CustomUIPanelPlugin
Direct Known Subclasses:
DuelPanel, DuelTutorialPanel, ExampleCustomUIPanel

public class BaseCustomUIPanelPlugin extends Object implements CustomUIPanelPlugin
  • Constructor Details

    • BaseCustomUIPanelPlugin

      public BaseCustomUIPanelPlugin()
  • Method Details

    • positionChanged

      public void positionChanged(PositionAPI position)
      Description copied from interface: CustomUIPanelPlugin
      Called whenever the location or size of this UI panel changes.
      Specified by:
      positionChanged in interface CustomUIPanelPlugin
    • renderBelow

      public void renderBelow(float alphaMult)
      Description copied from interface: CustomUIPanelPlugin
      Below any UI elements in the panel.
      Specified by:
      renderBelow in interface CustomUIPanelPlugin
    • 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 interface CustomUIPanelPlugin
    • advance

      public void advance(float amount)
      Specified by:
      advance in interface CustomUIPanelPlugin
      Parameters:
      amount - in seconds.
    • processInput

      public void processInput(List<InputEventAPI> events)
      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 interface CustomUIPanelPlugin
    • buttonPressed

      public void buttonPressed(Object buttonId)
      Specified by:
      buttonPressed in interface CustomUIPanelPlugin