mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-09 06:06:02 +03:00
Unset colors are now parsed correctly, color properties have optional colors
This commit is contained in:
parent
6deb28c1ce
commit
94c1ac0f32
8 changed files with 16 additions and 7 deletions
|
@ -57,7 +57,8 @@ public partial class TestData
|
|||
new FloatProperty { Name = "floatprop", Value = 4.2f },
|
||||
new IntProperty { Name = "intprop", Value = 8 },
|
||||
new ObjectProperty { Name = "objectprop", Value = 5 },
|
||||
new StringProperty { Name = "stringprop", Value = "This is a string, hello world!" }
|
||||
new StringProperty { Name = "stringprop", Value = "This is a string, hello world!" },
|
||||
new ColorProperty { Name = "unsetcolorprop", Value = Optional<Color>.Empty }
|
||||
]
|
||||
};
|
||||
}
|
||||
|
|
|
@ -58,6 +58,11 @@
|
|||
"name":"stringprop",
|
||||
"type":"string",
|
||||
"value":"This is a string, hello world!"
|
||||
},
|
||||
{
|
||||
"name":"unsetcolorprop",
|
||||
"type":"color",
|
||||
"value":""
|
||||
}],
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.11.0",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<property name="intprop" type="int" value="8"/>
|
||||
<property name="objectprop" type="object" value="5"/>
|
||||
<property name="stringprop" value="This is a string, hello world!"/>
|
||||
<property name="unsetcolorprop" type="color" value=""/>
|
||||
</properties>
|
||||
<layer id="1" name="Tile Layer 1" width="5" height="5">
|
||||
<data encoding="csv">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue