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. |
||
|---|---|---|
| .. | ||
| config | ||
| l10n | ||
| mods | ||
| tests | ||
| tools/atlas | ||