Advertisement
Guest User

blue___phoenix playerPanels.xc

a guest
Jun 6th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.62 KB | None | 0 0
  1. /**
  2. * Parameters of the Players Panels ("ears").
  3. */
  4. {
  5. // Definitions (extended format supported, see extra-field.txt).
  6. "def": {
  7. // Enemy spotted status marker.
  8. "enemySpottedMarker": {
  9. // false - отключить.
  10. "enabled": true,
  11. // Opacity percentage of spotted markers in the panels. 0 - transparent (disabled) ... 100 - opaque.
  12. "alpha": "{{a:spotted}}",
  13. // x position.
  14. "x": 88,
  15. // y position.
  16. "y": -2,
  17. // Horizontal alignment
  18. "align": "center",
  19. // true - x position is bound to vehicle icon, false - bound to edge of the screen.
  20. "bindToIcon": true,
  21. // enemy spotted status marker format.
  22. "format": "<font color='{{c:spotted}}'>{{spotted}}</font>",
  23. // shadow (see below).
  24. "shadow": {}
  25. },
  26. // XMQP service marker definition.
  27. "xmqpServiceMarker": {
  28. "enabled": true,
  29. "x": 88, "y": -2, "align": "center", "bindToIcon": true,
  30. "textFormat": {
  31. "font": "xvm",
  32. "size": 24
  33. },
  34. "format": "<font color='{{alive?{{x-spotted?#FFBB00|{{x-sense-on?#D9D9D9|#BFBFBF}}}}|#FFFFFF}}' alpha='{{alive?#FF|#80}}'>{{alive?{{x-spotted?&#x70;|{{x-sense-on?&#x70;|{{x-enabled?&#x7A;}}}}}}}}</font>",
  35. "shadow": {}
  36. },
  37. // "Top tankers" rank definition.
  38. "topTankers": {
  39. "enabled": true,
  40. "x": 77, "y": 6, "width": 16, "height": 16, "align": "center", "bindToIcon": true,
  41. "src": "{{top_tankers_emblem}}"
  42. },
  43. // Clan icon.
  44. "clanIcon": {
  45. "enabled": true,
  46. "x": 65, "y": 6, "width": 16, "height": 16, "align": "center", "alpha": 90, "bindToIcon": true,
  47. "src": "{{clanicon}}"
  48. //"format": "<img src='{{clanicon}}' width='16' height='16'>"
  49. },
  50. // XVM user marker.
  51. "xvmUserMarker": {
  52. "enabled": false,
  53. "x": 10, "y": 5, "bindToIcon": true,
  54. "src": "xvm://res/icons/xvm/xvm-user-{{xvm-user|none}}.png"
  55. },
  56. // HP bar background.
  57. "hpBarBg": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 96, "y": 6, "width": 72, "bindToIcon": true, "height": 14, "bgColor": "0x000000", "alpha": "{{alive?35|0}}" },
  58. // HP bar.
  59. "hpBar": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 97, "y": 7, "bindToIcon": true, "width": "{{hp-ratio:70}}", "height": 12, "bgColor": "{{player?#FFDD33|{{c:system}}}}", "alpha": "{{alive?50|0}}" },
  60. // Remaining HP.
  61. "hp": {
  62. "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "bindToIcon": true, "alpha": "{{alive?100|0}}",
  63. "x": 96, "width": 72, "y": 4,
  64. "textFormat": { "font": "$FieldFont", "size": 11, "color": "0xD9D9D9", "bold": "true", "align": "center" },
  65. "format": "<font alpha='{{alive?{{ready?#FF|#80}}|#80}}'>{{alive?{{hp|{{l10n:No data}}}}|{{l10n:Destroyed}}}}</font>",
  66. "shadow": { "enabled": true, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 1, "distance": 0, "angle": 0 }
  67. }
  68. },
  69. // Parameters of the Players Panels ("ears").
  70. "playersPanel": {
  71. // false - Disable.
  72. "enabled": true,
  73. // Opacity percentage of the panels. 0 - transparent, 100 - opaque.
  74. "alpha": 80,
  75. // Opacity percentage of icons in the panels. 0 - transparent ... 100 - opaque.
  76. "iconAlpha": 100,
  77. // true - disable background of the selected player.
  78. "removeSelectedBackground": false,
  79. // true - Remove the Players Panel mode switcher (buttons for changing size).
  80. "removePanelsModeSwitcher": false,
  81. // Start panels mode. Possible values: "none", "short", "medium", "medium2", "large".
  82. "startMode": "large",
  83. // Alternative panels mode. Possible values: null, "none", "short", "medium", "medium2", "large".
  84. "altMode": null,
  85. // Options for the "none" panels - empty panels.
  86. "none": {
  87. // false - disable (отключить)
  88. "enabled": true,
  89. // Width of area for switching to "large" mode on mouse over
  90. "expandAreaWidth": 230,
  91. // Layout ("vertical" or "horizontal")
  92. "layout": "vertical",
  93. // true - don't change players positions on dead (default false)
  94. "fixedPosition": false,
  95. // Opacity of dynamic squad invite indicator
  96. "inviteIndicatorAlpha": 100,
  97. // X position offset of dynamic squad invite indicator
  98. "inviteIndicatorX": 0,
  99. // Y position offset of dynamic squad invite indicator
  100. "inviteIndicatorY": 0,
  101. // Extra fields.
  102. "extraFields": {
  103. "leftPanel": {
  104. "x": 0, // from left side of screen
  105. "y": 65,
  106. "width": 350,
  107. "height": 25,
  108. // Set of formats for left panel
  109. // example:
  110. // "formats": [
  111. // // simple format (just a text)
  112. // "{{nick}}",
  113. // "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>",
  114. // // extended format
  115. // { "x": 20, "y": 10, "borderColor": "0xFFFFFF", "format": "{{nick}}" },
  116. // { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" },
  117. // { "x": 200, "src": "img://gui/maps/icons/vehicle/{{vehiclename}}.png" }
  118. // { "x": 200, "src": "cfg://user/img/{{vehiclename}}.png" }
  119. // ]
  120. //
  121. // * all fields are optional
  122. //
  123. "formats": []
  124. },
  125. "rightPanel": {
  126. "x": 0, // from right side of screen
  127. "y": 65,
  128. "width": 350,
  129. "height": 25,
  130. // Set of formats for right panel (extended format supported, see above)
  131. "formats": []
  132. }
  133. }
  134. },
  135. // Options for the "short" panels - panels with frags and vehicle icon.
  136. "short": {
  137. // false - disable (отключить)
  138. "enabled": true,
  139. // Displayed standard fields in this mode and their order.
  140. // Available names: "frags", "rank", "nick", "vehicle".
  141. "standardFields": [ "frags" ],
  142. // Width of area for switching to "large" mode on mouse over
  143. "expandAreaWidth": 230,
  144. // true - disable platoon icons
  145. "removeSquadIcon": false,
  146. // transparency of the squad icon
  147. // прозрачность иконки взвода
  148. "squadIconAlpha": 100,
  149. // Offset of X value for vehicle icon.
  150. "vehicleIconXOffsetLeft": 0,
  151. "vehicleIconXOffsetRight": 0,
  152. // Offset of X value for vehicle level.
  153. "vehicleLevelXOffsetLeft": 0,
  154. "vehicleLevelXOffsetRight": 0,
  155. // transparency of vehicle level
  156. "vehicleLevelAlpha": 100,
  157. // Offset of X value for frags column.
  158. "fragsXOffsetLeft": 0,
  159. "fragsXOffsetRight": 0,
  160. // Width of the frags column. Default is 24.
  161. "fragsWidth": 24,
  162. // Display format for frags (macros allowed, see macros.txt).
  163. "fragsFormatLeft": "{{frags}}",
  164. "fragsFormatRight": "{{frags}}",
  165. // Shadow for frags field (default null = no shadow, as in vanillas client).
  166. "fragsShadowLeft": null,
  167. "fragsShadowRight": null,
  168. // Offset of X value for rank column.
  169. "rankXOffsetLeft": 0,
  170. "rankXOffsetRight": 0,
  171. // Width of the rank column. Default is 24.
  172. "rankWidth": 24,
  173. // Offset of X value for player name column.
  174. "nickXOffsetLeft": 0,
  175. "nickXOffsetRight": 0,
  176. // Minimum width of the player name column. Default is 46.
  177. "nickMinWidth": 46,
  178. // Maximum width of the player name column. Default is 158.
  179. "nickMaxWidth": 158,
  180. // Display format for player name (macros allowed, see macros.txt).
  181. "nickFormatLeft": "<font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r}}</font> {{name%.15s~..}}<font alpha='#A0'>{{clan}}</font>",
  182. "nickFormatRight": "<font alpha='#A0'>{{clan}}</font>{{name%.15s~..}} <font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r}}</font>",
  183. // Shadow for player name field (default null = no shadow, as in vanillas client).
  184. "nickShadowLeft": null,
  185. "nickShadowRight": null,
  186. // Offset of X value for vehicle name column.
  187. "vehicleXOffsetLeft": 0,
  188. "vehicleXOffsetRight": 0,
  189. // Width of the vehicle name column. Default is 72.
  190. "vehicleWidth": 72,
  191. // Display format for vehicle name (macros allowed, see macros.txt).
  192. "vehicleFormatLeft": "{{vehicle}}",
  193. "vehicleFormatRight": "{{vehicle}}",
  194. // Shadow for vehicle name field (default null = no shadow, as in vanillas client).
  195. "vehicleShadowLeft": null,
  196. "vehicleShadowRight": null,
  197. // true - don't change players positions on dead (default false)
  198. "fixedPosition": false,
  199. // Extra fields. Each field have default size 350x25.
  200. // Fields are placed one above the other.
  201. // Set of formats for left panel (extended format supported, see above)
  202. "extraFieldsLeft": [
  203. ${"def.topTankers"},
  204. ${"def.hpBarBg"},
  205. ${"def.hpBar"},
  206. ${"def.hp"},
  207. ${"def.clanIcon"},
  208. ${"def.xvmUserMarker"},
  209. ${"def.xmqpServiceMarker"}
  210. ],
  211. // Set of formats for right panel (extended format supported, see above)
  212. "extraFieldsRight": [
  213. ${"def.topTankers"},
  214. ${"def.hpBarBg"},
  215. ${"def.hpBar"},
  216. ${"def.hp"},
  217. ${"def.clanIcon"},
  218. ${"def.xvmUserMarker"},
  219. ${"def.enemySpottedMarker"}
  220. ]
  221. },
  222. // Options for the "medium" panels - the first of the medium panels.
  223. "medium": {
  224. // false - disable (отключить)
  225. "enabled": true,
  226. // Displayed standard fields in this mode and their order.
  227. // Available names: "frags", "rank", "nick", "vehicle".
  228. "standardFields": [ "frags", "rank", "nick" ],
  229. // Width of area for switching to "large" mode on mouse over
  230. "expandAreaWidth": 230,
  231. // true - disable platoon icons
  232. "removeSquadIcon": false,
  233. // transparency of the squad icon
  234. "squadIconAlpha": 100,
  235. // Offset of X value for vehicle icon.
  236. "vehicleIconXOffsetLeft": 0,
  237. "vehicleIconXOffsetRight": 0,
  238. // Offset of X value for vehicle level.
  239. "vehicleLevelXOffsetLeft": 0,
  240. "vehicleLevelXOffsetRight": 0,
  241. // transparency of vehicle level
  242. "vehicleLevelAlpha": 100,
  243. // Offset of X value for frags column.
  244. "fragsXOffsetLeft": 0,
  245. "fragsXOffsetRight": 0,
  246. // Width of the frags column. Default is 24.
  247. "fragsWidth": 24,
  248. // Display format for frags (macros allowed, see macros.txt).
  249. "fragsFormatLeft": "{{frags}}",
  250. "fragsFormatRight": "{{frags}}",
  251. // Shadow for frags field (default null = no shadow, as in vanillas client).
  252. "fragsShadowLeft": null,
  253. "fragsShadowRight": null,
  254. // Offset of X value for rank column.
  255. "rankXOffsetLeft": 0,
  256. "rankXOffsetRight": 0,
  257. // Width of the rank column. Default is 24.
  258. "rankWidth": 24,
  259. // Offset of X value for player name column.
  260. "nickXOffsetLeft": 0,
  261. "nickXOffsetRight": 0,
  262. // Minimum width of the player name column. Default is 46.
  263. "nickMinWidth": 46,
  264. // Maximum width of the player name column. Default is 158.
  265. "nickMaxWidth": 158,
  266. // Display format for player nickname (macros allowed, see macros.txt).
  267. "nickFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> <font alpha='#A0'>{{clan}}</font>",
  268. "nickFormatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font>",
  269. // Shadow for player name field (default null = no shadow, as in vanillas client).
  270. "nickShadowLeft": null,
  271. "nickShadowRight": null,
  272. // Offset of X value for vehicle name column.
  273. "vehicleXOffsetLeft": 0,
  274. "vehicleXOffsetRight": 0,
  275. // Width of the vehicle name column. Default is 72.
  276. "vehicleWidth": 72,
  277. // Display format for vehicle name (macros allowed, see macros.txt).
  278. "vehicleFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
  279. "vehicleFormatRight": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
  280. // Shadow for vehicle name field (default null = no shadow, as in vanillas client).
  281. "vehicleShadowLeft": null,
  282. "vehicleShadowRight": null,
  283. // true - don't change players positions on dead (default false)
  284. "fixedPosition": false,
  285. // Extra fields. Each field have size 350x25. Fields are placed one above the other.
  286. // Set of formats for left panel (extended format supported, see above)
  287. "extraFieldsLeft": [
  288. ${"def.hpBarBg"},
  289. ${"def.hpBar"},
  290. ${"def.hp"},
  291. ${"def.clanIcon"},
  292. ${"def.xvmUserMarker"},
  293. ${"def.xmqpServiceMarker"},
  294. ${"def.topTankers"}
  295. ],
  296. // Set of formats for right panel (extended format supported, see above)
  297. "extraFieldsRight": [
  298. ${"def.hpBarBg"},
  299. ${"def.hpBar"},
  300. ${"def.hp"},
  301. ${"def.clanIcon"},
  302. ${"def.xvmUserMarker"},
  303. ${"def.enemySpottedMarker"},
  304. ${"def.topTankers"}
  305. ]
  306. },
  307. // Options for the "medium2" panels - the second of the medium panels.
  308. "medium2": {
  309. // false - disable (отключить)
  310. "enabled": true,
  311. // Displayed standard fields in this mode and their order.
  312. // Available names: "frags", "rank", "nick", "vehicle".
  313. "standardFields": [ "frags", "vehicle" ],
  314. // Width of area for switching to "large" mode on mouse over
  315. "expandAreaWidth": 230,
  316. // true - disable platoon icons
  317. "removeSquadIcon": false,
  318. // transparency of the squad icon
  319. "squadIconAlpha": 100,
  320. // Offset of X value for vehicle icon.
  321. "vehicleIconXOffsetLeft": 0,
  322. "vehicleIconXOffsetRight": 0,
  323. // Offset of X value for vehicle level.
  324. "vehicleLevelXOffsetLeft": 0,
  325. "vehicleLevelXOffsetRight": 0,
  326. // transparency of vehicle level
  327. "vehicleLevelAlpha": 100,
  328. // Offset of X value for frags column.
  329. "fragsXOffsetLeft": 0,
  330. "fragsXOffsetRight": 0,
  331. // Width of the frags column. Default is 24.
  332. "fragsWidth": 24,
  333. // Display format for frags (macros allowed, see macros.txt).
  334. "fragsFormatLeft": "{{frags}}",
  335. "fragsFormatRight": "{{frags}}",
  336. // Shadow for frags field (default null = no shadow, as in vanillas client).
  337. "fragsShadowLeft": null,
  338. "fragsShadowRight": null,
  339. // Offset of X value for rank column.
  340. "rankXOffsetLeft": 0,
  341. "rankXOffsetRight": 0,
  342. // Width of the rank column. Default is 24.
  343. "rankWidth": 24,
  344. // Offset of X value for player name column.
  345. "nickXOffsetLeft": 0,
  346. "nickXOffsetRight": 0,
  347. // Minimum width of the player name column. Default is 46.
  348. "nickMinWidth": 46,
  349. // Maximum width of the player name column. Default is 158.
  350. "nickMaxWidth": 158,
  351. // Display format for player nickname (macros allowed, see macros.txt).
  352. "nickFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> <font alpha='#A0'>{{clan}}</font>",
  353. "nickFormatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font>",
  354. // Shadow for player name field (default null = no shadow, as in vanillas client).
  355. "nickShadowLeft": null,
  356. "nickShadowRight": null,
  357. // Offset of X value for vehicle name column.
  358. "vehicleXOffsetLeft": 0,
  359. "vehicleXOffsetRight": 0,
  360. // Width of the vehicle name column. Default is 72.
  361. "vehicleWidth": 72,
  362. // Display format for vehicle name (macros allowed, see macros.txt).
  363. "vehicleFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
  364. "vehicleFormatRight": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
  365. // Shadow for vehicle name field (default null = no shadow, as in vanillas client).
  366. "vehicleShadowLeft": null,
  367. "vehicleShadowRight": null,
  368. // true - don't change players positions on dead (default false)
  369. // true - не изменять позиции игроков при уничтожении (по умолчанию false)
  370. "fixedPosition": false,
  371. // Extra fields. Each field have size 350x25. Fields are placed one above the other.
  372. // Set of formats for left panel (extended format supported, see above)
  373. "extraFieldsLeft": [
  374. ${"def.hpBarBg"},
  375. ${"def.hpBar"},
  376. ${"def.hp"},
  377. ${"def.clanIcon"},
  378. ${"def.xvmUserMarker"},
  379. ${"def.xmqpServiceMarker"},
  380. ${"def.topTankers"}
  381. ],
  382. // Set of formats for right panel (extended format supported, see above)
  383. "extraFieldsRight": [
  384. ${"def.hpBarBg"},
  385. ${"def.hpBar"},
  386. ${"def.hp"},
  387. ${"def.clanIcon"},
  388. ${"def.xvmUserMarker"},
  389. ${"def.enemySpottedMarker"},
  390. ${"def.topTankers"}
  391. ]
  392. },
  393. // Options for the "large" panels - the widest panels.
  394. "large": {
  395. // false - disable (отключить)
  396. "enabled": true,
  397. // Displayed standard fields in this mode and their order.
  398. // Available names: "frags", "rank", "nick", "vehicle".
  399. "standardFields": [ "frags", "rank", "nick", "vehicle" ],
  400. // true - disable platoon icons
  401. "removeSquadIcon": false,
  402. // transparency of the squad icon
  403. "squadIconAlpha": 100,
  404. // Offset of X value for vehicle icon.
  405. "vehicleIconXOffsetLeft": 0,
  406. "vehicleIconXOffsetRight": 0,
  407. // Offset of X value for vehicle level.
  408. "vehicleLevelXOffsetLeft": 0,
  409. "vehicleLevelXOffsetRight": 0,
  410. // transparency of vehicle level
  411. "vehicleLevelAlpha": 100,
  412. // Offset of X value for frags column.
  413. "fragsXOffsetLeft": 0,
  414. "fragsXOffsetRight": 0,
  415. // Width of the frags column. Default is 24.
  416. "fragsWidth": 24,
  417. // Display format for frags (macros allowed, see macros.txt).
  418. "fragsFormatLeft": "{{frags}}",
  419. "fragsFormatRight": "{{frags}}",
  420. // Shadow for frags field (default null = no shadow, as in vanillas client).
  421. "fragsShadowLeft": null,
  422. "fragsShadowRight": null,
  423. // Offset of X value for rank column.
  424. "rankXOffsetLeft": 0,
  425. "rankXOffsetRight": 0,
  426. // Width of the rank column. Default is 24.
  427. "rankWidth": 24,
  428. // Offset of X value for player name column.
  429. "nickXOffsetLeft": 0,
  430. "nickXOffsetRight": 0,
  431. // Minimum width of the player name column. Default is 46.
  432. "nickMinWidth": 46,
  433. // Maximum width of the player name column, Default is 158.
  434. "nickMaxWidth": 158,
  435. // Display format for player nickname (macros allowed, see macros.txt).
  436. "nickFormatLeft": "<font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r|--}}</font> {{name%.15s~..}}<font alpha='#A0'>{{clan}}</font>",
  437. "nickFormatRight": "<font alpha='#A0'>{{clan}}</font>{{name%.15s~..}} <font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r}}</font>",
  438. // Shadow for player name field (default null = no shadow, as in vanillas client).
  439. "nickShadowLeft": null,
  440. "nickShadowRight": null,
  441. // Offset of X value for vehicle name column.
  442. "vehicleXOffsetLeft": 0,
  443. "vehicleXOffsetRight": 0,
  444. // Width of the vehicle name column. Default is 72.
  445. "vehicleWidth": 72,
  446. // Display format for vehicle name (macros allowed, see macros.txt).
  447. "vehicleFormatLeft": "{{vehicle}}",
  448. "vehicleFormatRight": "{{vehicle}}",
  449. // Shadow for vehicle name field (default null = no shadow, as in vanillas client).
  450. "vehicleShadowLeft": null,
  451. "vehicleShadowRight": null,
  452. // true - don't change players positions on dead (default false)
  453. "fixedPosition": false,
  454. // Extra fields. Each field have size 350x25. Fields are placed one above the other.
  455. // Set of formats for left panel (extended format supported, see above)
  456. "extraFieldsLeft": [
  457. ${"def.hpBarBg"},
  458. ${"def.hpBar"},
  459. ${"def.hp"},
  460. ${"def.clanIcon"},
  461. ${"def.xvmUserMarker"},
  462. ${"def.xmqpServiceMarker"},
  463. ${"def.topTankers"}
  464. ],
  465. // Set of formats for right panel (extended format supported, see above)
  466. "extraFieldsRight": [
  467. ${"def.hpBarBg"},
  468. ${"def.hpBar"},
  469. ${"def.hp"},
  470. ${"def.clanIcon"},
  471. ${"def.xvmUserMarker"},
  472. ${"def.enemySpottedMarker"},
  473. ${"def.topTankers"}
  474. ]
  475. }
  476. }
  477. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement