mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
This patch adds a new tutorial step type and corresponding tutorial panel labelled "info". It is intended to display steps whose purpose it is to explain something to the player and give tips -- rather than just giving instructions and telling the player what to do, like the instruction panel does. Also, it can show several related steps at once. To do that, the first step has to set the 'appendable' flag to true and can also define a title; then the succeeding steps can then set the 'appendToPrevious' flag to true in order to do exactly that. Note: 'info'-type tutorial steps are still supposed to be able to define triggers, switch to the next step on their own and hide the continue button on the info panel, to teach the topic interactively, e.g. "Select a unit by left-clicking on it." In order to prevent code duplication between `InfoPanel` and `InstructionPanel` a generic superclass `TutorialPanel` is introduced, which manages the text, hint, and button objects.
332 lines
6.9 KiB
XML
332 lines
6.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<styles>
|
|
|
|
<!-- ================================ ================================ -->
|
|
<!-- Text Styles -->
|
|
<!-- ================================ ================================ -->
|
|
|
|
<style name="DiplomacyText"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="top"
|
|
/>
|
|
|
|
<style name="PauseText"
|
|
font="sans-bold-24"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="ResumeMessageText"
|
|
font="sans-bold-12"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="netStatusPlayersText"
|
|
font="sans-bold-16"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="top"
|
|
/>
|
|
|
|
<style name="leftAlignedText"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="rightAlignedText"
|
|
textcolor="white"
|
|
text_align="right"
|
|
text_valign="top"
|
|
/>
|
|
|
|
<style name="centeredText"
|
|
textcolor="black"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="largeBoldCenteredText"
|
|
font="sans-bold-18"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="largeCenteredOutlinedText"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="largeLeftOutlinedText"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="iconButtonCount"
|
|
textcolor="255 255 255"
|
|
font="sans-9"
|
|
text_align="right"
|
|
text_valign="top"
|
|
buffer_zone="4"
|
|
/>
|
|
|
|
<style name="iconButtonProgress"
|
|
textcolor="255 255 255"
|
|
font="sans-stroke-14"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="groupIconsText"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="groupIconsCenteredText"
|
|
font="mono-stroke-10"
|
|
textcolor="255 255 255"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="devCommandsText"
|
|
font="sans-12"
|
|
textcolor="255 255 255"
|
|
text_align="right"
|
|
/>
|
|
|
|
<style name="devCommandsDropDown"
|
|
dropdown_buffer="0"
|
|
font="sans-12"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="top"
|
|
button_width="20"
|
|
sprite_disabled="ModernDarkBoxDisabled"
|
|
sprite_overlay_disabled="ModernDarkBoxGoldBorderDisabled"
|
|
sprite2="ModernDropDownArrow"
|
|
sprite2_disabled="ModernDropDownArrowDisabled"
|
|
sprite2_pressed="ModernDropDownArrowHighlight"
|
|
buffer_zone="8"
|
|
dropdown_size="225"
|
|
minimum_visible_items="3"
|
|
sprite_list="GrayBackground"
|
|
sprite_list_overlay="BlackBorder"
|
|
sprite_selectarea="ModernDarkBox"
|
|
sprite_selectarea_overlay="ModernDarkBoxWhiteBorder"
|
|
textcolor_selected="white"
|
|
textcolor_disabled="140 140 140 255"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
sound_opened="audio/interface/ui/ui_button_click.ogg"
|
|
sound_closed="audio/interface/ui/ui_button_click.ogg"
|
|
sound_selected="audio/interface/ui/ui_button_click.ogg"
|
|
/>
|
|
|
|
<style name="resourceText"
|
|
textcolor="white"
|
|
font="sans-bold-stroke-14"
|
|
ghost="true"
|
|
text_align="left"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="gathererCounts"
|
|
textcolor="200 200 200"
|
|
font="sans-bold-stroke-13"
|
|
ghost="true"
|
|
text_align="left"
|
|
text_valign="bottom"
|
|
/>
|
|
|
|
<style name="totalNumberIdleWorkersCount"
|
|
textcolor="200 200 200"
|
|
font="sans-bold-stroke-14"
|
|
ghost="true"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="StatsTextLeft"
|
|
font="sans-stroke-12"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="center"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="StatsTextCentered"
|
|
font="sans-stroke-12"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="StatsTextRight"
|
|
font="sans-stroke-12"
|
|
textcolor="white"
|
|
text_align="right"
|
|
text_valign="center"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="CarryingTextRight"
|
|
font="sans-bold-stroke-13"
|
|
textcolor="white"
|
|
text_align="right"
|
|
text_valign="center"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="PrimaryNameCentered"
|
|
font="sans-bold-stroke-13"
|
|
textcolor="gold"
|
|
text_align="center"
|
|
text_valign="center"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="SecondaryNameCentered"
|
|
font="sans-stroke-12"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="dialogTitleText"
|
|
font="sans-bold-18"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="dialogText"
|
|
font="sans-16"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="TutorialInstructionText"
|
|
buffer_zone="18"
|
|
font="sans-bold-14"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
sprite="ModernDarkBox"
|
|
sprite_overlay="ModernDarkBoxGoldBorder"
|
|
/>
|
|
|
|
<style name="TutorialInfoText"
|
|
buffer_zone="16"
|
|
font="sans-16"
|
|
sprite="ModernDarkBoxGold"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
scroll_bottom="true"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="top"
|
|
/>
|
|
|
|
<style name="TutorialInfoTitle"
|
|
buffer_zone="10"
|
|
font="sans-bold-18"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<!-- ================================ ================================ -->
|
|
<!-- Icon Styles -->
|
|
<!-- ================================ ================================ -->
|
|
<style name="CivIconOverlay"
|
|
sprite="color:transparent"
|
|
sprite_over="CivIconOver"
|
|
sound_pressed="audio/interface/ui/ui_button_click.ogg"
|
|
/>
|
|
|
|
<style name="commandIcon"
|
|
ghost="true"
|
|
/>
|
|
|
|
<style name="iconButton"
|
|
sprite="snIconPortrait"
|
|
sprite_over="snIconPortraitOver"
|
|
sprite_disabled="snIconPortraitDisabled"
|
|
tooltip_style="snToolTipBottom"
|
|
sound_pressed="audio/interface/ui/ui_button_click.ogg"
|
|
/>
|
|
|
|
<!-- ================================ ================================ -->
|
|
<!-- Tooltip Styles -->
|
|
<!-- ================================ ================================ -->
|
|
<style name="resourceCounter"
|
|
tooltip_style="snToolTip"
|
|
/>
|
|
|
|
<style name="resourceCounter"
|
|
tooltip_style="snToolTip"
|
|
/>
|
|
|
|
<style name="informationTooltip"
|
|
anchor="top"
|
|
buffer_zone="6"
|
|
font="sans-bold-14"
|
|
maxwidth="300"
|
|
offset="16 32"
|
|
sprite="BackgroundInformationTooltip"
|
|
textcolor="255 255 255"
|
|
/>
|
|
|
|
<!-- ================================ ================================ -->
|
|
<!-- Misc Styles -->
|
|
<!-- ================================ ================================ -->
|
|
<style name="chatPanelOverlay"
|
|
buffer_zone="5"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="chatInput"
|
|
sprite="chatInput"
|
|
sprite_selectarea="chatInputHighlight"
|
|
textcolor="white"
|
|
textcolor_selected="darkgray"
|
|
/>
|
|
|
|
<style name="notificationPanel"
|
|
buffer_zone="5"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="bottom"
|
|
/>
|
|
|
|
<style name="netStatus"
|
|
font="sans-bold-18"
|
|
textcolor="255 255 255"
|
|
text_align="center"
|
|
text_valign="center"
|
|
sprite="sessionOverlayBackground"
|
|
/>
|
|
</styles>
|