Fix schema rejecting top-level color range/palette tags (#4487)

This commit is contained in:
Celtic Minstrel 2019-10-18 22:18:17 -04:00 committed by GitHub
parent 5800acd8ea
commit f8c7455928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 16 deletions

View file

@ -11,6 +11,21 @@
{SIMPLE_KEY name string}
[/tag]
[tag]
name="color_range"
min=1
max=infinite
{REQUIRED_KEY id string}
{SIMPLE_KEY name t_string}
{SIMPLE_KEY rgb hex_list}
{DEFAULT_KEY default bool no}
[/tag]
[tag]
name="color_palette"
min=1
{ANY_KEY hex_list}
[/tag]
[tag]
name="game_config"
min=1
@ -110,20 +125,8 @@
{ANY_KEY string}
[/tag]
[/tag]
[tag]
name="color_range"
min=1
max=infinite
{REQUIRED_KEY id string}
{SIMPLE_KEY name t_string}
{SIMPLE_KEY rgb hex_list}
{DEFAULT_KEY default bool no}
[/tag]
[tag]
name="color_palette"
min=1
{ANY_KEY hex_list}
[/tag]
{LINK_TAG "color_range"}
{LINK_TAG "color_palette"}
[/tag]
[tag]
name="titlescreen_music"

View file

@ -164,8 +164,8 @@
value=image_mod
{SIMPLE_KEY replace string}
{SIMPLE_KEY add string}
{LINK_TAG "game_config/color_range"}
{LINK_TAG "game_config/color_palette"}
{LINK_TAG "color_range"}
{LINK_TAG "color_palette"}
[/case]
[case]
value=overlay