mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 06:07:25 +00:00

This adds support for having up to 28 distinct sub-achievements within a single achievement. This limit exists since wesnoth's layout isn't smart enough to tell a horizontal listbox to actually use its scrollbar instead of forcing a horizontal scrollbar on the whole window. Additionally this adds the [set_sub_achievement] and [has_sub_achievement] WML tags and their respective lua functions. [has_sub_achievement] is unsafe for use in MP, for the same reasons that [has_achievement] is.
35 lines
814 B
INI
35 lines
814 B
INI
[wml_schema]
|
|
{./macros.cfg}
|
|
{./types/basic.cfg}
|
|
[tag]
|
|
name="root"
|
|
[tag]
|
|
name="achievement_group"
|
|
max="infinite"
|
|
{REQUIRED_KEY content_for string}
|
|
{REQUIRED_KEY display_name t_string}
|
|
[tag]
|
|
name="achievement"
|
|
max="infinite"
|
|
{REQUIRED_KEY id string}
|
|
{REQUIRED_KEY name t_string}
|
|
{SIMPLE_KEY name_completed t_string}
|
|
{REQUIRED_KEY description t_string}
|
|
{SIMPLE_KEY description_completed t_string}
|
|
{REQUIRED_KEY icon string}
|
|
{SIMPLE_KEY icon_completed string}
|
|
{SIMPLE_KEY hidden bool}
|
|
{SIMPLE_KEY max_progress int}
|
|
{SIMPLE_KEY sound string}
|
|
[tag]
|
|
name="sub_achievement"
|
|
max="28"
|
|
{REQUIRED_KEY id string}
|
|
{REQUIRED_KEY description t_string}
|
|
{REQUIRED_KEY icon string}
|
|
[/tag]
|
|
[/tag]
|
|
[/tag]
|
|
[/tag]
|
|
[/wml_schema]
|