-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminimapLabelsTemplates.xc
executable file
·153 lines (153 loc) · 6.07 KB
/
minimapLabelsTemplates.xc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/**
* Minimap labels.
*/
{
// Textfields for units on minimap.
// Definitions.
"def": {
// Fields default format.
"defaultItem": {
"enabled": true,
"x": 0,
"y": 0,
"width": 100,
"height": 40,
"alpha": 100,
"align": "left",
"valign": "top",
"flags": [ "player", "ally", "squadman", "enemy", "teamKiller", "lost", "spotted", "alive", "dead" ],
"bgColor": null,
"borderColor": null,
"antiAliasType": "normal",
"shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 4 }
},
// Vehicle type, visible.
// Тип техники, видимый.
"vtypeSpotted": {
"$ref": { "path":"def.defaultItem" },
"enabled": false,
"align": "center",
"valign": "center",
"flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ],
"layer": "top",
"textFormat": { "font": "xvm", "size": 13, "align": "center", "valign": "center" },
"format": "<font color='{{.minimap.labelsData.colors.dot.{{sys-color-key}}}}'>{{.minimap.labelsData.vtype.{{vtype-key}}}}</font>"
},
// Vehicle name, visible.
// Название техники, видимый.
"vehicleSpotted": {
"$ref": { "path":"def.defaultItem" },
"x": 2,
"y": "{{squad?7|-1}}",
"flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ],
"textFormat": { "size": 6 },
"format": "<font color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>"
},
// Vehicle name, visible, alternative mode.
// Название техники, видимый, альтернативный режим.
"vehicleSpottedAlt": {
"$ref": { "path":"def.vehicleSpotted" },
"y": "{{ally?{{battletype?7|{{squad?7|-1}}}}|-1}}"
},
// Player nickname, visible.
// Ник игрока, видимый.
"nickSpotted": {
"$ref": { "path":"def.defaultItem" },
"x": 2,
"y": -1,
"flags": [ "squadman", "spotted", "alive" ],
"textFormat": { "size": 6 },
"format": "<font color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{name%.7s~..}}</i></font>"
},
// Player nickname, visible, alternative mode.
// Ник игрока, видимый, альтернативный режим.
"nickSpottedAlt": {
"$ref": { "path": "def.nickSpotted" },
"flags": [ "ally", "squadman", "teamKiller", "spotted", "alive" ],
"format": "<font size='{{battletype?8|{{squad?8|0}}}}' color='{{squad?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|{{tk?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|#BFBFBF}}}}'><i>{{name%.7s~..}}</i></font>"
},
// XMQP event marker.
// Маркер события XMQP.
"xmqpEvent": {
"$ref": { "path":"def.defaultItem" },
"x": 3,
"y": -8,
"flags": [ "ally", "squadman", "teamKiller", "spotted", "alive" ],
"textFormat": { "font": "xvm", "size": 9, "color": "0xFFBB00" },
"format": "{{x-spotted?p }}{{x-overturned?Ē}}"
},
// Vehicle type, missing.
// Тип техники, пропавший.
"vtypeLost": {
"$ref": { "path":"def.defaultItem" },
"alpha": 75,
"align": "center",
"valign": "center",
"flags": [ "ally", "enemy", "squadman", "teamKiller", "lost", "alive" ],
"layer": "bottom",
"textFormat": { "font": "xvm", "size": 6, "align": "center", "valign": "center" },
"format": "<font color='{{.minimap.labelsData.colors.lostDot.{{sys-color-key}}}}'>{{.minimap.labelsData.vtype.{{vtype-key}}}}</font>"
},
// Vehicle name, missing.
// Название техники, пропавший.
"vehicleLost": {
"$ref": { "path":"def.defaultItem" },
"x": 2,
"y": -1,
"alpha": 85,
"flags": [ "ally", "enemy", "squadman", "teamKiller", "lost", "alive" ],
"layer": "bottom",
"textFormat": { "size": 6 },
"format": "<font color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{vehicle}}</i></font>"
},
// Player nickname, missing.
// Ник игрока, пропавший.
"nickLost": {
"$ref": { "path":"def.defaultItem" },
"x": 2,
"y": -9,
"alpha": 85,
"flags": [ "squadman", "lost", "alive" ],
"layer": "bottom",
"textFormat": { "size": 6 },
"format": "<font color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{name%.7s~..}}</i></font>"
},
// Vehicle type, dead.
// Тип техники, мертвый.
"vtypeDead": {
"$ref": { "path":"def.defaultItem" },
"alpha": 90,
"align": "center",
"valign": "center",
"flags": [ "ally", "enemy", "squadman", "teamKiller", "dead" ],
"layer": "substrate",
"textFormat": { "font": "xvm", "size": 8, "align": "center", "valign": "center" },
"format": "<font color='{{.minimap.labelsData.colors.lostDot.{{sys-color-key}}}}'>D</font>",
"shadow": { "$ref": { "path":"def.defaultItem.shadow" }, "strength": 3 }
},
// Vehicle name, dead.
// Название техники, мертвый.
"vehicleDead": {
"$ref": { "path":"def.defaultItem" },
"x": 2,
"y": -1,
"alpha": 85,
"flags": [ "squadman", "dead" ],
"layer": "substrate",
"textFormat": { "size": 8 },
"format": "<font color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>"
},
// Player nickname, dead.
// Ник игрока, мертвый.
"nickDead": {
"$ref": { "path":"def.defaultItem" },
"x": 2,
"y": -9,
"flags": [ "squadman", "dead" ],
"layer": "substrate",
"textFormat": { "size": 8 },
"format": "<font color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{name%.7s~..}}</i></font>",
"shadow": { "$ref": { "path":"def.defaultItem.shadow" }, "strength": 3 }
}
}
}