Hpl3:Community:scripting:custom depth:station basics

From Frictional Wiki
Jump to navigation Jump to search

Station Gui - Basics

To use functions on this page, add #include "helper_imgui_station_basics.hps" to the top of your script file.

Functions in this script file are intended to create default widget data for use in StationGui applications. In the case of custom GUI layouts, a widget data pre-configured with StationGui settings can be useful as a base.


StationGui_CreateDefaultWindowData

cImGuiWindowData StationGui_CreateDefaultWindowData()

Returns

  • cImGuiWindowData: A cImGuiWindowData object, with all the settings preconfigured to StationGui defaults.

StationGui_CreateDefaultSliderData

cImGuiSliderData StationGui_CreateDefaultSliderData()

Returns

  • cImGuiSliderData: A cImGuiSliderData object, with all the settings preconfigured to StationGui defaults.

StationGui_CreateDefaultTextFrameData

cImGuiTextFrameData StationGui_CreateDefaultTextFrameData()

Returns

  • cImGuiTextFrameData: A cImGuiTextFrameData object, with all the settings preconfigured to StationGui defaults.

StationGui_CreateDefaultButtonData

cImGuiButtonData StationGui_CreateDefaultButtonData()

Returns

  • cImGuiButtonData: A cImGuiButtonData object, with all the settings preconfigured to StationGui defaults.

StationGui_CreateToggleButtonData

cImGuiButtonData StationGui_CreateToggleButtonData()

Returns

  • cImGuiButtonData: A cImGuiButtonData object, for use with a Toggle Button with all the settings preconfigured to StationGui defaults.

StationGui_CreateDefaultGaugeData

cImGuiGaugeData StationGui_CreateDefaultGaugeData()

Returns

  • cImGuiGaugeData: A cImGuiGaugeData object, with all the settings preconfigured to StationGui defaults.