mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
- Remove the delay functionality from the tutorial. It was unused and that for a reason. Switching to the next step after a fixed amount of time is never wanted. It was only used to force-show the ready button in one case, but a designated bool communicates the purpose better. - Rename the "ready" button to "continue" as it fits better. - Rename "leave" to "isLast" as it's more descriptive. - Rename the "warning" object of the instruction panel to "hint" as it's not always display warnings, and move its captions to the class prototype like the coding conventions state. - Simplify the logic in NextStep a bit to make it more readable.
10 lines
590 B
XML
10 lines
590 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="instructionPanelHint" type="text" style="ModernLeftLabelText" size="10 100%-42 100%-20 100%-12"/>
|
|
<object name="instructionPanelContinueButton" type="button" style="ModernButtonRed" size="100%-160 100%-42 100%-20 100%-12">
|
|
<translatableAttribute id="caption">Continue</translatableAttribute>
|
|
</object>
|
|
</object>
|