<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl3%3ACommunity%3Ascripting%3Acustom_depth%3Astation</id>
	<title>Hpl3:Community:scripting:custom depth:station - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl3%3ACommunity%3Ascripting%3Acustom_depth%3Astation"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl3:Community:scripting:custom_depth:station&amp;action=history"/>
	<updated>2026-05-15T10:52:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=Hpl3:Community:scripting:custom_depth:station&amp;diff=97&amp;oldid=prev</id>
		<title>Maintenance script: Upload from wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl3:Community:scripting:custom_depth:station&amp;diff=97&amp;oldid=prev"/>
		<updated>2020-07-09T13:42:02Z</updated>

		<summary type="html">&lt;p&gt;Upload from wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Station Gui==&lt;br /&gt;
To use functions on this page, add ''#include &amp;quot;helper_imgui_station.hps&amp;quot;'' to the top of your script file.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Background===&lt;br /&gt;
====StationGuiBG_Scanlines====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_Scanlines(&lt;br /&gt;
				float afZ = 10.0f, &lt;br /&gt;
				const tString &amp;amp;in asFile = &amp;quot;station/scanlines/standard_tileable&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the effect. &lt;br /&gt;
* '''''(Optional)'' asFile''': The source image file of the effect. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws a terminal-style scan line effect over the terminal screen.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_Backdrop====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_Backdrop(&lt;br /&gt;
				const tString &amp;amp;in asFile = &amp;quot;background_logo_pathOS&amp;quot;, &lt;br /&gt;
				cVector2f avRelPos = cVector2f(0.1,0.45), &lt;br /&gt;
				float avRelSize = 0.5f, &lt;br /&gt;
				float afZ = 0.0f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asFile''': The source image file of the image. &lt;br /&gt;
* '''''(Optional)'' avRelPos''': The normalized position of the image.&lt;br /&gt;
* '''''(Optional)'' avRelSize''': The normalized size of the image. &lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the image. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an image as a background overlay. The image is a Pathos II symbol by default.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_FlatColor====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_FlatColor(&lt;br /&gt;
				float afZ = 0.0f, &lt;br /&gt;
				const cColor &amp;amp;in aCol = cColor(0,1))&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the effect. &lt;br /&gt;
* '''''(Optional)'' aCol''': The color of the effect. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function fills the entire terminal screen with a single color.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_OrnamentTopLeft====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_OrnamentTopLeft(&lt;br /&gt;
				const tString &amp;amp;in asFile = &amp;quot;station/ornament/corner_topleft&amp;quot;, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize = cVector2f(0.25f), &lt;br /&gt;
				eImGuiSizeType aSizeType = eImGuiSizeType_CorrectAspectWidthNormalized, &lt;br /&gt;
				const cColor &amp;amp;in aCol = cColor_White, &lt;br /&gt;
				const cVector2f &amp;amp;in avOffset = cVector2f_Zero, &lt;br /&gt;
				float afZ = 0.2f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asFile''': The source image file of the image. &lt;br /&gt;
* '''''(Optional)'' avSize''': The normalized size of the image. &lt;br /&gt;
* '''''(Optional)'' aSizeType''': The sizing mode of the image. &lt;br /&gt;
* '''''(Optional)'' cColor''': The color multiplier for the image. &lt;br /&gt;
* '''''(Optional)'' avOffset''': The non-normalized offset for the image. &lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the image. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an ornament image in the top left corner of the screen.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_OrnamentTopRight====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_OrnamentTopRight(&lt;br /&gt;
				const tString &amp;amp;in asFile = &amp;quot;station/ornament/corner_topright&amp;quot;, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize = cVector2f(0.25f), &lt;br /&gt;
				eImGuiSizeType aSizeType = eImGuiSizeType_CorrectAspectWidthNormalized, &lt;br /&gt;
				const cColor &amp;amp;in aCol = cColor(1,0.75f), &lt;br /&gt;
				const cVector2f &amp;amp;in avOffset = cVector2f_Zero, &lt;br /&gt;
				float afZ = 0.2f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asFile''': The source image file of the image. &lt;br /&gt;
* '''''(Optional)'' avSize''': The normalized size of the image. &lt;br /&gt;
* '''''(Optional)'' aSizeType''': The sizing mode of the image. &lt;br /&gt;
* '''''(Optional)'' cColor''': The color multiplier for the image. &lt;br /&gt;
* '''''(Optional)'' avOffset''': The non-normalized offset for the image. &lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the image. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an ornament image in the top right corner of the screen.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_OrnamentBottomLeft====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_OrnamentBottomLeft(&lt;br /&gt;
				const tString &amp;amp;in asFile = &amp;quot;station/ornament/corner_bottomleft&amp;quot;, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize = cVector2f(0.25f), &lt;br /&gt;
				eImGuiSizeType aSizeType = eImGuiSizeType_CorrectAspectWidthNormalized, &lt;br /&gt;
				const cColor &amp;amp;in aCol = cColor(1,0.75f), &lt;br /&gt;
				const cVector2f &amp;amp;in avOffset = cVector2f_Zero, &lt;br /&gt;
				float afZ = 0.2f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asFile''': The source image file of the image. &lt;br /&gt;
* '''''(Optional)'' avSize''': The normalized size of the image. &lt;br /&gt;
* '''''(Optional)'' aSizeType''': The sizing mode of the image. &lt;br /&gt;
* '''''(Optional)'' cColor''': The color multiplier for the image. &lt;br /&gt;
* '''''(Optional)'' avOffset''': The non-normalized offset for the image. &lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the image. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an ornament image in the bottom left corner of the screen.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_OrnamentBottomRight====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_OrnamentBottomRight(&lt;br /&gt;
				const tString &amp;amp;in asFile = &amp;quot;station/ornament/corner_bottomright&amp;quot;, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize = cVector2f(0.25f), &lt;br /&gt;
				eImGuiSizeType aSizeType = eImGuiSizeType_CorrectAspectWidthNormalized, &lt;br /&gt;
				const cColor &amp;amp;in aCol = cColor(1,0.75f), &lt;br /&gt;
				const cVector2f &amp;amp;in avOffset = cVector2f_Zero, &lt;br /&gt;
				float afZ = 0.2f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asFile''': The source image file of the image. &lt;br /&gt;
* '''''(Optional)'' avSize''': The normalized size of the image. &lt;br /&gt;
* '''''(Optional)'' aSizeType''': The sizing mode of the image. &lt;br /&gt;
* '''''(Optional)'' cColor''': The color multiplier for the image. &lt;br /&gt;
* '''''(Optional)'' avOffset''': The non-normalized offset for the image. &lt;br /&gt;
* '''''(Optional)'' afZ''': The z-order index of the image. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an ornament image in the bottom right corner of the screen.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_Taskbar====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_Taskbar(&lt;br /&gt;
				const tString &amp;amp;in asStation = &amp;quot;lambda&amp;quot;, &lt;br /&gt;
				const tString &amp;amp;in asBackgroundFile = &amp;quot;stationV2/background/taskbar&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asStation''': The key for the station image. (See Remarks) &lt;br /&gt;
* '''''(Optional)'' asBackgroundFile''': The source image for the taskbar.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws a taskbar along the bottom of the screen. Along with a bar, it also displays a Pathos II station logo in the lower right corner of the screen. The logo drawn depends upon the first parameter given. The options are available are &amp;quot;delta&amp;quot;, &amp;quot;lambda&amp;quot;, &amp;quot;omicron&amp;quot;, &amp;quot;phi&amp;quot;, &amp;quot;tau&amp;quot;, &amp;quot;theta&amp;quot;, or &amp;quot;upsilon&amp;quot;. Alternatively, an empty string (&amp;quot;&amp;quot;) will cause no logo to be drawn. Any other value will result in a solid white square being drawn where the logo would normally be.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an ornament image in the bottom right corner of the screen.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGuiBG_DatapadTaskbar====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGuiBG_DatapadTaskbar(&lt;br /&gt;
				const tString &amp;amp;in asBackgroundFile = &amp;quot;stationV2/background/taskbar&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)'' asBackgroundFile''': The source image for the taskbar.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws a taskbar along the bottom of the screen. The taskbar is formatted differently for datapad terminal displays.&lt;br /&gt;
&lt;br /&gt;
===Helpers===&lt;br /&gt;
====StationGui_DoWindowStart====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_DoWindowStart(&lt;br /&gt;
				const tString &amp;amp;in asCaption, &lt;br /&gt;
				const cImGuiWindowData &amp;amp;in aWindow, &lt;br /&gt;
				const cVector3f &amp;amp;in avPos, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize, &lt;br /&gt;
				bool abDrawOrnaments, &lt;br /&gt;
				bool abClip = false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''asCaption''': The text to draw at the top of the window.&lt;br /&gt;
* '''aWindow''': The data to use for the window.&lt;br /&gt;
* '''avPos''': The position of the window.&lt;br /&gt;
* '''avSize''': The size of the window.&lt;br /&gt;
* '''abDrawOrnaments''': Whether the default StationGui ornaments should be drawn.&lt;br /&gt;
* '''''(Optional)''abClip''': Whether any widgets within the window should be clipped to the bounds of the window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function starts a window layout, optionally using the default StationGui ornaments. Remember to use StationGui_DoWindowEnd after you are done with the window.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_DoWindowEnd====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_DoWindowEnd()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a utility function for ending the window layout and cleaning up some ImGui settings after a call to StationGui_DoWindowStart.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_GetActiveApp====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;int StationGui_GetActiveApp(&lt;br /&gt;
				int alDefaultApp = -1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)''alDefaultApp''': The default value to return if StationGui has not yet been set with an active app.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Returns&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''int''': The index of the current active StationGui app.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function deals with a global app setting, which can affect multiple terminals. If you are using more than one terminal with the StationGui setup, use the overload for this function.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_GetActiveApp====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;int StationGui_GetActiveApp(&lt;br /&gt;
				const tString &amp;amp;in asEntityName,&lt;br /&gt;
				int alDefaultApp = -1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''asEntityName''': The name of the terminal to retrieve the active app from.&lt;br /&gt;
* '''''(Optional)''alDefaultApp''': The default value to return if StationGui has not yet been set with an active app.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Returns&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''int''': The index of the current active StationGui app.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function gets the active app for the terminal specified by the first parameter.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_SetActiveApp====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_SetActiveApp(&lt;br /&gt;
				int alAppIndex)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''alAppIndex''': The new index of the app.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function deals with a global app setting, which can affect multiple terminals. If you are using more than one terminal with the StationGui setup, use the overload for this function.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_SetActiveApp====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_SetActiveApp(&lt;br /&gt;
				const tString &amp;amp;in asEntityName,&lt;br /&gt;
				int alAppIndex)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''asEntityName''': The name of the terminal to set the active app for.&lt;br /&gt;
* '''alAppIndex''': The new index of the app.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function sets the active app for the terminal specified by the first parameter.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_DrawAppIcon====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_DrawAppIcon(&lt;br /&gt;
				const tString &amp;amp;in asIcon)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''asIcon''': The image file source for the icon.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws an icon in the bottom left corner of the screen. It is generally used internally by other StationGui functions.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_BackButton====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;bool StationGui_BackButton(&lt;br /&gt;
				bool abEnabled = true, &lt;br /&gt;
				int alState = -1, &lt;br /&gt;
				bool abSound = true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)''abEnabled''': Whether the button is enabled or grayed out.&lt;br /&gt;
* '''''(Optional)''alState''': The index of the app to switch to when the button is pressed.&lt;br /&gt;
* '''''(Optional)''abSound''': Whether a sound is played when the button is pressed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Returns&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''bool''': Whether the button was pressed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function switches the current app of the global app setting. If you are using more than one terminal with the StationGui setup, switch the current app using StationGui_SetActiveApp function.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_DatapadBackButton====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;bool StationGui_DatapadBackButton(&lt;br /&gt;
				bool abEnabled = true, &lt;br /&gt;
				int alState = -1, &lt;br /&gt;
				bool abSound = true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''''(Optional)''abEnabled''': Whether the button is enabled or grayed out.&lt;br /&gt;
* '''''(Optional)''alState''': The index of the app to switch to when the button is pressed.&lt;br /&gt;
* '''''(Optional)''abSound''': Whether a sound is played when the button is pressed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Returns&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''bool''': Whether the button was pressed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This version of the back button is formatted differently for datapad terminal displays.&lt;br /&gt;
&lt;br /&gt;
This function switches the current app of the global app setting. If you are using more than one terminal with the StationGui setup, switch the current app using StationGui_SetActiveApp function.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====StationGui_FileList====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;int StationGui_FileList(&lt;br /&gt;
				const tString &amp;amp;in asCaption, &lt;br /&gt;
				int alFileCount, &lt;br /&gt;
				const cVector3f &amp;amp;in avPos = cVector3f_Zero, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize = ImGui_NrmSizeGroup(cVector2f(0.35, 0.875)))&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''asCaption''': The text to draw at the top of the file list.&lt;br /&gt;
* '''alFileCount''': The number of files in the list.&lt;br /&gt;
* '''''(Optional)''avPos''': The position of the file list.&lt;br /&gt;
* '''''(Optional)''avSize''': The size of the file list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Returns&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''int''': The index of the selected file, or 0 if no file is selected. (The first index is 0.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function draws a list of &amp;quot;files&amp;quot;. You can add files to the list by using ImGui_AddItemString.&lt;br /&gt;
&lt;br /&gt;
===Preloading===&lt;br /&gt;
====StationGui_PreloadDefault====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_PreloadDefault()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function preloads all the resources for StationGui terminals. While not strictly necessary, it's recommended to put a call to this function in the PreloadData function of your script file.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====OmnitoolGui_Preload====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void OmnitoolGui_Preload()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function preloads all the resources for Omnitool terminals. While not strictly necessary, it's recommended to put a call to this function in the PreloadData function of your script file.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Data Restoration===&lt;br /&gt;
====StationGui_DataRestoration====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;bool StationGui_DataRestoration(&lt;br /&gt;
				int alFileCount, &lt;br /&gt;
				float fLoadTime, &lt;br /&gt;
				int &amp;amp;out alRestoredFiles, &lt;br /&gt;
				cStationGui_DataRestorationSettings aSettings = cStationGui_DataRestorationSettings())&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''alFileCount''': The number of files to process.&lt;br /&gt;
* '''fLoadTime''': The length of time to complete the process.&lt;br /&gt;
* ''out'' '''alRestoredFiles''': The number of files successfully restored.&lt;br /&gt;
* '''''(Optional)''aSettings''': The settings to use for the process.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Returns&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''bool''': True if the process is completed, otherwise false.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a process function that simulates the corruption and subsequant restoration of data files. First, it shows a dialog box alerting the prescence of corrupted data files. Second, it shows a progress bar that lasts the duration of fLoadTime. Finally, it shows a dialog box alerting that partial data restoration has been successful. The messages displayed in the various stages can be customized by supplying a cStationGui_DataRestorationSettings object as a fourth parameter.&lt;br /&gt;
&lt;br /&gt;
===Maps===&lt;br /&gt;
====StationGui_YouAreHereIcon====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;&amp;quot;&amp;gt;void StationGui_YouAreHereIcon(&lt;br /&gt;
				const cVector3f &amp;amp;in avPos, &lt;br /&gt;
				const cVector2f &amp;amp;in avSize)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Parameters&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''avPos''': The position of the icon.&lt;br /&gt;
* '''avSize''': The size of the icon.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Remarks&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function displays an animated icon at the position and size supplied.&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>