mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-10 09:50:17 +02:00
119 lines
4.6 KiB
JSON
119 lines
4.6 KiB
JSON
{
|
|
"normal" : {
|
|
"width": 150,
|
|
"height": 32,
|
|
"items" : [
|
|
{
|
|
"type": "texture",
|
|
"image": "DiBoxBck",
|
|
"color" : "blue",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32}
|
|
},
|
|
{
|
|
"type": "graphicalPrimitive",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32},
|
|
"primitives" : [
|
|
{ "type" : "filledBox", "a" : { "x" : 2, "y" : 2}, "b" : { "x" : -3, "y" : -3}, "color" : [ 0, 0, 0, 128 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 0, "y" : 0}, "b" : { "x" : 0, "y" : -1}, "color" : [ 255, 255, 255, 64 ] },
|
|
{ "type" : "line", "a" : { "x" : 0, "y" : 0}, "b" : { "x" : -1, "y" : 0}, "color" : [ 255, 255, 255, 128 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : 1, "y" : -2}, "color" : [ 255, 255, 255, 80 ] },
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : -2, "y" : 1}, "color" : [ 255, 255, 255, 160 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : -2}, "b" : { "x" : -2, "y" : -2}, "color" : [ 0, 0, 0, 192 ] },
|
|
{ "type" : "line", "a" : { "x" : -2, "y" : 1}, "b" : { "x" : -2, "y" : -2}, "color" : [ 0, 0, 0, 192 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 0, "y" : -1}, "b" : { "x" : -1, "y" : -1}, "color" : [ 0, 0, 0, 255 ] },
|
|
{ "type" : "line", "a" : { "x" : -1, "y" : 0}, "b" : { "x" : -1, "y" : -1}, "color" : [ 0, 0, 0, 255 ] },
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"pressed" : {
|
|
"width": 150,
|
|
"height": 32,
|
|
"items" : [
|
|
{
|
|
"type": "texture",
|
|
"image": "DiBoxBck",
|
|
"color" : "blue",
|
|
"rect": {"x": 1, "y": 1, "w": 149, "h": 31}
|
|
},
|
|
{
|
|
"type": "graphicalPrimitive",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32},
|
|
"primitives" : [
|
|
{ "type" : "filledBox", "a" : { "x" : 3, "y" : 3}, "b" : { "x" : -3, "y" : -3}, "color" : [ 0, 0, 0, 160 ] },
|
|
|
|
{ "type" : "rectangle", "a" : { "x" : 0, "y" : 0}, "b" : { "x" : -1, "y" : -1}, "color" : [ 0, 0, 0, 255 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : 1, "y" : -2}, "color" : [ 255, 255, 255, 48 ] },
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : -2, "y" : 1}, "color" : [ 255, 255, 255, 96 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 2, "y" : 2}, "b" : { "x" : 2, "y" : -3}, "color" : [ 255, 255, 255, 64 ] },
|
|
{ "type" : "line", "a" : { "x" : 2, "y" : 2}, "b" : { "x" : -3, "y" : 2}, "color" : [ 255, 255, 255, 128 ] },
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"blocked" : {
|
|
"width": 150,
|
|
"height": 32,
|
|
"items" : [
|
|
{
|
|
"type": "texture",
|
|
"image": "DiBoxBck",
|
|
"color" : "blue",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32}
|
|
},
|
|
{
|
|
"type": "graphicalPrimitive",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32},
|
|
"primitives" : [
|
|
{ "type" : "filledBox", "a" : { "x" : 2, "y" : 2}, "b" : { "x" : -3, "y" : -3}, "color" : [ 0, 0, 0, 128 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 0, "y" : 0}, "b" : { "x" : 0, "y" : -1}, "color" : [ 255, 255, 255, 64 ] },
|
|
{ "type" : "line", "a" : { "x" : 0, "y" : 0}, "b" : { "x" : -1, "y" : 0}, "color" : [ 255, 255, 255, 128 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : 1, "y" : -2}, "color" : [ 255, 255, 255, 80 ] },
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : -2, "y" : 1}, "color" : [ 255, 255, 255, 160 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : -2}, "b" : { "x" : -2, "y" : -2}, "color" : [ 0, 0, 0, 192 ] },
|
|
{ "type" : "line", "a" : { "x" : -2, "y" : 1}, "b" : { "x" : -2, "y" : -2}, "color" : [ 0, 0, 0, 192 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 0, "y" : -1}, "b" : { "x" : -1, "y" : -1}, "color" : [ 0, 0, 0, 255 ] },
|
|
{ "type" : "line", "a" : { "x" : -1, "y" : 0}, "b" : { "x" : -1, "y" : -1}, "color" : [ 0, 0, 0, 255 ] },
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"highlighted" : {
|
|
"width": 150,
|
|
"height": 32,
|
|
"items" : [
|
|
{
|
|
"type": "texture",
|
|
"image": "DiBoxBck",
|
|
"color" : "blue",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32}
|
|
},
|
|
{
|
|
"type": "graphicalPrimitive",
|
|
"rect": {"x": 0, "y": 0, "w": 150, "h": 32},
|
|
"primitives" : [
|
|
{ "type" : "filledBox", "a" : { "x" : 2, "y" : 2}, "b" : { "x" : -3, "y" : -3}, "color" : [ 0, 0, 0, 128 ] },
|
|
|
|
{ "type" : "rectangle", "a" : { "x" : 2, "y" : 2}, "b" : { "x" : -3, "y" : -3}, "color" : [ 255, 255, 255, 255 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : -2}, "b" : { "x" : -2, "y" : -2}, "color" : [ 255, 255, 255, 255 ] },
|
|
{ "type" : "line", "a" : { "x" : -2, "y" : 1}, "b" : { "x" : -2, "y" : -2}, "color" : [ 255, 255, 255, 255 ] },
|
|
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : 1, "y" : -2}, "color" : [ 255, 255, 255, 160 ] },
|
|
{ "type" : "line", "a" : { "x" : 1, "y" : 1}, "b" : { "x" : -2, "y" : 1}, "color" : [ 255, 255, 255, 160 ] },
|
|
]
|
|
}
|
|
]
|
|
},
|
|
}
|