0ad/binaries/data/mods/public/gui/common/global.xml
Vantha 52b40aaa4f Add a tutorial panel for explaining the GUI
This patch adds a new type of tutorial steps called "GUI explanation",
with a corresponding GUI panel. The purpose of it is to explain what a
certain GUI element does. To make use of it the trigger script has to
specify the target GUI object's name as well as the side on which to
place the explanation panel relative to the target itself. The panel
then highlights the target object by fading everything else out with
black and also uses an arrow to point to it. Whilever the target GUI
object is hidden, the panel hides the background fade too and shows a
warning message.
Unlike for the other steps, the TutorialManager does not hide the
previously active panel when showing a GUI explanation, but instead
only disables it, since it could contain relevant information and the
GUI explanation panel is visibly placed "above" all other panels (in the
Z axis).
2026-07-22 23:51:49 +02:00

82 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<objects>
<!--
==========================================
- GLOBAL OBJECTS -
==========================================
-->
<object>
<!--
==========================================
- GAMESTATE NOTIFICATIONS
==========================================
-->
<object name="gameStateNotifications"
type="text"
ghost="true"
z="200"
size="100%-110 40 100%-110 40"
font="mono-stroke-10"
textcolor="255 219 77"
text_align="center"
text_valign="top"
sprite="color: 0 0 0 100"
>
</object>
<!--
==========================================
- FPS & REAL TIME & GAME TIME COUNTER
==========================================
-->
<object name="dataCounter"
type="text"
ghost="true"
z="200"
size="100%-100 40 100%-5 54"
font="mono-10"
textcolor="white"
text_align="right"
text_valign="top"
sprite="color: 0 0 0 100"
>
<action on="Load">
g_OverlayCounterManager = new OverlayCounterManager(this);
</action>
</object>
<!--
==========================================
- WATERMARK - USED WHEN TAKING OFFICIAL SCREENSHOTS
==========================================
-->
<object name="glbWaterMark"
hidden="true"
hotkey="screenshot.watermark"
z="300"
>
<action on="Press">
this.hidden = !this.hidden;
</action>
<object name="glbWaterMarkProductLogo"
type="image"
size="0 100%-96 192 100%"
sprite="watermarkProduct"
/>
<object name="glbWaterMarkCompanyLogo"
type="image"
size="100%-192 100%-24 100% 100%"
sprite="watermarkCompany"
/>
</object>
</object>
</objects>