0ad/binaries/data/mods/public/gui/session/tutorial/InstructionPanel.xml
Vantha e02a2e0b31 Add support for different types of tutorial steps
This patch doesn't add any new functionality and keeps the introductory
tutorial and economy walkthrough as they are. Instead, it rearranges some
code to enable easily adding different types of tutorial steps in the
future. The idea is for each type to be displayed on a different panel
and for the TutorialManager to switch back and forth between them, and
to handle and translate the received messages from the simulation and
pass them along to the active panel. Currently, there are only
"instruction"-type steps, which are handled by the InstructionPanel in
the GUI. But new ones can be added in the future, like information boxes
or bigger objectives.
2026-07-22 23:51:49 +02:00

10 lines
581 B
XML

<?xml version="1.0" encoding="utf-8"?>
<object name="instructionPanel" type="image" sprite="ModernFade" size="50%-380 38 50%+380 292">
<object size="10 10 100%-20 100%-48">
<object name="instructionPanelText" type="text" style="TutorialPanel"/>
</object>
<object name="instructionPanelWarning" type="text" style="ModernLeftLabelText" size="10 100%-42 100%-20 100%-12"/>
<object name="instructionPanelReady" type="button" style="ModernButtonRed" size="100%-160 100%-42 100%-20 100%-12">
<translatableAttribute id="caption">Ready</translatableAttribute>
</object>
</object>