standard_controls.hpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. class kndr_MapControl
  2. {
  3. access = 0;
  4. idc = 10023;
  5. type = CT_MAP_MAIN;
  6. style = ST_PICTURE;
  7. x = 0.05; y = 0.05;
  8. w = 0.90; h = 0.90;
  9. colorBackground[] = {0, 0, 0, 0};
  10. colorText[] = {0, 0, 0, 0};
  11. colorSea[] = {0.1, 0.3, 0.5, 0.25};
  12. colorForest[] = {0.10, 0.50, 0.10, 0.50};
  13. colorRocks[] = {0.50, 0.50, 0.50, 1};
  14. colorCountlines[] = {0.65, 0.45, 0.27, 0.50};
  15. colorMainCountlines[] = {0.65, 0.45, 0.27, 1.00};
  16. colorCountlinesWater[] = {0.00, 0.53, 1.00, 0.3};
  17. colorMainCountlinesWater[] = {0.00, 0.53, 1.00, 0.6};
  18. colorForestBorder[] = {0.40, 0.80, 0.00, 1.00};
  19. colorRocksBorder[] = {0.50, 0.50, 0.50, 1.00};
  20. colorPowerLines[] = {0.00, 0.00, 0.00, 1.00};
  21. colorNames[] = {0.00, 0.00, 0.00, 1.00};
  22. colorInactive[] = {1, 0.3, 0.5, 1};
  23. colorLevels[] = {0.00, 0.00, 0.00, 1.00};
  24. colorOutside[] = {0.1, 0.3, 0.5, 0.5};
  25. colorRailWay[] = {1, 0, 0.5, 1};
  26. colorTracks[] = {0.8, 0.6, 0.6, 1};
  27. colorTracksFill[] = {0.7, 0.5, 0.5, 1};
  28. colorRoads[] = {0.8, 0.8, 0.8, 1};
  29. colorRoadsFill[] = {0.7, 0.7, 0.7, 1};
  30. colorMainRoads[] = {1, 1, 1, 1};
  31. colorMainRoadsFill[] = {0.9, 0.9, 0.9, 1};
  32. colorGrid[] = {0, 0, 0, 0.5};
  33. colorGridMap[] = {0, 0, 0, 0.5};
  34. alphaFadeStartScale = 5;
  35. alphaFadeEndScale = 5;
  36. font = FontM;
  37. sizeEx = 0.075;
  38. fontLabel = FontM;
  39. sizeExLabel = 0.075;
  40. fontGrid = FontM;
  41. sizeExGrid = 0.02;
  42. fontUnits = FontM;
  43. sizeExUnits = 0.075;
  44. fontNames = FontM;
  45. sizeExNames = 0.075;
  46. fontInfo = FontM;
  47. sizeExInfo = 0.075;
  48. fontLevel = FontM;
  49. sizeExLevel = 0.02;
  50. stickX[] = {0.20, {"Gamma", 1.00, 1.50} };
  51. stickY[] = {0.20, {"Gamma", 1.00, 1.50} };
  52. ptsPerSquareSea = 6;
  53. ptsPerSquareTxt = 8;
  54. ptsPerSquareCLn = 8;
  55. ptsPerSquareExp = 8;
  56. ptsPerSquareCost = 8;
  57. ptsPerSquareFor = "4.0f";
  58. ptsPerSquareForEdge = "10.0f";
  59. ptsPerSquareRoad = 2;
  60. ptsPerSquareObj = 10;
  61. maxSatelliteAlpha = 0.9;
  62. text = "";
  63. showCountourInterval=2;
  64. scaleDefault = 0.1;
  65. onMouseButtonClick = "";
  66. onMouseButtonDblClick = "";
  67. scaleMin = 0.05;
  68. scaleMax = 3;
  69. class ActiveMarker {
  70. color[] = {0.30, 0.10, 0.90, 1.00};
  71. size = 50;
  72. };
  73. class Bunker {
  74. icon = "";
  75. color[] = {0.00, 0.35, 0.70, 1.00};
  76. size = 14;
  77. importance = "1.5 * 14 * 0.05";
  78. coefMin = 0.25;
  79. coefMax = 4.00;
  80. };
  81. class Bush {
  82. icon = "";
  83. color[] = {0.55, 0.64, 0.43, 1.00};
  84. size = 14;
  85. importance = "0.2 * 14 * 0.05";
  86. coefMin = 0.25;
  87. coefMax = 4.00;
  88. };
  89. class BusStop {
  90. icon = "";
  91. color[] = {0.00, 0.00, 1.00, 1.00};
  92. size = 10;
  93. importance = "1 * 10 * 0.05";
  94. coefMin = 0.25;
  95. coefMax = 4.00;
  96. };
  97. class Command {
  98. icon = "#(argb,8,8,3)color(1,1,1,1)";
  99. color[] = {0.00, 0.00, 0.00, 1.00};
  100. size = 18;
  101. importance = 1.00;
  102. coefMin = 1.00;
  103. coefMax = 1.00;
  104. };
  105. class Cross {
  106. icon = "";
  107. color[] = {0.00, 0.35, 0.70, 1.00};
  108. size = 16;
  109. importance = "0.7 * 16 * 0.05";
  110. coefMin = 0.25;
  111. coefMax = 4.00;
  112. };
  113. class Chapel {
  114. icon = "";
  115. color[] = {0.00, 0.35, 0.70, 1.00};
  116. size = 16;
  117. importance = "1 * 16 * 0.05";
  118. coefMin = 0.90;
  119. coefMax = 4.00;
  120. };
  121. class Church {
  122. icon = "";
  123. color[] = {0.00, 0.35, 0.70, 1.00};
  124. size = 16;
  125. importance = "2 * 16 * 0.05";
  126. coefMin = 0.90;
  127. coefMax = 4.00;
  128. };
  129. class CustomMark {
  130. icon = "";
  131. color[] = {0.55, 0.64, 0.43, 1};
  132. size = 16;
  133. importance = 0.7 * 16 * 0.05;
  134. coefMin = 0.25;
  135. coefMax = 4;
  136. };
  137. class Fortress {
  138. icon = "";
  139. color[] = {0.00, 0.35, 0.70, 1.00};
  140. size = 16;
  141. importance = "2 * 16 * 0.05";
  142. coefMin = 0.25;
  143. coefMax = 4.00;
  144. };
  145. class Fuelstation {
  146. icon = "";
  147. color[] = {1.00, 0.35, 0.35, 1.00};
  148. size = 16;
  149. importance = "2 * 16 * 0.05";
  150. coefMin = 0.75;
  151. coefMax = 4.00;
  152. };
  153. class Fountain {
  154. icon = "";
  155. color[] = {0.00, 0.35, 0.70, 1.00};
  156. size = 12;
  157. importance = "1 * 12 * 0.05";
  158. coefMin = 0.25;
  159. coefMax = 4.00;
  160. };
  161. class Hospital {
  162. icon = "";
  163. color[] = {0.78, 0.00, 0.05, 1.00};
  164. size = 16;
  165. importance = "2 * 16 * 0.05";
  166. coefMin = 0.50;
  167. coefMax = 4;
  168. };
  169. class Lighthouse {
  170. icon = "";
  171. color[] = {0.78, 0.00, 0.05, 1.00};
  172. size = 20;
  173. importance = "3 * 16 * 0.05";
  174. coefMin = 0.90;
  175. coefMax = 4.00;
  176. };
  177. class Quay {
  178. icon = "";
  179. color[] = {0.00, 0.35, 0.70, 1.00};
  180. size = 16;
  181. importance = "2 * 16 * 0.05";
  182. coefMin = 0.50;
  183. coefMax = 4.00;
  184. };
  185. class Rock {
  186. icon = "";
  187. color[] = {0.55, 0.64, 0.43, 1};
  188. size = 12;
  189. importance = 0.5 * 12 * 0.05;
  190. coefMin = 0.25;
  191. coefMax = 4;
  192. };
  193. class Ruin {
  194. icon = "";
  195. color[] = {0.78, 0, 0.05, 1};
  196. size = 16;
  197. importance = 1.2 * 16 * 0.05;
  198. coefMin = 1;
  199. coefMax = 4;
  200. };
  201. class Stack {
  202. icon = "";
  203. color[] = {0.00, 0.35, 0.70, 1.00};
  204. size = 20;
  205. importance = "2 * 16 * 0.05";
  206. coefMin = 0.90;
  207. coefMax = 4.00;
  208. };
  209. class Tree {
  210. icon = "";
  211. color[] = {0.55, 0.64, 0.43, 1.00};
  212. size = 12;
  213. importance = "0.9 * 16 * 0.05";
  214. coefMin = 0.25;
  215. coefMax = 4.00;
  216. };
  217. class SmallTree {
  218. icon = "";
  219. color[] = {0.55, 0.64, 0.43, 1.00};
  220. size = 12;
  221. importance = "0.6 * 12 * 0.05";
  222. coefMin = 0.25;
  223. coefMax = 4.00;
  224. };
  225. class Task {
  226. icon = "";
  227. color[] = {0.55, 0.64, 0.43, 1};
  228. size = 16;
  229. importance = 0.7 * 16 * 0.05;
  230. coefMin = 0.25;
  231. coefMax = 4;
  232. iconCreated = "#(argb,8,8,3)color(1,1,1,1)";
  233. iconCanceled = "#(argb,8,8,3)color(0,0,1,1)";
  234. iconDone = "#(argb,8,8,3)color(0,0,0,1)";
  235. iconFailed = "#(argb,8,8,3)color(1,0,0,1)";
  236. colorCreated[] = {1,1,1,1};
  237. colorCanceled[] = {1,1,1,1};
  238. colorDone[] = {1,1,1,1};
  239. colorFailed[] = {1,1,1,1};
  240. };
  241. class Tourism {
  242. icon = "";
  243. color[] = {0.78, 0.00, 0.05, 1.00};
  244. size = 16; importance = "1 * 16 * 0.05";
  245. coefMin = 0.70;
  246. coefMax = 4.00;
  247. };
  248. class ShipWreck {
  249. icon = "";
  250. color[] = {0.78, 0.00, 0.05, 1.00};
  251. size = 16; importance = "1 * 16 * 0.05";
  252. coefMin = 0.70;
  253. coefMax = 4.00;
  254. };
  255. class Transmitter {
  256. icon = "";
  257. color[] = {0.00, 0.35, 0.70, 1.00};
  258. size = 20;
  259. importance = "2 * 16 * 0.05";
  260. coefMin = 0.90;
  261. coefMax = 4.00;
  262. };
  263. class PowerSolar {
  264. icon = "";
  265. color[] = {0.00, 0.35, 0.70, 1.00};
  266. size = 20;
  267. importance = "2 * 16 * 0.05";
  268. coefMin = 0.90;
  269. coefMax = 4.00;
  270. };
  271. class PowerWave {
  272. icon = "";
  273. color[] = {0.00, 0.35, 0.70, 1.00};
  274. size = 20;
  275. importance = "2 * 16 * 0.05";
  276. coefMin = 0.90;
  277. coefMax = 4.00;
  278. };
  279. class LineMarker {
  280. icon = "";
  281. color[] = {0,0,0,0};
  282. size = 0;
  283. importance = "2 * 16 * 0.05";
  284. coefMin = 0;
  285. coefMax = 0;
  286. lineWidthThin = 0;
  287. lineWidthThick = 0;
  288. lineDistanceMin = 0;
  289. lineDistanceMax = 0;
  290. lineLengthMin = 0;
  291. linelengthMax = 0;
  292. };
  293. class PowerWind {
  294. icon = "";
  295. color[] = {0.00, 0.35, 0.70, 1.00};
  296. size = 20;
  297. importance = "2 * 16 * 0.05";
  298. coefMin = 0.90;
  299. coefMax = 4.00;
  300. };
  301. class ViewTower {
  302. icon = "";
  303. color[] = {0.00, 0.35, 0.70, 1.00};
  304. size = 16;
  305. importance = "2.5 * 16 * 0.05";
  306. coefMin = 0.50;
  307. coefMax = 4.00;
  308. };
  309. class Watertower {
  310. icon = "";
  311. color[] = {0.00, 0.35, 0.70, 1.00};
  312. size = 32;
  313. importance = "1.2 * 16 * 0.05";
  314. coefMin = 0.90;
  315. coefMax = 4.00;
  316. };
  317. class Waypoint {
  318. icon = "";
  319. color[] = {0.00, 0.00, 0.00, 1.00};
  320. size = 24;
  321. importance = 1.00;
  322. coefMin = 1.00;
  323. coefMax = 1.00;
  324. };
  325. class WaypointCompleted {
  326. icon = "";
  327. color[] = {0.00, 0.00, 0.00, 1.00};
  328. size = 24;
  329. importance = 1.00;
  330. coefMin = 1.00;
  331. coefMax = 1.00;
  332. };
  333. };
  334. class RscText
  335. {
  336. type = CT_STATIC;
  337. idc = -1;
  338. style = ST_LEFT;
  339. colorBackground[] = {0, 0, 0, 0};
  340. colorText[] = {1, 1, 1, 1};
  341. font = "Bitstream";
  342. sizeEx = 0.04;
  343. };
  344. class StdText {
  345. idc = -1;
  346. type = CT_STATIC;
  347. style = ST_LEFT;
  348. colorText[] = COLOR_WHITE;
  349. colorBackground[] = COLOR_NOALPHA;
  350. font = FontM;
  351. sizeEx = 0.02 * safezoneH;
  352. shadow = 2;
  353. text = "";
  354. };
  355. class StdHeader : StdText {
  356. style = ST_CENTER;
  357. sizeEx = 0.03 * safezoneH;
  358. colorBackground[] = COLOR_LIGHTGRAY;
  359. };
  360. class StdButton {
  361. idc = -1;
  362. type = CT_BUTTON;
  363. style = ST_CENTER;
  364. default = false;
  365. font = FontM;
  366. sizeEx = 0.018 * safezoneH;
  367. colorText[] = { 0, 0, 0, 1 };
  368. colorFocused[] = { 1, 1, 1, 1 };
  369. colorDisabled[] = { 0.2, 0.2, 0.2, 0.7 };
  370. colorBackground[] = { 0.8, 0.8, 0.8, 0.8 };
  371. colorBackgroundDisabled[] = { 0.5, 0.5, 0.5, 0.5 };
  372. colorBackgroundActive[] = { 1, 1, 1, 1 };
  373. offsetX = 0.003;
  374. offsetY = 0.003;
  375. offsetPressedX = 0.002;
  376. offsetPressedY = 0.002;
  377. colorShadow[] = { 0, 0, 0, 0.5 };
  378. colorBorder[] = { 0, 0, 0, 1 };
  379. borderSize = 0;
  380. soundEnter[] = { "", 0, 1 }; // no sound
  381. soundPush[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.891251, 1};
  382. soundClick[] = { "", 0, 1 }; // no sound
  383. soundEscape[] = { "", 0, 1 }; // no sound
  384. x = 0.4 * safezoneW + safezoneX;
  385. w = 0.2 * safezoneW; h = 0.03 * safezoneH;
  386. text = "";
  387. action = "";
  388. shadow = 1;
  389. };
  390. class StdBG {
  391. idc = -1;
  392. type = CT_STATIC;
  393. style = ST_SINGLE;
  394. colorText[] = COLOR_BLACK;
  395. font = FontM;
  396. sizeEx = 0.023;
  397. text = "";
  398. };
  399. class StdListBox {
  400. idc = -1;
  401. type = 5;
  402. style = 0 + 0x10;
  403. font = FontM;
  404. sizeEx = 0.018 * safezoneH;
  405. rowHeight = 0.018 * safezoneH * 1.25;
  406. color[] = COLOR_LIGHTGRAY;
  407. colorText[] = COLOR_WHITE;
  408. colorScrollbar[] = COLOR_BRIGHTGREEN;
  409. colorSelect[] = COLOR_BRIGHTGREEN;
  410. colorSelect2[] = COLOR_BRIGHTGREEN;
  411. colorSelectBackground[] = COLOR_LIGHTGRAY;
  412. colorSelectBackground2[] = COLOR_LIGHTGRAY;
  413. colorActive[] = COLOR_BRIGHTGREEN;
  414. colorDisabled[] = COLOR_GREEN;
  415. columns[] = {0.1, 0.9};
  416. period = 0.3;
  417. colorBackground[] = COLOR_GREEN;
  418. maxHistoryDelay = 1.0;
  419. autoScrollSpeed = -1;
  420. autoScrollDelay = 5;
  421. autoScrollRewind = 0;
  422. soundSelect[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
  423. class ListScrollBar {
  424. color[] = {1, 1, 1, 0.6};
  425. colorActive[] = {1, 1, 1, 1};
  426. colorDisabled[] = {1, 1, 1, 0.3};
  427. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  428. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  429. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  430. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  431. };
  432. };
  433. class StdListNBox : StdListBox {
  434. idc = -1;
  435. type = CT_List_N_Box;
  436. drawSideArrows = 0;
  437. idcLeft = -10;
  438. idcRight = -11;
  439. period = 0.3;
  440. autoScrollSpeed = -1;
  441. autoScrollDelay = 5;
  442. autoScrollRewind = 0;
  443. arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
  444. arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
  445. class Scrollbar {
  446. color[] = {1, 1, 1, 0.6};
  447. colorActive[] = {1, 1, 1, 1};
  448. colorDisabled[] = {1, 1, 1, 0.3};
  449. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  450. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  451. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  452. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  453. };
  454. colorBackground[] = COLOR_GREEN;
  455. };
  456. class BgPicture {
  457. idc = -1;
  458. type = CT_STATIC;
  459. style = ST_PICTURE;
  460. colorText[] = {0.5, 0.4, 0.25, 0.6};
  461. colorBackground[] = {0, 0, 0, 1};
  462. font = FontM;
  463. sizeEx = 0.023;
  464. moving = false;
  465. text = "res\camo03.jpg";
  466. };
  467. class StdCombo {
  468. idc = -1;
  469. type = 4;
  470. style = 1;
  471. x = 0;
  472. y = 0;
  473. w = 0.3;
  474. h = 0.035;
  475. colorSelect[] = COLOR_BRIGHTGREEN;
  476. colorText[] = COLOR_WHITE;
  477. colorBackground[] = COLOR_GREEN_NOALPHA;
  478. colorSelectBackground[] = COLOR_LIGHTGRAY;
  479. colorScrollbar[] = COLOR_BRIGHTGREEN;
  480. arrowEmpty ="\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  481. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  482. wholeHeight = 0.45;
  483. color[] = COLOR_LIGHTGRAY;
  484. colorActive[] = COLOR_BRIGHTGREEN;
  485. colorDisabled[] = COLOR_GREEN;
  486. font = FontM;
  487. sizeEx = 0.031;
  488. soundSelect[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
  489. soundExpand[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
  490. soundCollapse[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
  491. maxHistoryDelay = 1.0;
  492. class ComboScrollBar {
  493. color[] = {1, 1, 1, 0.6};
  494. colorActive[] = {1, 1, 1, 1};
  495. colorDisabled[] = {1, 1, 1, 0.3};
  496. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  497. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  498. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  499. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  500. };
  501. };
  502. class StdEdit {
  503. idc = -1;
  504. access = 0;
  505. type = CT_EDIT;
  506. style = ST_RIGHT+ST_FRAME;
  507. default = false;
  508. font = FontM;
  509. sizeEx = 0.018 * safezoneH;
  510. colorText[] = COLOR_WHITE;
  511. colorSelection[] = COLOR_LIGHTGRAY;
  512. colorDisabled[] = COLOR_LIGHTGRAY;
  513. colorBackground[] = COLOR_GREEN_NOALPHA;
  514. colorBackgroundDisabled[] = COLOR_GREEN;
  515. colorBackgroundActive[] = COLOR_GREEN_NOALPHA;
  516. x = 0;
  517. y = 0;
  518. w = 0.3;
  519. h = (0.02 * safezoneH);
  520. text = "";
  521. autocomplete = "";
  522. shadow = 0;
  523. };