mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-22 10:25:32 +01:00
Support for layer tint colors
This commit is contained in:
@@ -14,6 +14,7 @@ EXPECTED = [
|
||||
properties={
|
||||
"test": "test property",
|
||||
},
|
||||
tint_color=common_types.Color(170, 255, 255, 255),
|
||||
data=[
|
||||
[
|
||||
1,
|
||||
@@ -83,6 +84,7 @@ EXPECTED = [
|
||||
visible=True,
|
||||
id=4,
|
||||
parallax_factor=common_types.OrderedPair(2.3, 1.2),
|
||||
tint_color=common_types.Color(0, 0, 255, 255),
|
||||
layers=[
|
||||
layer.ObjectLayer(
|
||||
name="Object Layer 1",
|
||||
@@ -111,6 +113,7 @@ EXPECTED = [
|
||||
id=3,
|
||||
image=Path("../../images/tile_04.png"),
|
||||
transparent_color=common_types.Color(0, 0, 0, 255),
|
||||
tint_color=common_types.Color(255, 0, 0, 255),
|
||||
),
|
||||
layer.ImageLayer(
|
||||
name="Image Layer 2",
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
"type":"string",
|
||||
"value":"test property"
|
||||
}],
|
||||
"tintcolor":"#aaffff",
|
||||
"type":"tilelayer",
|
||||
"visible":true,
|
||||
"width":8,
|
||||
@@ -53,6 +54,7 @@
|
||||
"opacity":1,
|
||||
"parallaxx":2.3,
|
||||
"parallaxy":1.2,
|
||||
"tintcolor":"#0000ff",
|
||||
"type":"group",
|
||||
"visible":true,
|
||||
"x":0,
|
||||
@@ -63,6 +65,7 @@
|
||||
"image":"..\/..\/images\/tile_04.png",
|
||||
"name":"Image Layer 1",
|
||||
"opacity":1,
|
||||
"tintcolor":"#ff0000",
|
||||
"transparentcolor":"#000000",
|
||||
"type":"imagelayer",
|
||||
"visible":true,
|
||||
|
||||
Reference in New Issue
Block a user