Advertisement
Guest User

Untitled

a guest
Jun 20th, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.75 KB | None | 0 0
  1. #include "commonDefs.hpp"
  2. #include "resincl.hpp"
  3. #include "rscCommon.hpp"
  4.  
  5. //Todo:
  6. //Rename to rscMenu.
  7. //Reimplement GPS, Notepad and Radio.
  8.  
  9. class RscDisplayEditDiaryRecord
  10. {
  11. access = ReadAndWrite;
  12. idd = IDD_EDIT_DIARY_RECORD;
  13. movingEnable = true;
  14.  
  15. class Controls
  16. {
  17. class RecordBackground: RscText
  18. {
  19. colorBackground[] = Color_Background;
  20. x = 0.52; y = 0.155;
  21. w = 0.45; h = 0.34;
  22. };
  23.  
  24. class RecordTitle: RscTitle
  25. {
  26. style = ST_TITLE;
  27. text = $STR_UI_RECORD_TITLE;
  28. x = 0.52; y = 0.165;
  29. w = 0.45;
  30. };
  31.  
  32. class Record: RscEdit
  33. {
  34. idc = IDC_EDIT_DIARY_RECORD;
  35. style = ST_MULTI;
  36. x = 0.53; y = 0.23;
  37. w = 0.43; h = 0.2;
  38. sizeEx = Size_Text_Small;
  39. };
  40.  
  41. class B_OK: RscButton
  42. {
  43. idc = IDC_OK;
  44. x = 0.53; y = 0.435;
  45. w = 0.2; h = 0.05;
  46. text = $STR_DISP_OK;
  47. sizeEx = Size_Text_Small;
  48. default = true;
  49. };
  50. class B_Cancel: B_OK
  51. {
  52. idc = IDC_CANCEL;
  53. x = 0.76;
  54. text = $STR_DISP_CANCEL;
  55. default = false;
  56. };
  57.  
  58. class Title: RscEdit
  59. {
  60. idc = IDC_EDIT_DIARY_TITLE;
  61. x = 0.53; y = 0.53;
  62. w = 0.43; h = 0.2;
  63. sizeEx = Size_Text_Small;
  64. };
  65. };
  66. };
  67.  
  68. class RscDisplayDiary
  69. {
  70. access = ReadAndWrite;
  71. idd = IDD_DIARY; //129.
  72. movingEnable = true;
  73.  
  74. onKeyDown = "if ((_this select 1) == 22) then {closeDialog 129; true} else {false}";
  75.  
  76. class Controls
  77. {
  78. class DiaryBackground: RscText
  79. {
  80. x = 0.1; y = 0.025;
  81. w = 0.8; h = 0.95;
  82. colorBackground[] = Color_Background;
  83. };
  84.  
  85. class DiaryTitle: RscTitle
  86. {
  87. style = ST_TITLE;
  88. text = $STR_UI_DIARY_TITLE;
  89. x = 0.1; y = 0.035;
  90. w = 0.8;
  91. };
  92.  
  93. class DiaryPage: RscCombo
  94. {
  95. idc = IDC_DIARY_PAGE;
  96. x = 0.6; y = 0.1;
  97. w = 0.29; h = 0.05;
  98. sizeEx = Size_Text_Small;
  99. };
  100.  
  101. class B_Add: RscButton
  102. {
  103. idc = IDC_DIARY_ADD;
  104. x = 0.6; y = 0.155;
  105. w = 0.29; h = 0.05;
  106. colorText[] = Color_Text_Default;
  107. text = $STR_UI_DIARY_ADDRECORD;
  108. sizeEx = Size_Text_Small;
  109. };
  110.  
  111. class DiaryIndex: RscListBox
  112. {
  113. idc = IDC_DIARY_INDEX;
  114. x = 0.6; y = 0.21;
  115. w = 0.29; h = 0.7;
  116. };
  117.  
  118. class B_Quit: B_Add
  119. {
  120. idc = IDC_CANCEL;
  121. y = 0.915;
  122. text = $STR_UI_DIARY_QUIT;
  123. default = 1;
  124. };
  125.  
  126. class Diary: RscHTML
  127. {
  128. idc = IDC_DIARY;
  129. x = 0.11; y = 0.1;
  130. w = 0.48; h = 0.865;
  131. colorBackground[] = Color_GrayLight;
  132. colorText[] = Color_Text_Default;
  133. class H1
  134. {
  135. font = FontMAIN;
  136. fontBold = FontMAIN;
  137. sizeEx = Size_Text_Default;
  138. };
  139. class P
  140. {
  141. font = FontMAIN;
  142. fontBold = FontMAIN;
  143. sizeEx = Size_Text_Small;
  144. };
  145. };
  146. };
  147. };
  148.  
  149. //Main map display.
  150. class RscDisplayMainMap
  151. {
  152. access = ReadAndWrite;
  153. idd = IDD_MAIN_MAP;
  154. movingEnable = false;
  155. saveParams = false;
  156.  
  157. class controlsBackground {
  158. class Map: RscMapControl
  159. {
  160. moveOnEdges = true;
  161. x = -0.088; y = -0.088;
  162. w = 1.176; h = 1.176;
  163.  
  164. class Command
  165. {
  166. icon = ProcTextWhite;
  167. color[] = {0, 0, 0, 1};
  168. size = 18;
  169. importance = 1; // not used
  170. coefMin = 1; // not used
  171. coefMax = 1; // not used
  172. };
  173.  
  174. class ActiveMarker
  175. {
  176. color[] = {0.3, 0.1, 0.9, 1};
  177. size = 50;
  178. };
  179. };
  180. };
  181. class controls
  182. {
  183. };
  184.  
  185. class objects
  186. {
  187. //The map watch.
  188. class Watch: RscObject
  189. {
  190. idc = IDC_MAP_WATCH;
  191. type = CT_OBJECT;
  192. model = "\core\watch\watch.p3d";
  193. selectionDate1 = "date1";
  194. selectionDate2 = "date2";
  195. selectionDay = "day";
  196. x = 0.7; xBack = 0.7;
  197. y = 0.12; yBack = 0.12;
  198. z = 0.22; zBack = 0.22;
  199. inBack = false;
  200. enableZoom = false;
  201. direction[] = {0, 0, 1};
  202. up[] = {0, 1, 0};
  203. zoomDuration = 1;
  204. scale = 0.7;
  205. waitForLoad = false;
  206.  
  207. class Animations
  208. {
  209. class WatchHour
  210. {
  211. type = "rotation";
  212. source = "clockHour";
  213. selection = "hodinova";
  214. axis = "osa";
  215. memory = true;
  216. animPeriod = 0;
  217. angle0 = 0;
  218. angle1 = "rad 360";
  219. };
  220. class WatchMinute
  221. {
  222. type = "rotation";
  223. source = "clockMinute";
  224. selection = "minutova";
  225. axis = "osa";
  226. memory = true;
  227. animPeriod = 0;
  228. angle0 = 0;
  229. angle1 = "rad 360";
  230. };
  231. class WatchSecond
  232. {
  233. type = "rotation";
  234. source = "clockSecond";
  235. selection = "vterinova";
  236. axis = "osa";
  237. memory = true;
  238. animPeriod = 0;
  239. angle0 = 0;
  240. angle1 = "rad 360";
  241. };
  242. };
  243. };
  244.  
  245. //The map compass.
  246. class Compass: RscObject
  247. {
  248. idc = IDC_MAP_COMPASS;
  249. type = CT_OBJECT;
  250. model = "\core\compass\compass.p3d";
  251. selectionArrow = "arrow";
  252. x = 0.92; xBack = 0.92;
  253. y = 0.08; yBack = 0.08;
  254. z = 0.22; zBack = 0.22;
  255. inBack = False;
  256. enableZoom = false;
  257. direction[] = {1, 0, 0};
  258. up[] = {0, 1, 0};
  259. zoomDuration = 1;
  260. scale = 0.6;
  261. waitForLoad = false;
  262.  
  263. class Animations
  264. {
  265. class Pointer
  266. {
  267. type = "rotation";
  268. source = "compassPointer";
  269. selection = "kompas";
  270. axis = "osa kompasu";
  271. memory = true;
  272. animPeriod = 0;
  273. minValue = "rad -180";
  274. maxValue = "rad 180";
  275. angle0 = "rad -180";
  276. angle1 = "rad 180";
  277. };
  278. class Arrow
  279. {
  280. type = "rotation";
  281. source = "compassArrow";
  282. selection = "arrow";
  283. axis = "osa kompasu";
  284. memory = true;
  285. animPeriod = 0;
  286. minValue = "rad -180";
  287. maxValue = "rad 180";
  288. angle0 = "rad -180";
  289. angle1 = "rad 180";
  290. };
  291. class Cover
  292. {
  293. type = "rotation";
  294. source = "compassCover";
  295. selection = "vicko";
  296. axis = "osa vicka";
  297. memory = true;
  298. animPeriod = 0;
  299. angle0 = 0;
  300. angle1 = "rad -81";
  301. };
  302. };
  303. };
  304.  
  305. //The map GPS.
  306. class GPS: RscObject
  307. {
  308. idc = IDC_MAP_GPS;
  309. type = CT_OBJECT_CONTAINER;
  310. model = "\core\gps\gps.p3d";
  311. x = 0.3; xBack = 0.3;
  312. y = 0.08; yBack = 0.08;
  313. z = 0.22; zBack = 0.22;
  314. inBack = false;
  315. enableZoom = false;
  316. up[] = {0, 1, 0};
  317. direction[] = {0, 50, 1};
  318. zoomDuration = 1;
  319. scale = 1;
  320. waitForLoad = false;
  321.  
  322. class Areas
  323. {
  324. #define Y_Factor_GPS_Display 0.660
  325.  
  326. class Display
  327. {
  328. selection = "display";
  329. class controls
  330. {
  331. class GPSSquare: RscText
  332. {
  333. style = ST_CENTER;
  334. idc = IDC_GPS;
  335. x = 0; y = 0 * Y_Factor_GPS_Display;
  336. w = 1; h = 1 * Y_Factor_GPS_Display;
  337. color[] = {0, 0, 0, 1};
  338. sizeEx = 1 * Y_Factor_GPS_Display;
  339. text = "";
  340. };
  341. };
  342. };
  343. };
  344. };
  345.  
  346. //The map radio.
  347. class WalkieTalkie: RscObject
  348. {
  349. idc = IDC_MAP_WALKIE_TALKIE;
  350. type = CT_OBJECT_CONTAINER;
  351. model = "\core\radio\radio.p3d";
  352. position[] = {0.094, -0.043, 0.25};
  353. scale = 1.3;
  354. direction[] = {0, 1, 0};
  355. up[] = {0, 0, -1};
  356. positionBack[] = {0.280, -0.155, 0.625};
  357. inBack = true;
  358. enableZoom = true;
  359. zoomDuration = 0.5;
  360.  
  361. class Areas
  362. {
  363. #define Y_Factor_WalkieTalkie_Papir 1.359
  364.  
  365. class Papir
  366. {
  367. selection = "papir";
  368. class controls
  369. {
  370. class RscRadioText: RscActiveText
  371. {
  372. idc = -1;
  373. sizeEx = 0.12 * Y_Factor_WalkieTalkie_Papir;
  374. color[] = Color_Black;
  375. colorActive[] = Color_Gray;
  376. style = ST_LEFT;
  377. x = 0.05; y = 0.02 * Y_Factor_WalkieTalkie_Papir;
  378. w = 0.95; h = 0.08 * Y_Factor_WalkieTalkie_Papir;
  379. };
  380.  
  381. class RadioAlpha: RscRadioText
  382. {
  383. idc = IDC_RADIO_ALPHA;
  384. y = 0.02 * Y_Factor_WalkieTalkie_Papir;
  385. };
  386.  
  387. class RadioBravo: RscRadioText
  388. {
  389. idc = IDC_RADIO_BRAVO;
  390. y = 0.12 * Y_Factor_WalkieTalkie_Papir;
  391. };
  392.  
  393. class RadioCharlie: RscRadioText
  394. {
  395. idc = IDC_RADIO_CHARLIE;
  396. y = 0.22 * Y_Factor_WalkieTalkie_Papir;
  397. };
  398.  
  399. class RadioDelta: RscRadioText
  400. {
  401. idc = IDC_RADIO_DELTA;
  402. y = 0.32 * Y_Factor_WalkieTalkie_Papir;
  403. };
  404.  
  405. class RadioEcho: RscRadioText
  406. {
  407. idc = IDC_RADIO_ECHO;
  408. y = 0.42 * Y_Factor_WalkieTalkie_Papir;
  409. };
  410.  
  411. class RadioFoxtrot: RscRadioText
  412. {
  413. idc = IDC_RADIO_FOXTROT;
  414. y = 0.52 * Y_Factor_WalkieTalkie_Papir;
  415. };
  416.  
  417. class RadioGolf: RscRadioText
  418. {
  419. idc = IDC_RADIO_GOLF;
  420. y = 0.62 * Y_Factor_WalkieTalkie_Papir;
  421. };
  422.  
  423. class RadioHotel: RscRadioText
  424. {
  425. idc = IDC_RADIO_HOTEL;
  426. y = 0.72 * Y_Factor_WalkieTalkie_Papir;
  427. };
  428.  
  429. class RadioIndia: RscRadioText
  430. {
  431. idc = IDC_RADIO_INDIA;
  432. y = 0.82 * Y_Factor_WalkieTalkie_Papir;
  433. };
  434.  
  435. class RadioJuliet: RscRadioText
  436. {
  437. idc = IDC_RADIO_JULIET;
  438. y = 0.92 * Y_Factor_WalkieTalkie_Papir;
  439. };
  440. };
  441. };
  442. };
  443. };
  444.  
  445. //The map notepad.
  446. class Notepad: RscObject
  447. {
  448. idc = IDC_MAP_NOTEPAD;
  449. type = CT_OBJECT_CONTAINER;
  450. model = "\core\notepad\notepad.p3d";
  451. selectionPaper = "paper";
  452. position[] = {-0.08, 0, 0.32};
  453. scale = 1.2;
  454. positionBack[] = {-0.325, 0.197, 0.80};
  455. inBack = false;
  456. enableZoom = true;
  457. zoomDuration = 0.5;
  458.  
  459. paper1 = ProcTextWhite;
  460. paper2 = ProcTextWhite;
  461. paper3 = ProcTextWhite;
  462. paper4 = ProcTextWhite;
  463. paper5 = ProcTextWhite;
  464. paper6 = ProcTextWhite;
  465. paper7 = ProcTextWhite;
  466.  
  467. class Areas
  468. {
  469. #define Y_Factor_Notepad_Paper 2.082
  470.  
  471. class Paper
  472. {
  473. selection = "paper";
  474. class controls
  475. {
  476. class Name: RscText
  477. {
  478. sizeEx = 0.04 * Y_Factor_Notepad_Paper;
  479. color[] = Color_Text_Default;
  480. idc = IDC_MAP_NAME;
  481. style = ST_CENTER;
  482. x = 0; y = 0 * Y_Factor_Notepad_Paper;
  483. w = 1; h = 0.05 * Y_Factor_Notepad_Paper;
  484. };
  485.  
  486. class RscBookmarkText: RscActiveText
  487. {
  488. idc = -1;
  489. sizeEx = 0.04 * Y_Factor_Notepad_Paper;
  490. color[] = Color_Text_Default;
  491. colorActive[] = Color_WhiteDark;
  492. style = ST_CENTER;
  493. x = 0; y = 0.05 * Y_Factor_Notepad_Paper;
  494. w = 0.25; h = 0.05 * Y_Factor_Notepad_Paper;
  495. };
  496.  
  497. class Bookmark1: RscBookmarkText
  498. {
  499. idc = IDC_MAP_PLAN;
  500. x = 0;
  501. text = $STR_MAP_PLAN;
  502. };
  503.  
  504. class Bookmark2 : RscBookmarkText
  505. {
  506. idc = IDC_MAP_NOTES;
  507. x = 0.25;
  508. text = $STR_MAP_NOTES;
  509. };
  510.  
  511. class Bookmark3: RscBookmarkText
  512. {
  513. idc = IDC_MAP_GROUP;
  514. x = 0.5;
  515. text = $STR_MAP_GROUP;
  516. };
  517.  
  518.  
  519. class Bookmark4: RscBookmarkText
  520. {
  521. idc = IDC_MAP_TEAM_SWITCH;
  522. x = 0.75;
  523. text = $STR_BRIEF_TEAM_SWITCH;
  524. };
  525.  
  526. class Briefing: RscHTML
  527. {
  528. size = 1 * Y_Factor_Notepad_Paper;
  529. idc = IDC_BRIEFING;
  530. x = 0.02; y = 0.11 * Y_Factor_Notepad_Paper;
  531. w = 0.98; h = 0.89 * Y_Factor_Notepad_Paper;
  532.  
  533. class H1: H1
  534. {
  535. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  536. };
  537.  
  538. class H2: H2
  539. {
  540. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  541. };
  542.  
  543. class H3: H3
  544. {
  545. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  546. };
  547.  
  548. class H4: H4
  549. {
  550. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  551. };
  552.  
  553. class H5: H5
  554. {
  555. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  556. };
  557.  
  558. class H6: H6
  559. {
  560. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  561. };
  562.  
  563. class P: P
  564. {
  565. sizeEx = Size_Text_Default * Y_Factor_Notepad_Paper;
  566. };
  567. };
  568. };
  569. };
  570. };
  571. };
  572. };
  573. };
  574.  
  575. //Main menu.
  576. class RscDisplayMain: RscStandardDisplay
  577. {
  578. idd = IDD_MAIN;
  579.  
  580. #define MAIN_ACTIVETEXT_Y 0.2
  581.  
  582. //Todo:
  583. //BISML™ 1.0 Strict testing:
  584. /*class controlsBackground
  585. {
  586. BISML_BODY(0, 0, 1, 1)
  587. BISML_CELL(Cell1, 0.2, 0.1)
  588. //Controls
  589. BISML_NEXTROW
  590.  
  591. BISML_CELL(Cell2, 0.1, 0.05)
  592. //Controls
  593. BISML_CELL(Cell3, 0.3, 0.2)
  594. //Controls
  595. };*/
  596.  
  597. class controls
  598. {
  599. //Version number of the application.
  600. class Version: RscText
  601. {
  602. idc = IDC_MAIN_VERSION;
  603. style = ST_CENTER;
  604. x = 0.2; y = 0.1;
  605. w = 0.2;
  606. sizeEx = Size_Text_Small;
  607. };
  608.  
  609. class ModList: RscStructuredText
  610. {
  611. idc = IDC_MAIN_MOD_LIST;
  612. style = ST_LEFT;
  613. x=0.75; y=0.4;
  614. w=0.24; h=0.5;
  615. size = SizeSmall;
  616. class Attributes
  617. {
  618. font = FontMAIN;
  619. color = "#ffffff";
  620. align = "right";
  621. shadow = false;
  622. };
  623. };
  624.  
  625. //Current real date.
  626. class Date: Version
  627. {
  628. idc = IDC_MAIN_DATE;
  629. x = 0.6;
  630. };
  631.  
  632. //Open the campaign selection screen.
  633. class B_Campaign: RscButton
  634. {
  635. idc = IDC_MAIN_GAME;
  636. x = 0.133; y = MAIN_ACTIVETEXT_Y;
  637. text = $STR_DISP_MAIN_XBOX_CAMPAIGN;
  638. };
  639.  
  640. //Open the single mission screen.
  641. class B_SingleMission: B_Campaign
  642. {
  643. idc = IDC_MAIN_SINGLE;
  644. y = MAIN_ACTIVETEXT_Y + 0.1;
  645. text = $STR_DISP_MAIN_SINGLE;
  646. default = 1;
  647. };
  648.  
  649. //Open the multiplayer browser.
  650. class B_MultiPlayer: B_Campaign
  651. {
  652. idc = IDC_MAIN_MULTIPLAYER;
  653. y = MAIN_ACTIVETEXT_Y + 0.2;
  654. text = $STR_DISP_MAIN_MULTI;
  655. };
  656.  
  657. //Start the mission editor.
  658. class B_MissionEditor: B_Campaign
  659. {
  660. idc = IDC_MAIN_EDITOR;
  661. y = MAIN_ACTIVETEXT_Y + 0.3;
  662. text = $STR_DISP_MAIN_CUSTOM;
  663. };
  664. class B_SinglePlayer: B_Campaign
  665. {
  666. idc = IDC_MAIN_SINGLEPLAYER;
  667. y = MAIN_ACTIVETEXT_Y + 0.4;
  668. text = $STR_DISP_MAIN_SINGLE_PLAYER;
  669. };
  670.  
  671. //Open the options menu.
  672. class B_Options: RscButton
  673. {
  674. idc = IDC_MAIN_OPTIONS;
  675. x = 0.566; y = MAIN_ACTIVETEXT_Y;
  676. text = $STR_DISP_MAIN_OPTIONS;
  677. };
  678.  
  679. //Open the profile screen.
  680. class B_Player: B_Options
  681. {
  682. idc = IDC_MAIN_PLAYER;
  683. y = MAIN_ACTIVETEXT_Y + 0.1;
  684. text = $STR_DISP_ERROR;
  685. };
  686.  
  687. //Start the credits
  688. class B_Credits: B_Options
  689. {
  690. idc = IDC_MAIN_CREDITS;
  691. y = MAIN_ACTIVETEXT_Y + 0.2;
  692. text = $STR_DISP_MAIN_CREDITS;
  693. };
  694.  
  695. class B_Expansions: B_Options
  696. {
  697. idc = IDC_MAIN_MOD_LAUNCHER;
  698. y = MAIN_ACTIVETEXT_Y + 0.5;
  699. text = "Expansions"; //$STR_DISP_MAIN_EXPANSIONS;
  700. };
  701.  
  702. //Exit the application
  703. class B_Quit: B_Options
  704. {
  705. idc = IDC_MAIN_QUIT;
  706. y = MAIN_ACTIVETEXT_Y + 0.3;
  707. text = $STR_DISP_MAIN_QUIT;
  708. };
  709.  
  710. class ModIcons: RscControlsGroup
  711. {
  712. idc = IDC_MAIN_MOD_ICONS;
  713. x = SafeZoneX+0.03; y = (SafeZoneH + SafeZoneY) - (0.113*SafeZoneH);
  714. w = 0.8; h = 0.2;
  715.  
  716. class Controls
  717. {
  718. //Controls containing mod pictures are added by the program.
  719. //these icon specification is given by class IconPicture below
  720. };
  721. };
  722. };
  723.  
  724. // specifies how the picture in the ModIcons control container should look like
  725. class IconPicture: RscPicture
  726. {
  727. x = 0; y = 0;
  728. w = 0.07*SafeZoneH; h = 0.093*SafeZoneH; //aspect ratio 3/4
  729. spacing = 0.007;
  730. text = "";
  731. };
  732. };
  733.  
  734.  
  735. class RscDisplaySingleplayer
  736. {
  737. idd = IDD_SINGLEPLAYER;
  738.  
  739. movingEnable = true;
  740. enableSimulation = true;
  741. enableDisplay = true;
  742.  
  743. #define MAIN_ACTIVETEXT_Y 0.2
  744.  
  745.  
  746. class controls
  747. {
  748.  
  749. class B_Campaign: RscButton
  750. {
  751. idc = IDC_SP_CAMPAIGN;
  752. x = 0.133; y = MAIN_ACTIVETEXT_Y;
  753. text = $STR_DISP_MAIN_XBOX_CAMPAIGN;
  754. };
  755.  
  756. //Open the single mission screen.
  757. class B_SingleMission: B_Campaign
  758. {
  759. idc = IDC_SP_MISSION;
  760. y = MAIN_ACTIVETEXT_Y + 0.1;
  761. text = $STR_DISP_MAIN_SINGLE;
  762. default = 1;
  763. };
  764.  
  765. //Start the mission editor.
  766. class B_MissionEditor: B_Campaign
  767. {
  768. idc = IDC_SP_EDITOR;
  769. y = MAIN_ACTIVETEXT_Y + 0.2;
  770. text = $STR_DISP_MAIN_CUSTOM;
  771. };
  772. class B_Training: B_Campaign
  773. {
  774. idc = IDC_SP_TRAINING;
  775. y = MAIN_ACTIVETEXT_Y + 0.3;
  776. text = $STR_DISP_MAIN_TRAINING;
  777. };
  778. class B_Back: B_Campaign
  779. {
  780. idc = IDC_CANCEL;
  781. y = MAIN_ACTIVETEXT_Y + 0.4;
  782. text = $STR_DISP_BACK;
  783. };
  784.  
  785. };
  786. };
  787. //Single mission selection screen.
  788. class RscDisplaySingleMission: RscStandardDisplay
  789. {
  790. idd = IDD_SINGLE_MISSION;
  791. none = ProcTextWhite;
  792. done = ProcTextWhite;
  793. locked = ProcTextWhite;
  794. package = ProcTextWhite;
  795.  
  796. class controls
  797. {
  798. class Title: RscTitle {text = $STR_DISP_SINGLE_TITLE;};
  799.  
  800. //Lists all the available single missions and subfolders with more missions.
  801. class Missions: RscListBox
  802. {
  803. idc = IDC_SINGLE_MISSION;
  804. x = 0.067; y = 0.15;
  805. h = 0.65;
  806. };
  807.  
  808. //Todo: make this control interactive to change pages.
  809. //HTML briefing screen is displayed in this field.
  810. class Overview: RscHTML
  811. {
  812. idc = IDC_SINGLE_OVERVIEW;
  813. x = 0.53; y = 0.15;
  814. w = 0.4; h = 0.65;
  815. };
  816.  
  817. //Difficulty selection button.
  818. class B_Difficulty: RscActiveText
  819. {
  820. idc = IDC_SINGLE_DIFF;
  821. x = 0.03; y = 0.9;
  822. };
  823.  
  824. //Cancel back to the main menu.
  825. class B_Cancel: B_Difficulty
  826. {
  827. idc = IDC_CANCEL;
  828. x = 0.21;
  829. text = $STR_DISP_CANCEL;
  830. };
  831.  
  832. //Restart mission button.
  833. class B_Start: B_Difficulty
  834. {
  835. idc = IDC_SINGLE_LOAD;
  836. x = 0.39;
  837. };
  838.  
  839. //Continue from a save or start the mission.
  840. class B_Continue: B_Difficulty
  841. {
  842. idc = IDC_OK;
  843. x = 0.57;
  844. w = 0.4;
  845. default = 1;
  846. };
  847. };
  848. };
  849.  
  850. //Campaign selection screen.
  851. class RscDisplayCampaignLoad: RscStandardDisplay
  852. {
  853. idd = IDD_CAMPAIGN_LOAD;
  854.  
  855. class controls
  856. {
  857. class Title: RscTitle {idc = IDC_CAMPAIGN_CAMPAIGN;};
  858.  
  859. //Select the previous campaign.
  860. class B_Prev: RscActiveText
  861. {
  862. idc = IDC_CAMPAIGN_PREV;
  863. x = 0.025; y = 0.1;
  864. w = 0.15;
  865. text = $STR_DISP_CAMPAIGN_PREVIOUS;
  866. };
  867.  
  868. //Select the next campaign.
  869. class B_Next: B_Prev
  870. {
  871. idc = IDC_CAMPAIGN_NEXT;
  872. x = 0.875;
  873. text = $STR_DISP_CAMPAIGN_NEXT;
  874. };
  875.  
  876. class Contents: RscText
  877. {
  878. x = 0.025; y = 0.18;
  879. w = 0.15;
  880. text = $STR_DISP_CAMPAIGN_CONTENTS;
  881. style = ST_LEFT;
  882. };
  883.  
  884. //The campaign history / played missions and cutscenes.
  885. class History: RscListBox
  886. {
  887. idc = IDC_CAMPAIGN_HISTORY;
  888. x = 0.067; y = 0.24;
  889. w = 0.4; h = 0.5;
  890. };
  891.  
  892. //The selected mission name.
  893. class Mission: RscText
  894. {
  895. idc = IDC_CAMPAIGN_MISSION;
  896. x = 0; y = 0.18;
  897. w = 1;
  898. style = ST_CENTER;
  899. };
  900.  
  901. //HTML description of the campaign.
  902. class Description: RscHTML
  903. {
  904. idc = IDC_CAMPAIGN_DESCRIPTION;
  905. x = 0.53; y = 0.24;
  906. w = 0.4; h = 0.5;
  907. };
  908.  
  909. class BookText: RscText
  910. {
  911. x = 0.025;
  912. w = 0.2;
  913. y = -5;
  914. style = ST_LEFT;
  915. sizeEx = Size_Text_Small;
  916. };
  917.  
  918. //Todo: Verify this works.
  919. //Date of last play.
  920. class Date: BookText
  921. {
  922. idc = IDC_CAMPAIGN_DATE;
  923. y = 0.76;
  924. };
  925.  
  926. //Current mission and total score.
  927. class Score: BookText
  928. {
  929. idc = IDC_CAMPAIGN_SCORE;
  930. y = 0.79;
  931. };
  932.  
  933. //Current mission and total duration.
  934. class Duration: BookText
  935. {
  936. idc = IDC_CAMPAIGN_DURATION;
  937. y = 0.82;
  938. };
  939.  
  940. //Current mission and total casualties.
  941. class Casualties: BookText
  942. {
  943. idc = IDC_CAMPAIGN_CASUALTIES;
  944. y = 0.85;
  945. };
  946.  
  947. //ToDo: Shows when it shouldn't.
  948. class BookTableItem: BookText
  949. {
  950. x = 0.35;
  951. w = 0.1; h = 0.03;
  952. style = ST_CENTER + ST_WITH_RECT;
  953. };
  954.  
  955. //Statistics table.
  956. class KillsTitle: BookTableItem
  957. {
  958. idc = IDC_CAMPAIGN_KILLS_TITLE;
  959. y = 0.76;
  960. text = $STR_CAMPAIGN_KILLS;
  961. };
  962.  
  963. class EnemyRow: BookTableItem
  964. {
  965. idc = IDC_CAMPAIGN_ENEMY_ROW;
  966. y = 0.79;
  967. text = $STR_DISP_CAMPAIGN_ENEMY;
  968. };
  969.  
  970. class FriendlyRow: BookTableItem
  971. {
  972. idc = IDC_CAMPAIGN_FRIENDLY_ROW;
  973. y = 0.82;
  974. text = $STR_DISP_CAMPAIGN_FRIENDLY;
  975. };
  976.  
  977. class CivilianRow: BookTableItem
  978. {
  979. idc = IDC_CAMPAIGN_CIVILIAN_ROW;
  980. y = 0.85;
  981. text = $STR_DISP_CAMPAIGN_CIVILIAN;
  982. };
  983.  
  984. class InfantryColumn: BookTableItem
  985. {
  986. idc = IDC_CAMPAIGN_INFANTRY_COLUMN;
  987. x = 0.45; y = 0.76;
  988. text = $STR_MPTABLE_INFANTRY;
  989. };
  990.  
  991. class SoftColumn: BookTableItem
  992. {
  993. idc = IDC_CAMPAIGN_SOFT_COLUMN;
  994. x = 0.55; y = 0.76;
  995. text = $STR_MPTABLE_SOFT;
  996. };
  997.  
  998. class ArmoredColumn: BookTableItem
  999. {
  1000. idc = IDC_CAMPAIGN_ARMORED_COLUMN;
  1001. x = 0.65; y = 0.76;
  1002. text = $STR_MPTABLE_ARMORED;
  1003. };
  1004.  
  1005. class AircraftColumn: BookTableItem
  1006. {
  1007. idc = IDC_CAMPAIGN_AIRCRAFT_COLUMN;
  1008. x = 0.75; y = 0.76;
  1009. text = $STR_MPTABLE_AIR;
  1010. };
  1011.  
  1012. class TotalColumn: BookTableItem
  1013. {
  1014. idc = IDC_CAMPAIGN_TOTAL_COLUMN;
  1015. x = 0.85; y = 0.76;
  1016. text = $STR_MPTABLE_TOTAL;
  1017. };
  1018.  
  1019. class EInf: BookTableItem
  1020. {
  1021. idc = IDC_CAMPAIGN_EINF;
  1022. x = 0.45; y = 0.79;
  1023. };
  1024.  
  1025. class ESoft: BookTableItem
  1026. {
  1027. idc = IDC_CAMPAIGN_ESOFT;
  1028. x = 0.55; y = 0.79;
  1029. };
  1030.  
  1031. class EArm: BookTableItem
  1032. {
  1033. idc = IDC_CAMPAIGN_EARM;
  1034. x = 0.65; y = 0.79;
  1035. };
  1036.  
  1037. class EAir: BookTableItem
  1038. {
  1039. idc = IDC_CAMPAIGN_EAIR;
  1040. x = 0.75; y = 0.79;
  1041. };
  1042.  
  1043. class ETot: BookTableItem
  1044. {
  1045. idc = IDC_CAMPAIGN_ETOT;
  1046. x = 0.85; y = 0.79;
  1047. };
  1048.  
  1049. class FInf: BookTableItem
  1050. {
  1051. idc = IDC_CAMPAIGN_FINF;
  1052. x = 0.45; y = 0.82;
  1053. };
  1054.  
  1055. class FSoft: BookTableItem
  1056. {
  1057. idc = IDC_CAMPAIGN_FSOFT;
  1058. x = 0.55; y = 0.82;
  1059. };
  1060.  
  1061. class FArm: BookTableItem
  1062. {
  1063. idc = IDC_CAMPAIGN_FARM;
  1064. x = 0.65; y = 0.82;
  1065. };
  1066.  
  1067. class FAir: BookTableItem
  1068. {
  1069. idc = IDC_CAMPAIGN_FAIR;
  1070. x = 0.75; y = 0.82;
  1071. };
  1072.  
  1073. class FTot: BookTableItem
  1074. {
  1075. idc = IDC_CAMPAIGN_FTOT;
  1076. x = 0.85; y = 0.82;
  1077. };
  1078.  
  1079. class CInf: BookTableItem
  1080. {
  1081. idc = IDC_CAMPAIGN_CINF;
  1082. x = 0.45; y = 0.85;
  1083. };
  1084.  
  1085. class CSoft: BookTableItem
  1086. {
  1087. idc = IDC_CAMPAIGN_CSOFT;
  1088. x = 0.55; y = 0.85;
  1089. };
  1090.  
  1091. class CArm: BookTableItem
  1092. {
  1093. idc = IDC_CAMPAIGN_CARM;
  1094. x = 0.65; y = 0.85;
  1095. };
  1096.  
  1097. class CAir: BookTableItem
  1098. {
  1099. idc = IDC_CAMPAIGN_CAIR;
  1100. x = 0.75; y = 0.85;
  1101. };
  1102.  
  1103. class CTot: BookTableItem
  1104. {
  1105. idc = IDC_CAMPAIGN_CTOT;
  1106. x = 0.85; y = 0.85;
  1107. };
  1108.  
  1109. //Select the campaign difficulty.
  1110. class B_Difficulty: RscActiveText
  1111. {
  1112. idc = IDC_CAMPAIGN_DIFF;
  1113. x = 0.033; y = 0.90;
  1114. w = 0.2;
  1115. };
  1116.  
  1117. //Revert the campaign's progress to the selected mission.
  1118. class B_Replay: B_Difficulty
  1119. {
  1120. idc = IDC_CAMPAIGN_REPLAY;
  1121. x = 0.266;
  1122. text = $STR_DISP_CAMPAIGN_REPLAY;
  1123. default = 1;
  1124. };
  1125.  
  1126. //Cancel to the main menu.
  1127. class B_Cancel: B_Difficulty
  1128. {
  1129. idc = IDC_CANCEL;
  1130. x = 0.499;
  1131. text = $STR_DISP_CANCEL;
  1132. };
  1133.  
  1134. //Continue or replay the campaign.
  1135. class B_OK: B_Difficulty
  1136. {
  1137. idc = IDC_OK;
  1138. x = 0.733;
  1139. };
  1140. };
  1141. };
  1142.  
  1143. //Campaign reverting screen.
  1144. class RscDisplayRevert: RscStandardDisplay
  1145. {
  1146. idd = IDD_REVERT;
  1147.  
  1148. class controls
  1149. {
  1150. class Title: RscTitle
  1151. {
  1152. idc = IDC_REVERT_TITLE;
  1153. text = $STR_SURE;
  1154. };
  1155.  
  1156. class Question: RscText
  1157. {
  1158. idc = IDC_REVERT_QUESTION;
  1159. x = 0.54; y = 0.35;
  1160. w = 0.4; h = 0.5;
  1161. text = $STR_DISP_REVERT_QUESTION;
  1162. style = ST_CENTER;
  1163. };
  1164. };
  1165. };
  1166.  
  1167. //Difficulty selection screen.
  1168. class RscDisplaySelectDifficulty: RscStandardDisplay
  1169. {
  1170. idd = IDD_SELECT_DIFFICULTY;
  1171.  
  1172. class controls
  1173. {
  1174. //List of difficulties.
  1175. class Difficulty: RscListBox
  1176. {
  1177. idc = IDC_DIFF_LIST;
  1178. x = 0.03; y = 0.2;
  1179. w = 0.44; h = 0.16;
  1180. };
  1181.  
  1182. //Description of difficulties.
  1183. class Description: RscHTML
  1184. {
  1185. idc = IDC_DIFF_DESC;
  1186. x = 0.52; y = 0.15;
  1187. w = 0.42; h = 0.7;
  1188. align = "center";
  1189. };
  1190. };
  1191. };
  1192. //Difficulty selection screen.
  1193. class RscDisplayDifficultySelect
  1194. {
  1195. idd = IDD_DIFFICULTY_SELECT;
  1196.  
  1197. class controls
  1198. {
  1199. //List of difficulties.
  1200. class Difficulty: RscListBox
  1201. {
  1202. idc = IDC_DIFF_LIST;
  1203. x = 0.03; y = 0.2;
  1204. w = 0.44; h = 0.16;
  1205. };
  1206.  
  1207. //Description of difficulties.
  1208. class Description: RscHTML
  1209. {
  1210. idc = IDC_DIFF_DESC;
  1211. x = 0.52; y = 0.15;
  1212. w = 0.42; h = 0.7;
  1213. align = "center";
  1214. };
  1215. };
  1216. };
  1217. //Main briefing screen (for single missions).
  1218. class RscDisplayGetReady: RscDisplayMainMap
  1219. {
  1220. idd = IDD_INTEL_GETREADY;
  1221. showGearOnExit = false;
  1222.  
  1223. class controlsBackground
  1224. {
  1225. /*
  1226. Obsolete (news:gv33q7$sgq$1@new-server.localdomain).
  1227.  
  1228. //In-game map.
  1229. class Map: RscMapControl
  1230. {
  1231. x = 0.5; y = 0.05;
  1232. w = 0.45; h = 0.9;
  1233. };
  1234. */
  1235.  
  1236. class Background1: RscText
  1237. {
  1238. x = 0; y = 0;
  1239. w = 0.5; h = 1;
  1240. colorBackground[] = Color_Background;
  1241. };
  1242.  
  1243. class Background2: Background1
  1244. {
  1245. x = 0.5; y = 0;
  1246. h = 0.05;
  1247. };
  1248.  
  1249. class Background3: Background2
  1250. {
  1251. y = 0.95;
  1252. };
  1253.  
  1254. class Background4: Background1
  1255. {
  1256. x = 0.95;
  1257. w = 0.05;
  1258. };
  1259. };
  1260.  
  1261. class controls
  1262. {
  1263. class Title: RscTitle
  1264. {
  1265. idc = IDC_GETREADY_TITLE;
  1266. x = 0;
  1267. w = 0.5;
  1268. };
  1269.  
  1270. //Todo: Buttons don't respond.
  1271. //Go to the gear screen.
  1272. class B_Continue: RscActiveText
  1273. {
  1274. idc = IDC_OK;
  1275. x = 0.1; y = 0.90;
  1276. w = 0.15;
  1277. text = $STR_DISP_CONTINUE;
  1278. default = true;
  1279. };
  1280.  
  1281. //Cancel back to the single mission screen.
  1282. class B_Cancel: B_Continue
  1283. {
  1284. idc = IDC_CANCEL;
  1285. x = 0.25;
  1286. text = $STR_DISP_CANCEL;
  1287. default = false;
  1288. };
  1289. };
  1290. };
  1291.  
  1292. //Main gear screen.
  1293. class RscDisplayGear
  1294. {
  1295. idd = IDD_GEAR;
  1296. emptyGun = ProcTextWhite;
  1297. emptySec = ProcTextWhite;
  1298. emptyEq = ProcTextWhite;
  1299. emptyMag = ProcTextWhite;
  1300. emptyMag2 = ProcTextWhite;
  1301. emptyHGun = ProcTextWhite;
  1302. emptyHGunMag = ProcTextWhite;
  1303.  
  1304. movingEnable = false;
  1305. enableDisplay = true;
  1306.  
  1307. class controls
  1308. {
  1309. class Title: RscTitle
  1310. {
  1311. idc = IDC_GEAR_UNIT;
  1312. text = $STR_GEAR_TITLE;
  1313. };
  1314.  
  1315.  
  1316. // Pool of weapons and magazines.
  1317. class Pool : RscListNBox
  1318. {
  1319. idc = IDC_GEAR_POOL;
  1320. style = LB_TEXTURES;
  1321. x = 0.05; y = 0.6;
  1322. w = 0.4; h = 0.3;
  1323. color[] = Color_Black; // make it readable
  1324. xcolumn1 = 0.1f;
  1325. xcolumn2 = 0.25f;
  1326. xcolumn3 = 0.85f;
  1327.  
  1328. colorPlayerItem[] = Color_Orange;
  1329. };
  1330.  
  1331. //Add item to soldier / remove from pool
  1332. class B_Add: RscButton
  1333. {
  1334. idc = IDC_GEAR_ADD_ITEM;
  1335. x = 0.0; y = 0.2;
  1336. h = 0.1;
  1337. w = 0.1;
  1338. text = "";
  1339. };
  1340.  
  1341. //Rremove item from soldier / add to pool
  1342. class B_Remove: B_Add
  1343. {
  1344. idc = IDC_GEAR_REMOVE_ITEM;
  1345. x = 0.2; y = 0.2;
  1346. text = "";
  1347. };
  1348.  
  1349. //Selected unit's skill level.
  1350. class Skill: RscPicture
  1351. {
  1352. idc = IDC_GEAR_SKILL;
  1353. x = 0.73; y = 0.20;
  1354. w = 0.05; h = 0.05;
  1355. };
  1356.  
  1357. //Selected unit's vehicle.
  1358. class Vehicle: RscPicture
  1359. {
  1360. idc = IDC_GEAR_VEHICLE;
  1361. x = 0.8; y = 0.2;
  1362. w = 0.06; h = 0.06;
  1363. };
  1364.  
  1365. //Selected unit's equipment.
  1366. class Weapons: RscHtml
  1367. {
  1368. idc = IDC_GEAR_WEAPONS;
  1369. x = 0.55; y = 0.18;
  1370. w = 0.4; h = 0.6;
  1371. align = "center";
  1372. cycleLinks = false;
  1373. };
  1374.  
  1375.  
  1376. //Rearm soldier
  1377. class B_Rearm: RscActiveText
  1378. {
  1379. idc = IDC_GEAR_REARM;
  1380. x = 0.75; y = 0.9;
  1381. w = 0.15;
  1382. text = $STR_GEAR_REARM;
  1383. };
  1384.  
  1385. //open bag
  1386. class B_OpenBag: RscActiveText
  1387. {
  1388. idc = IDC_GEAR_OPEN_BAG;
  1389. x = 0.7; y = 0.9;
  1390. w = 0.15;
  1391. text = "OPEN";
  1392. };
  1393.  
  1394. //close bag
  1395. class B_CloseBag: RscActiveText
  1396. {
  1397. idc = IDC_GEAR_CLOSE_BAG;
  1398. x = 0.7; y = 0.9;
  1399. w = 0.15;
  1400. text = "CLOSE";
  1401. };
  1402.  
  1403. //Exit the gear screen.
  1404. class B_Close: RscActiveText
  1405. {
  1406. idc = IDC_CANCEL;
  1407. x = 0.85; y = 0.9;
  1408. w = 0.15;
  1409. text = $STR_DISP_CLOSE;
  1410. default = 1;
  1411. };
  1412. };
  1413.  
  1414. class Filters
  1415. {
  1416. class All
  1417. {
  1418. name = "All";
  1419. mask = 8191;
  1420. image = "";
  1421. };
  1422. class Primary
  1423. {
  1424. name = "Primary";
  1425. mask = 257;
  1426. image = "";
  1427. };
  1428. class Secondary
  1429. {
  1430. name = "Secondary";
  1431. mask = 260;
  1432. image = "";
  1433. };
  1434. class HandGun
  1435. {
  1436. name = "HandGun";
  1437. mask = 8128;
  1438. image = "";
  1439. };
  1440. class Items
  1441. {
  1442. name = "Items";
  1443. mask = 1023;
  1444. image = "";
  1445. };
  1446. };
  1447. };
  1448.  
  1449. //Todo: Verify this works.
  1450. //Switching the piece of equipment.
  1451. class RscDisplayGearWeapon: RscStandardDisplay
  1452. {
  1453. idd = IDD_GEAR_SELECT;
  1454.  
  1455. class controls
  1456. {
  1457. class Title: RscTitle
  1458. {
  1459. idc = IDC_GEAR_SELECT_TITLE;
  1460. };
  1461.  
  1462. //Available equipment.
  1463. class Weapon: RscListBox
  1464. {
  1465. idc = IDC_GEAR_SELECT_LIST;
  1466. style = LB_TEXTURES;
  1467. x = 0.07; y = 0.2;
  1468. w = 0.44; h = 0.6;
  1469. rowHeight = 0.065;
  1470. };
  1471.  
  1472. //HTML overview of the selected piece of equipment.
  1473. class Overview: RscHtml
  1474. {
  1475. idc = IDC_GEAR_SELECT_OVERVIEW;
  1476. x = 0.523; y = 0.2;
  1477. w = 0.422; h = 0.68;
  1478. align = "center";
  1479. };
  1480.  
  1481. //Drop the piece of equipment.
  1482. class B_Drop: RscActiveText
  1483. {
  1484. idc = IDC_GEAR_SELECT_DROP;
  1485. x = 0.25; y = 0.9;
  1486. w = 0.15;
  1487. text = $STR_TOOLTIP_DROP; // maybe different string should be used
  1488. default = 1;
  1489. };
  1490.  
  1491. //Select the piece of equipment and exit.
  1492. class B_OK: B_Drop
  1493. {
  1494. idc = IDC_OK;
  1495. x = 0.85;
  1496. text = $STR_DISP_OK;
  1497. default = 1;
  1498. };
  1499.  
  1500. class B_CANCEL: B_Drop
  1501. {
  1502. idc = IDC_CANCEL;
  1503. x = 0.9;
  1504. text = $STR_DISP_CANCEL;
  1505. default = 1;
  1506. };
  1507.  
  1508. };
  1509. };
  1510.  
  1511. class RscDisplayArtillery: RscStandardDisplay
  1512. {
  1513. idd = -1;
  1514. enableSimulation = true;
  1515. movingEnable = false;
  1516.  
  1517. class controls {};
  1518. }
  1519.  
  1520. class RscDisplayEmpty
  1521. {
  1522. access = ReadAndWrite;
  1523. movingEnable = false;
  1524.  
  1525. class controls {};
  1526. };
  1527.  
  1528. //In-game mission screen.
  1529. class RscDisplayMission: RscDisplayEmpty
  1530. {
  1531. access = ReadAndWrite;
  1532. idd = IDD_MISSION;
  1533. };
  1534.  
  1535. //In-game intro screen.
  1536. class RscDisplayIntro: RscDisplayEmpty
  1537. {
  1538. access = ReadAndWrite;
  1539. idd = IDD_INTRO;
  1540. };
  1541.  
  1542. //In-game outro screen.
  1543. class RscDisplayOutro: RscDisplayEmpty
  1544. {
  1545. access = ReadAndWrite;
  1546. idd = IDD_OUTRO;
  1547. };
  1548.  
  1549. //In-game award screen.
  1550. class RscDisplayAward: RscDisplayEmpty
  1551. {
  1552. access = ReadAndWrite;
  1553. idd = IDD_AWARD;
  1554. };
  1555.  
  1556. //In-game campaign screen.
  1557. class RscDisplayCampaign: RscDisplayEmpty
  1558. {
  1559. access = ReadAndWrite;
  1560. idd = IDD_CAMPAIGN;
  1561. };
  1562.  
  1563. //Dead screen.
  1564. class RscDisplayMissionEnd: RscStandardDisplay
  1565. {
  1566. idd = IDD_MISSION_END;
  1567.  
  1568. #define MissionEnd_Y 0.2
  1569.  
  1570. class controls
  1571. {
  1572. class Title: RscTitle {text = $STR_MISSION_KILLED;};
  1573.  
  1574. //Quote of famous person.
  1575. class Quotation: RscText
  1576. {
  1577. idc = IDC_ME_QUOTATION;
  1578. style = ST_MULTI;
  1579. lineSpacing = 1;
  1580. x = 0.1; y = 0.7;
  1581. w = 0.85; h = 0.2;
  1582. };
  1583.  
  1584. //Famous person.
  1585. class Author: RscText
  1586. {
  1587. idc = IDC_ME_AUTHOR;
  1588. style = ST_RIGHT;
  1589. x = 0.45; y = 0.85;
  1590. w = 0.4;
  1591. };
  1592.  
  1593. //Load a previous save.
  1594. class B_Load: RscButton
  1595. {
  1596. idc = IDC_ME_LOAD;
  1597. x = 0.35;
  1598. y = MissionEnd_Y;
  1599. text = $STR_DISP_ME_LOAD;
  1600. };
  1601.  
  1602. //Retry the mission from the last autosave.
  1603. class B_Retry: B_Load
  1604. {
  1605. idc = IDC_ME_RETRY;
  1606. y = MissionEnd_Y + 0.1;
  1607. text = $STR_DISP_ME_RETRY;
  1608. default = 1;
  1609. };
  1610.  
  1611. //Restart the mission.
  1612. class B_Restart: B_Load
  1613. {
  1614. idc = IDC_ME_RESTART;
  1615. y = MissionEnd_Y + 0.2;
  1616. text = $STR_XBOX_PLAY_AGAIN;
  1617. };
  1618.  
  1619. //Abort the mission.
  1620. class B_Abort: B_Load
  1621. {
  1622. idc = IDC_CANCEL;
  1623. y = MissionEnd_Y + 0.3;
  1624. text = $STR_DISP_ME_ABORT;
  1625. };
  1626.  
  1627. // Team switch.
  1628. class B_TeamSwitch: B_Load
  1629. {
  1630. idc = IDC_ME_TEAM_SWITCH;
  1631. y = MissionEnd_Y + 0.4;
  1632. text = $STR_DISP_ME_TEAM_SWITCH;
  1633. };
  1634. };
  1635. };
  1636.  
  1637. class RscDisplayTeamSwitch: RscStandardDisplay
  1638. {
  1639. idd = IDD_TEAM_SWITCH;
  1640. movingEnable = false;
  1641.  
  1642. colorPlayer[] = Color_Text_Default;
  1643. colorPlayerSelected[] = Color_Orange;
  1644.  
  1645. class Controls
  1646. {
  1647. class Background : RscText
  1648. {
  1649. x = 0.60000;
  1650. y = 0.00000;
  1651. w = 0.40000;
  1652. h = 0.40000;
  1653.  
  1654. style = ST_HUD_BACKGROUND;
  1655. colorBackground[] = {0.1, 0.1, 0.1, 1};
  1656. };
  1657. class Roles : RscListBox
  1658. {
  1659. idc = IDC_TEAM_SWITCH_ROLES;
  1660. style = LB_TEXTURES;
  1661. x = 0.61; y = 0.01;
  1662. w = 0.39; h = 0.29;
  1663. };
  1664. class ButtonOK : RscButton
  1665. {
  1666. idc = IDC_OK;
  1667. x = 0.61; y = 0.31;
  1668. w = 0.19; h = 0.08;
  1669. text = $STR_DISP_OK;
  1670. default = 1;
  1671. };
  1672. class ButtonCancel : RscButton
  1673. {
  1674. idc = IDC_CANCEL;
  1675. x = 0.81; y = 0.31;
  1676. w = 0.19; h = 0.08;
  1677. text = $STR_DISP_CANCEL;
  1678. };
  1679. };
  1680. };
  1681.  
  1682. //In-game pause screen.
  1683. class RscDisplayInterrupt: RscStandardDisplay
  1684. {
  1685. idd = IDD_INTERRUPT;
  1686.  
  1687. #define Interrupt_Y 0.2
  1688.  
  1689. class controls
  1690. {
  1691. class Title: RscTitle {text = $STR_DISP_INT_TITLE;};
  1692.  
  1693.  
  1694. //Continue the mission.
  1695. class B_Continue: RscButton
  1696. {
  1697. idc = IDC_CANCEL;
  1698. x = 0.35;
  1699. y = Interrupt_Y;
  1700. h = 0.08;
  1701. text = $STR_DISP_INT_CONTINUE;
  1702. default = 1;
  1703. };
  1704.  
  1705. //Manually save the mission.
  1706. class B_Save: B_Continue
  1707. {
  1708. idc = IDC_INT_SAVE;
  1709. y = Interrupt_Y + 0.08;
  1710. text = $STR_DISP_INT_SAVE;
  1711. default = 0;
  1712. };
  1713.  
  1714. //Load from the last manual save.
  1715. class B_Load: B_Continue
  1716. {
  1717. idc = IDC_INT_LOAD;
  1718. y = Interrupt_Y + 0.16;
  1719. text = $STR_DISP_INT_LOAD;
  1720. default = 0;
  1721. };
  1722.  
  1723. //Retry from the last autosave.
  1724. class B_Retry: B_Continue
  1725. {
  1726. idc = IDC_INT_RETRY;
  1727. y = Interrupt_Y + 0.24;
  1728. text = $STR_DISP_INT_RETRY;
  1729. default = 0;
  1730. };
  1731.  
  1732. //Open the options menu.
  1733. class B_Options: B_Continue
  1734. {
  1735. idc = IDC_INT_OPTIONS;
  1736. y = Interrupt_Y + 0.32;
  1737. text = $STR_DISP_INT_OPTIONS;
  1738. default = 0;
  1739. };
  1740.  
  1741. //Abort the mission.
  1742. class B_Abort: B_Continue
  1743. {
  1744. idc = IDC_INT_ABORT;
  1745. y = Interrupt_Y + 0.56;
  1746. text = $STR_DISP_INT_ABORT;
  1747. default = 0;
  1748. };
  1749.  
  1750. // Diary
  1751. class B_Diary: RscButton
  1752. {
  1753. idc = IDC_INT_DIARY;
  1754. x = 0.35;
  1755. y = MP_Interrupt_Y + 0.70;
  1756. h = 0.08;
  1757. text = $STR_ACTION_DIARY;
  1758. default = 0;
  1759. };
  1760.  
  1761. // Revert - open list of available saves
  1762. class B_Revert: RscButton
  1763. {
  1764. idc = IDC_INT_REVERT;
  1765. x = 0.35;
  1766. y = MP_Interrupt_Y + 0.78;
  1767. h = 0.08;
  1768. text = $STR_DISP_REVERT;
  1769. default = 0;
  1770. };
  1771. };
  1772. };
  1773.  
  1774. class RscDisplayInterruptRevert: RscStandardDisplay
  1775. {
  1776. idd = IDD_INTERRUPT_REVERT;
  1777. movingEnable = false;
  1778.  
  1779. class Controls
  1780. {
  1781. class Background : RscText
  1782. {
  1783. x = 0.60000;
  1784. y = 0.00000;
  1785. w = 0.40000;
  1786. h = 0.40000;
  1787.  
  1788. style = ST_HUD_BACKGROUND;
  1789. colorBackground[] = {0.1, 0.1, 0.1, 1};
  1790. };
  1791. class RevertTypes : RscListBox
  1792. {
  1793. idc = IDC_INT_REVERT_TYPE;
  1794. x = 0.61; y = 0.01;
  1795. w = 0.39; h = 0.29;
  1796. };
  1797. class ButtonOK : RscButton
  1798. {
  1799. idc = IDC_OK;
  1800. x = 0.61; y = 0.31;
  1801. w = 0.19; h = 0.08;
  1802. text = $STR_DISP_OK;
  1803. default = 1;
  1804. };
  1805. class ButtonCancel : RscButton
  1806. {
  1807. idc = IDC_CANCEL;
  1808. x = 0.81; y = 0.31;
  1809. w = 0.19; h = 0.08;
  1810. text = $STR_DISP_CANCEL;
  1811. };
  1812.  
  1813. class MissionTitle: RscText
  1814. {
  1815. idc = IDC_INT_MISSIONNAME;
  1816. x = 0.85; y = 0.40;
  1817. text = "";
  1818. };
  1819.  
  1820. class DifficultyTitle: RscText
  1821. {
  1822. idc = IDC_INT_DIFFICULTY;
  1823. x = 0.85; y = 0.50;
  1824. text = "";
  1825. };
  1826. };
  1827. };
  1828.  
  1829. class RscDisplaySelectSave: RscStandardDisplay
  1830. {
  1831. idd = IDD_SELECT_SAVE;
  1832. movingEnable = false;
  1833.  
  1834. class Controls
  1835. {
  1836. class Background : RscText
  1837. {
  1838. x = 0.60000;
  1839. y = 0.00000;
  1840. w = 0.40000;
  1841. h = 0.40000;
  1842.  
  1843. style = ST_HUD_BACKGROUND;
  1844. colorBackground[] = {0.1, 0.1, 0.1, 1};
  1845. };
  1846. class SaveTypes : RscListBox
  1847. {
  1848. idc = IDC_SELECT_SAVE_SLOTS;
  1849. x = 0.61; y = 0.01;
  1850. w = 0.39; h = 0.29;
  1851. };
  1852. class ButtonOK : RscButton
  1853. {
  1854. idc = IDC_OK;
  1855. x = 0.61; y = 0.31;
  1856. w = 0.19; h = 0.08;
  1857. text = $STR_DISP_OK;
  1858. default = 1;
  1859. };
  1860. class ButtonCancel : RscButton
  1861. {
  1862. idc = IDC_CANCEL;
  1863. x = 0.81; y = 0.31;
  1864. w = 0.19; h = 0.08;
  1865. text = $STR_DISP_CANCEL;
  1866. };
  1867. };
  1868. };
  1869.  
  1870. //In-game pause screen multiplayer.
  1871. class RscDisplayMPInterrupt: RscStandardDisplay
  1872. {
  1873. idd = IDD_INTERRUPT;
  1874.  
  1875. #define MP_Interrupt_Y 0.2
  1876.  
  1877. class controls
  1878. {
  1879. class Title: RscTitle
  1880. {
  1881. idc = IDC_INT_MISSION;
  1882. };
  1883.  
  1884. class B_Continue: RscButton
  1885. {
  1886. idc = IDC_CANCEL;
  1887. x = 0.35; y = MP_Interrupt_Y;
  1888. h = 0.08;
  1889. text = $STR_DISP_INT_CONTINUE;
  1890. default = 1;
  1891. };
  1892.  
  1893. class B_Players: B_Continue
  1894. {
  1895. idc = IDC_INT_PLAYERS;
  1896. y = MP_Interrupt_Y + 0.08;
  1897. text = $STR_MPTABLE_PLAYERS;
  1898. default = 0;
  1899. };
  1900.  
  1901. class B_Options: B_Continue
  1902. {
  1903. idc = IDC_INT_SETTINGS;
  1904. y = MP_Interrupt_Y + 0.16;
  1905. text = $STR_DISP_INT_OPTIONS;
  1906. default = 0;
  1907. };
  1908.  
  1909. //Manually save the mission.
  1910. class B_Save: B_Continue
  1911. {
  1912. idc = IDC_INT_SAVE;
  1913. y = Interrupt_Y + 0.24;
  1914. text = $STR_DISP_INT_SAVE;
  1915. default = 0;
  1916. };
  1917.  
  1918. //Load from the last manual save.
  1919. class B_Load: B_Continue
  1920. {
  1921. idc = IDC_INT_LOAD;
  1922. y = Interrupt_Y + 0.32;
  1923. text = $STR_DISP_INT_LOAD;
  1924. default = 0;
  1925. };
  1926.  
  1927. //Retry from the last autosave.
  1928. class B_Retry: B_Continue
  1929. {
  1930. idc = IDC_INT_RETRY;
  1931. y = Interrupt_Y + 0.40;
  1932. text = $STR_DISP_INT_RETRY;
  1933. default = 0;
  1934. };
  1935.  
  1936. class B_Abort: B_Continue
  1937. {
  1938. idc = IDC_INT_ABORT;
  1939. y = MP_Interrupt_Y + 0.56;
  1940. text = $STR_DISP_INT_ABORT;
  1941. default = 0;
  1942. };
  1943.  
  1944. // Diary
  1945. class B_Diary: RscButton
  1946. {
  1947. idc = IDC_INT_DIARY;
  1948. x = 0.35;
  1949. y = MP_Interrupt_Y + 0.70;
  1950. h = 0.08;
  1951. text = $STR_ACTION_DIARY;
  1952. default = 0;
  1953. };
  1954.  
  1955. class MissionTitle: RscText
  1956. {
  1957. idc = IDC_INT_MISSIONNAME;
  1958. x = 0.85; y = 0.40;
  1959. text = "";
  1960. };
  1961.  
  1962. class DifficultyTitle: RscText
  1963. {
  1964. idc = IDC_INT_DIFFICULTY;
  1965. x = 0.85; y = 0.60;
  1966. text = "";
  1967. };
  1968. };
  1969. };
  1970.  
  1971. //Debriefing screen.
  1972. class RscDisplayDebriefing: RscStandardDisplay
  1973. {
  1974. idd = IDD_DEBRIEFING;
  1975. statisticsLinks = false;
  1976.  
  1977. class controls
  1978. {
  1979. class Title: RscTitle {text = $STR_DISP_DEBRIEFING;};
  1980.  
  1981. class MissionTitle: RscText
  1982. {
  1983. x = 0.25; y = 0.05;
  1984. w = 0.5; h = 0.05;
  1985. idc = IDC_DEBRIEFING_TITLE;
  1986. };
  1987.  
  1988. class MissionResult: RscText
  1989. {
  1990. x = 0.25; y = 0.15;
  1991. w = 0.5; h = 0.05;
  1992. idc = IDC_DEBRIEFING_RESULT;
  1993. };
  1994.  
  1995. //Debriefing statistics.
  1996. class DebriefingInfo: RscHTML
  1997. {
  1998. idc = IDC_DEBRIEFING_INFO;
  1999. x = 0.25; y = 0.25;
  2000. w = 0.5; h = 0.2;
  2001. };
  2002.  
  2003. //Debriefing statistics.
  2004. class DebriefingText: RscHTML
  2005. {
  2006. idc = IDC_DEBRIEFING_DEBRIEFING;
  2007. x = 0.25; y = 0.5;
  2008. w = 0.5; h = 0.2;
  2009. };
  2010.  
  2011. //Debriefing statistics.
  2012. class DebriefingObjectives: RscHTML
  2013. {
  2014. idc = IDC_DEBRIEFING_OBJECTIVES;
  2015. x = 0.25; y = 0.75;
  2016. w = 0.5; h = 0.2;
  2017. };
  2018.  
  2019.  
  2020. //Mission debriefing.
  2021. class Right: RscHTML
  2022. {
  2023. idc = IDC_SINGLE_OVERVIEW;
  2024. x = 0.75; y = 0.05;
  2025. w = 0.4; h = 0.15;
  2026. };
  2027.  
  2028. class Left: RscHTML
  2029. {
  2030. idc = IDC_DEBRIEFING_STAT;
  2031. x = 0.25; y = 0.18;
  2032. w = 0.5; h = 0.1;
  2033. };
  2034.  
  2035.  
  2036. class PlayersTitle: RscText
  2037. {
  2038. idc = IDC_DEBRIEFING_PLAYERS_TITLE;
  2039. x = 0.7; y = 0.7;
  2040. w = 0.25;
  2041. text = $STR_DISP_SRVSETUP_PLAYERS;
  2042. style = ST_LEFT + ST_WITH_RECT;
  2043. };
  2044.  
  2045. //List of players in the server.
  2046. class Players: RscListBox
  2047. {
  2048. idc = IDC_DEBRIEFING_PLAYERS;
  2049. x = 0.7; y = 0.75;
  2050. w = 0.25; h = 0.125;
  2051. };
  2052.  
  2053. //Restart the mission.
  2054. class B_Restart: RscActiveText
  2055. {
  2056. idc = IDC_DEBRIEFING_RESTART;
  2057. x = 0.65; y = 0.9;
  2058. w = 0.15;
  2059. text = $STR_DISP_DEBRIEFING_RESTART;
  2060. };
  2061.  
  2062. //Continue.
  2063. class B_Continue: B_Restart
  2064. {
  2065. idc = IDC_CANCEL;
  2066. x = 0.8;
  2067. text = $STR_DISP_CONTINUE;
  2068. default = 1;
  2069. };
  2070. };
  2071. };
  2072.  
  2073. //Dead screen.
  2074. class RscDisplayMissionFail: RscStandardDisplay
  2075. {
  2076. idd = IDD_MISSION_END;
  2077. statisticsLinks = false;
  2078.  
  2079. #define MissionEnd_Y 0.2
  2080.  
  2081. class controls
  2082. {
  2083. class Title: RscTitle {text = $STR_DISP_DEBRIEFING;};
  2084.  
  2085. class MissionTitle: RscText
  2086. {
  2087. x = 0.25; y = 0.05;
  2088. w = 0.5; h = 0.05;
  2089. idc = IDC_DEBRIEFING_TITLE;
  2090. };
  2091.  
  2092. class MissionResult: RscText
  2093. {
  2094. x = 0.25; y = 0.15;
  2095. w = 0.5; h = 0.05;
  2096. idc = IDC_DEBRIEFING_RESULT;
  2097. };
  2098.  
  2099. //Debriefing statistics.
  2100. class DebriefingInfo: RscHTML
  2101. {
  2102. idc = IDC_DEBRIEFING_INFO;
  2103. x = 0.25; y = 0.25;
  2104. w = 0.5; h = 0.2;
  2105. };
  2106.  
  2107. //Debriefing statistics.
  2108. class DebriefingText: RscHTML
  2109. {
  2110. idc = IDC_DEBRIEFING_DEBRIEFING;
  2111. x = 0.25; y = 0.5;
  2112. w = 0.5; h = 0.2;
  2113. };
  2114.  
  2115. //Debriefing statistics.
  2116. class DebriefingObjectives: RscHTML
  2117. {
  2118. idc = IDC_DEBRIEFING_OBJECTIVES;
  2119. x = 0.25; y = 0.75;
  2120. w = 0.5; h = 0.2;
  2121. };
  2122.  
  2123.  
  2124. //Mission debriefing.
  2125. class Right: RscHTML
  2126. {
  2127. idc = IDC_SINGLE_OVERVIEW;
  2128. x = 0.75; y = 0.05;
  2129. w = 0.4; h = 0.15;
  2130. };
  2131.  
  2132. class Left: RscHTML
  2133. {
  2134. idc = IDC_DEBRIEFING_STAT;
  2135. x = 0.25; y = 0.18;
  2136. w = 0.5; h = 0.1;
  2137. };
  2138.  
  2139.  
  2140. class PlayersTitle: RscText
  2141. {
  2142. idc = IDC_DEBRIEFING_PLAYERS_TITLE;
  2143. x = 0.7; y = 0.7;
  2144. w = 0.25;
  2145. text = $STR_DISP_SRVSETUP_PLAYERS;
  2146. style = ST_LEFT + ST_WITH_RECT;
  2147. };
  2148.  
  2149. //List of players in the server.
  2150. class Players: RscListBox
  2151. {
  2152. idc = IDC_DEBRIEFING_PLAYERS;
  2153. x = 0.7; y = 0.75;
  2154. w = 0.25; h = 0.125;
  2155. };
  2156.  
  2157. //Load a previous save.
  2158. class B_Load: RscButton
  2159. {
  2160. idc = IDC_ME_LOAD;
  2161. x = 0.35;
  2162. y = MissionEnd_Y;
  2163. text = $STR_DISP_ME_LOAD;
  2164. };
  2165.  
  2166. //Retry the mission from the last autosave.
  2167. class B_Retry: RscButton
  2168. {
  2169. idc = IDC_ME_RETRY;
  2170. y = MissionEnd_Y + 0.1;
  2171. x = 0.35;
  2172. text = $STR_DISP_ME_RETRY;
  2173. default = 1;
  2174. };
  2175.  
  2176. //Restart the mission.
  2177. class B_Restart: RscButton
  2178. {
  2179. idc = IDC_ME_RESTART;
  2180. y = MissionEnd_Y + 0.2;
  2181. x = 0.35;
  2182. text = $STR_XBOX_PLAY_AGAIN;
  2183. };
  2184.  
  2185. //Abort the mission.
  2186. class B_Abort: RscButton
  2187. {
  2188. idc = IDC_CANCEL;
  2189. y = MissionEnd_Y + 0.3;
  2190. x = 0.35;
  2191. text = $STR_DISP_ME_ABORT;
  2192. };
  2193. };
  2194. };
  2195.  
  2196. //User profile selection screen.
  2197. class RscDisplayLogin: RscStandardDisplay
  2198. {
  2199. idd = IDD_LOGIN;
  2200.  
  2201. class controls
  2202. {
  2203. class Title: RscTitle {text = $STR_DISP_LOGIN_TITLE;};
  2204.  
  2205. class TextUser: RscText
  2206. {
  2207. x = 0.1; y = 0.15;
  2208. w = 0.45;
  2209. text = $STR_DISP_LOGIN_USER;
  2210. };
  2211.  
  2212. //Available profiles.
  2213. class ValueUser: RscListBox
  2214. {
  2215. idc = IDC_LOGIN_USER;
  2216. x = 0.1; y = 0.2;
  2217. w = 0.45; h = 0.5;
  2218. rows = 10;
  2219. };
  2220.  
  2221. //Create a new profile.
  2222. class B_New: RscActiveText
  2223. {
  2224. idc = IDC_LOGIN_NEW;
  2225. x = 0.65; y = 0.2;
  2226. w = 0.2;
  2227. text = $STR_DISP_NEW;
  2228. };
  2229.  
  2230. //Edit the selected profile.
  2231. class B_Edit: RscActiveText
  2232. {
  2233. idc = IDC_LOGIN_EDIT;
  2234. x = 0.65; y = 0.25;
  2235. w = 0.2;
  2236. text = $STR_DISP_EDIT;
  2237. };
  2238.  
  2239. //Delete the selected profile.
  2240. class B_Delete: RscActiveText
  2241. {
  2242. idc = IDC_LOGIN_DELETE;
  2243. x = 0.65; y = 0.3;
  2244. w = 0.2;
  2245. text = $STR_DISP_DELETE;
  2246. };
  2247.  
  2248. //Cancel back to the main menu.
  2249. class B_Cancel: RscActiveText
  2250. {
  2251. idc = IDC_CANCEL;
  2252. x = 0.6; y = 0.9;
  2253. w = 0.12;
  2254. text = $STR_DISP_CANCEL;
  2255. };
  2256.  
  2257. //Confirm the selected profile.
  2258. class B_OK: B_Cancel
  2259. {
  2260. idc = IDC_OK;
  2261. text = $STR_DISP_OK;
  2262. x = 0.85;
  2263. default = 1;
  2264. };
  2265. };
  2266. };
  2267.  
  2268. //User profile editing screen.
  2269. class RscDisplayNewUser: RscStandardDisplay
  2270. {
  2271. idd = IDD_NEW_USER;
  2272.  
  2273. class controls
  2274. {
  2275. class Title: RscTitle {idc = IDC_NEW_USER_TITLE;};
  2276.  
  2277. class TextName: RscText
  2278. {
  2279. x = 0.025; y = 0.25;
  2280. w = 0.45;
  2281. text = $STR_DISP_NEW_USER_NAME;
  2282. };
  2283.  
  2284. //Profile name field.
  2285. class ValueName: RscEdit
  2286. {
  2287. idc = IDC_NEW_USER_NAME;
  2288. x = 0.025; y = 0.3;
  2289. w = 0.45; h = 0.06;
  2290. };
  2291.  
  2292. //Assigned user ID number.
  2293. class ValueId: RscText
  2294. {
  2295. idc = IDC_NEW_USER_ID;
  2296. x = 0.025; y = 0.2;
  2297. w = 0.45;
  2298. };
  2299.  
  2300. class TextFace: RscText
  2301. {
  2302. x = 0.525; y = 0.2;
  2303. w = 0.45;
  2304. text = $STR_DISP_NEW_USER_FACE;
  2305. };
  2306.  
  2307. //Available avatar faces.
  2308. class ValueFace: RscListBox
  2309. {
  2310. idc = IDC_NEW_USER_FACE;
  2311. x = 0.525; y = 0.25;
  2312. w = 0.45; h = 0.18;
  2313. rows = 3;
  2314. };
  2315.  
  2316. class TextGlasses: RscText
  2317. {
  2318. x = 0.525; y = 0.45;
  2319. w = 0.45;
  2320. text = $STR_DISP_NEW_USER_GLASSES;
  2321. };
  2322.  
  2323. //Available avatar glasses.
  2324. class ValueGlasses: RscListBox
  2325. {
  2326. idc = IDC_NEW_USER_GLASSES;
  2327. x = 0.525; y = 0.5;
  2328. w = 0.45; h = 0.12;
  2329. rows = 2;
  2330. };
  2331.  
  2332. class TextSpeaker: RscText
  2333. {
  2334. x = 0.525; y = 0.65;
  2335. w = 0.45;
  2336. text = $STR_DISP_NEW_USER_SPEAKER;
  2337. };
  2338.  
  2339. //Available avatar voices.
  2340. class ValueSpeaker: RscListBox
  2341. {
  2342. idc = IDC_NEW_USER_SPEAKER;
  2343. x = 0.525; y = 0.7;
  2344. w = 0.45; h = 0.12;
  2345. rows = 2;
  2346. };
  2347.  
  2348. class TextPitch: RscText
  2349. {
  2350. x = 0.025; y = 0.5;
  2351. w = 0.45;
  2352. text = $STR_DISP_NEW_USER_PITCH;
  2353. };
  2354.  
  2355. //Avatar voice pitch.
  2356. class ValuePitch: RscSlider
  2357. {
  2358. idc = IDC_NEW_USER_PITCH;
  2359. x = 0.025; y = 0.55;
  2360. w = 0.45; h = 0.05;
  2361. };
  2362.  
  2363. class TextSquad: RscText
  2364. {
  2365. idc = IDC_NEW_USER_SQUAD_TEXT;
  2366. x = 0.025; y = 0.37;
  2367. w = 0.45;
  2368. text = $STR_DISP_NEW_USER_SQUAD;
  2369. };
  2370.  
  2371. //User's squad XML page.
  2372. class ValueSquad: RscEdit
  2373. {
  2374. idc = IDC_NEW_USER_SQUAD;
  2375. x = 0.025; y = 0.42;
  2376. w = 0.45; h = 0.06;
  2377. };
  2378.  
  2379. //Cancel to the main menu.
  2380. class B_Cancel: RscActiveText
  2381. {
  2382. idc = IDC_CANCEL;
  2383. text = $STR_DISP_CANCEL;
  2384. x = 0.70; y = 0.90;
  2385. w = 0.15;
  2386. };
  2387.  
  2388. //Confirm and save the profile.
  2389. class B_OK: B_Cancel
  2390. {
  2391. idc = IDC_OK;
  2392. text = $STR_DISP_OK;
  2393. x = 0.85;
  2394. default = 1;
  2395. };
  2396. };
  2397. };
  2398.  
  2399. //Mods selection screen. (Mod Launcher, see https://wiki.bistudio.com/index.php/Arma_2_Armod)
  2400. class RscDisplayModLauncher: RscStandardDisplay
  2401. {
  2402. idd = IDD_MOD_LAUNCHER;
  2403.  
  2404. class controls
  2405. {
  2406. class Title: RscTitle
  2407. {
  2408. text = "Expansions"; //$STR_DISP_MOD_LAUNCHER_TITLE;
  2409. };
  2410.  
  2411. //Available mods.
  2412. class ValueMods: RscListBox
  2413. {
  2414. idc = IDC_MOD_LAUNCHER_MODS;
  2415. x = 0.1; y = 0.2;
  2416. w = 0.45; h = 0.5;
  2417. rows = 10;
  2418.  
  2419. // icons
  2420. active = ProcTextGreen;
  2421. enabled = ProcTextWhite;
  2422. disabled = ProcTextRed;
  2423. };
  2424.  
  2425. //Selected mod's picture (if present)
  2426. class ModPicture: RscPicture
  2427. {
  2428. idc = IDC_MOD_LAUNCHER_PICTURE;
  2429. x = 0.6; y = 0.2;
  2430. w = 0.15; h = 0.2;
  2431. };
  2432.  
  2433. //Move the current mod up
  2434. class B_Up: RscActiveText
  2435. {
  2436. idc = IDC_MOD_LAUNCHER_UP;
  2437. x = 0.65; y = 0.4;
  2438. w = 0.2;
  2439. text = "Up"; //$STR_MOD_LAUNCHER_UP;
  2440. };
  2441.  
  2442. //Move the current mod down
  2443. class B_Down: RscActiveText
  2444. {
  2445. idc = IDC_MOD_LAUNCHER_DOWN;
  2446. x = 0.65; y = 0.45;
  2447. w = 0.2;
  2448. text = "Down"; //$STR_MOD_LAUNCHER_DOWN;
  2449. };
  2450.  
  2451. //Disable/Enable the selected profile.
  2452. class B_DisableEnable: RscActiveText
  2453. {
  2454. idc = IDC_MOD_LAUNCHER_DISABLE;
  2455. x = 0.65; y = 0.50;
  2456. w = 0.2;
  2457. text = "Disable"; //$STR_MOD_LAUNCHER_DISABLE;
  2458. };
  2459.  
  2460. //Cancel back to the main menu.
  2461. class B_Cancel: RscActiveText
  2462. {
  2463. idc = IDC_CANCEL;
  2464. x = 0.45; y = 0.9;
  2465. w = 0.12;
  2466. text = $STR_DISP_CANCEL;
  2467. };
  2468.  
  2469. //Current selected Mod related action (or default)
  2470. class B_ModAction: RscActiveText
  2471. {
  2472. idc = IDC_MOD_LAUNCHER_ACTION;
  2473. x = 0.65; y = 0.9;
  2474. w = 0.12;
  2475. text = "Mod Info"; //$STR_MOD_LAUNCHER_ACTION;
  2476. };
  2477.  
  2478. //Confirm the selected profile.
  2479. class B_OK: B_Cancel
  2480. {
  2481. idc = IDC_OK;
  2482. text = $STR_DISP_OK;
  2483. x = 0.85;
  2484. default = 1;
  2485. };
  2486. };
  2487. };
  2488.  
  2489. //Main options screen.
  2490. class RscDisplayOptions
  2491. {
  2492. idd = IDD_OPTIONS;
  2493.  
  2494. movingEnable = true;
  2495. enableDisplay = true;
  2496.  
  2497. #define Display_Options_Y 0.2
  2498.  
  2499. class controls
  2500. {
  2501. class Title: RscTitle {text = $STR_DISP_OPTIONS_TITLE;};
  2502.  
  2503. //Open the video options.
  2504. class Video: RscButton
  2505. {
  2506. idc = IDC_OPTIONS_VIDEO;
  2507. style = ST_CENTER;
  2508. x = 0.35; y = Display_Options_Y;
  2509. h = 0.05; w = 0.3;
  2510. text = $STR_DISP_OPTIONS_VIDEO;
  2511. };
  2512.  
  2513. //Open the audio options.
  2514. class Audio: Video
  2515. {
  2516. idc = IDC_OPTIONS_AUDIO;
  2517. y = Display_Options_Y + 0.1;
  2518. text = $STR_DISP_OPTIONS_AUDIO;
  2519. };
  2520.  
  2521. //Open the input options.
  2522. class Configure: Video
  2523. {
  2524. idc = IDC_OPTIONS_CONFIGURE;
  2525. y = Display_Options_Y + 0.2;
  2526. text = $STR_DISP_OPTIONS_CONFIGURE;
  2527. };
  2528.  
  2529. //Open the difficulty options.
  2530. class GameOptions: Video
  2531. {
  2532. idc = IDC_OPTIONS_GAMEOPTIONS;
  2533. y = Display_Options_Y + 0.3;
  2534. text = $STR_DISP_OPTIONS_GAME_OPTIONS;
  2535. };
  2536.  
  2537. //Watch the credits.
  2538. class B_Credits: RscActiveText
  2539. {
  2540. idc = IDC_OPTIONS_CREDITS;
  2541. x = 0.05; y = 0.9;
  2542. w = 0.15;
  2543. text = $STR_DISP_MAIN_CREDITS;
  2544. };
  2545.  
  2546. //Close the options screen.
  2547. class B_Close: B_Credits
  2548. {
  2549. idc = IDC_CANCEL;
  2550. x = 0.85;
  2551. text = $STR_DISP_CLOSE;
  2552. default = 1;
  2553. };
  2554. };
  2555. };
  2556.  
  2557. class RscDisplayOptionsInGame
  2558. {
  2559. idd = IDD_OPTIONS;
  2560.  
  2561. movingEnable = true;
  2562. enableDisplay = true;
  2563.  
  2564. #define Display_Options_Y 0.2
  2565.  
  2566. class controls
  2567. {
  2568. class Title: RscTitle {text = $STR_DISP_OPTIONS_TITLE;};
  2569.  
  2570. //Open the video options.
  2571. class Video: RscButton
  2572. {
  2573. idc = IDC_OPTIONS_VIDEO;
  2574. style = ST_CENTER;
  2575. x = 0.35; y = Display_Options_Y;
  2576. h = 0.05;
  2577. text = $STR_DISP_OPTIONS_VIDEO;
  2578. };
  2579.  
  2580. //Open the audio options.
  2581. class Audio: Video
  2582. {
  2583. idc = IDC_OPTIONS_AUDIO;
  2584. y = Display_Options_Y + 0.1;
  2585. text = $STR_DISP_OPTIONS_AUDIO;
  2586. };
  2587.  
  2588. //Open the input options.
  2589. class Configure: Video
  2590. {
  2591. idc = IDC_OPTIONS_CONFIGURE;
  2592. y = Display_Options_Y + 0.2;
  2593. text = $STR_DISP_OPTIONS_CONFIGURE;
  2594. };
  2595.  
  2596. //Open the difficulty options.
  2597. class GameOptions: Video
  2598. {
  2599. idc = IDC_OPTIONS_GAMEOPTIONS;
  2600. y = Display_Options_Y + 0.3;
  2601. text = $STR_DISP_OPTIONS_GAME_OPTIONS;
  2602. };
  2603.  
  2604. //Watch the credits.
  2605. class B_Credits: RscActiveText
  2606. {
  2607. idc = IDC_OPTIONS_CREDITS;
  2608. x = 0.05; y = 0.9;
  2609. w = 0.15;
  2610. text = $STR_DISP_MAIN_CREDITS;
  2611. };
  2612.  
  2613. //Close the options screen.
  2614. class B_Close: B_Credits
  2615. {
  2616. idc = IDC_CANCEL;
  2617. x = 0.85;
  2618. text = $STR_DISP_CLOSE;
  2619. default = 1;
  2620. };
  2621. };
  2622. };
  2623.  
  2624. //Video options screen.
  2625. class RscDisplayOptionsVideo
  2626. {
  2627. idd = IDD_OPTIONS_VIDEO;
  2628.  
  2629. movingEnable = true;
  2630. enableDisplay = true;
  2631.  
  2632. class controls
  2633. {
  2634. class Title: RscTitle {text = $STR_DISP_OPTIONS_VIDEO;};
  2635.  
  2636. __EXEC(_xInit = 0.019; _yInit = 0.135; _xSpacing = 0.195;)
  2637.  
  2638. //Select the UI size
  2639. class TextIGUISize: RscText
  2640. {
  2641. x = __EVAL(_xInit + (0 * _xSpacing));
  2642. y = __EVAL(_yInit);
  2643. w = 0.20;
  2644. text = "IGUI size";
  2645. };
  2646. class ValueIGUISize: RscListBox
  2647. {
  2648. idc = IDC_OPTIONS_IGUISIZE;
  2649. x = __EVAL(_xInit + (0 * _xSpacing));
  2650. y = __EVAL(_yInit + 0.045);
  2651. w = 0.185;
  2652. h = 0.21;
  2653. };
  2654.  
  2655. //Select the screen resolution.
  2656. class TextResolution: TextIGUISize
  2657. {
  2658. x = __EVAL(_xInit + (0 * _xSpacing));
  2659. text = $STR_DISP_OPT_RESOLUTION;
  2660. };
  2661. class ValueResolution: ValueIGUISize
  2662. {
  2663. idc = IDC_OPTIONS_RESOLUTION;
  2664. x = __EVAL(_xInit + (0 * _xSpacing));
  2665. };
  2666.  
  2667. //Select the aspect ratio.
  2668. class TextAspectRatio: TextIGUISize
  2669. {
  2670. x = __EVAL(_xInit + (1 * _xSpacing));
  2671. text = $STR_DISP_OPT_ASPECT_RATIO;
  2672. };
  2673. class ValueAspectRatio: ValueIGUISize
  2674. {
  2675. idc = IDC_ASPECT_RATIO;
  2676. x = __EVAL(_xInit + (1 * _xSpacing));
  2677. };
  2678.  
  2679. //Select the screen refresh rate.
  2680. class TextRefresh: TextIGUISize
  2681. {
  2682. x = __EVAL(_xInit + (2 * _xSpacing));
  2683. text = $STR_DISP_OPT_REFRESH;
  2684. };
  2685.  
  2686. class ValueRefresh: ValueIGUISize
  2687. {
  2688. idc = IDC_OPTIONS_REFRESH;
  2689. x = __EVAL(_xInit + (2 * _xSpacing));
  2690. w = 0.145;
  2691. };
  2692.  
  2693. __EXEC(_xInit = 0.019; _yInit = 0.415; _xSpacing = 0.195; _ySpacing = 0.20)
  2694.  
  2695. //Select the objects detail.
  2696. class TextObjectsDetail: RscText
  2697. {
  2698. x = __EVAL(_xInit + (0 * _xSpacing));
  2699. y = __EVAL(_yInit + (0 * _ySpacing));
  2700. w = 0.185;
  2701. sizeEx = Size_Text_Small;
  2702. text = $STR_DISP_OPT_OBJECTS_DETAIL;
  2703. };
  2704. class ValueObjectsDetail: RscListBox
  2705. {
  2706. idc = IDC_OBJECTS_DETAIL;
  2707. x = __EVAL(_xInit + (0 * _xSpacing)); y = __EVAL(_yInit + (0 * _ySpacing) + 0.045);
  2708. w = 0.185; h = 0.135;
  2709. sizeEx = Size_Text_Small;
  2710. rows = 5;
  2711. };
  2712.  
  2713. //Select the texture detail.
  2714. class TextTextureDetail: TextObjectsDetail
  2715. {
  2716. x = __EVAL(_xInit + (1 * _xSpacing)); y = __EVAL(_yInit + (0 * _ySpacing));
  2717. sizeEx = Size_Text_Small;
  2718. text = $STR_DISP_OPT_TEXTURE_DETAIL;
  2719. };
  2720. class ValueTextureDetail: ValueObjectsDetail
  2721. {
  2722. idc = IDC_TEXTURE_DETAIL;
  2723. sizeEx = Size_Text_Small;
  2724. x = __EVAL(_xInit + (1 * _xSpacing)); y = __EVAL(_yInit + (0 * _ySpacing) + 0.045);
  2725. };
  2726.  
  2727. //Select the quality preference.
  2728. class TextQualityPreference: TextObjectsDetail
  2729. {
  2730. x = __EVAL(_xInit + (2 * _xSpacing)); y = __EVAL(_yInit + (0 * _ySpacing));
  2731. sizeEx = Size_Text_Small;
  2732. text = $STR_DISP_OPT_QUALITY_PREFERENCE;
  2733. };
  2734. class ValueQualityPreference: ValueObjectsDetail
  2735. {
  2736. idc = IDC_QUALITY_PREFERENCE;
  2737. x = __EVAL(_xInit + (2 * _xSpacing)); y = __EVAL(_yInit + (0 * _ySpacing) + 0.045);
  2738. sizeEx = Size_Text_Small;
  2739. };
  2740.  
  2741. //Select the shading detail.
  2742. class TextShadingDetail: TextObjectsDetail
  2743. {
  2744. x = __EVAL(_xInit + (0 * _xSpacing)); y = __EVAL(_yInit + (1 * _ySpacing));
  2745. text = $STR_DISP_OPT_SHADING_DETAIL;
  2746. sizeEx = Size_Text_Small;
  2747. };
  2748. class ValueShadingDetail: ValueObjectsDetail
  2749. {
  2750. idc = IDC_SHADING_DETAIL;
  2751. x = __EVAL(_xInit + (0 * _xSpacing)); y = __EVAL(_yInit + (1 * _ySpacing) + 0.045);
  2752. sizeEx = Size_Text_Small;
  2753. };
  2754.  
  2755. //Select the terrain detail.
  2756. class TextTerrain: TextObjectsDetail
  2757. {
  2758. x = __EVAL(_xInit + (1 * _xSpacing)); y = __EVAL(_yInit + (1 * _ySpacing));
  2759. text = $STR_DISP_OPT_TERRAIN;
  2760. sizeEx = Size_Text_Small;
  2761. };
  2762. class ValueTerrain: ValueObjectsDetail
  2763. {
  2764. idc = IDC_OPTIONS_TERRAIN;
  2765. x = __EVAL(_xInit + (1 * _xSpacing)); y = __EVAL(_yInit + (1 * _ySpacing) + 0.045);
  2766. sizeEx = Size_Text_Small;
  2767. };
  2768.  
  2769. //Select the shadow detail.
  2770. class TextShadowDetail: TextObjectsDetail
  2771. {
  2772. x = __EVAL(_xInit + (2 * _xSpacing)); y = __EVAL(_yInit + (1 * _ySpacing));
  2773. text = $STR_DISP_OPT_SHADOW_DETAIL;
  2774. sizeEx = Size_Text_Small;
  2775. };
  2776. class ValueShadowDetail: ValueObjectsDetail
  2777. {
  2778. idc = IDC_SHADOW_DETAIL;
  2779. x = __EVAL(_xInit + (2 * _xSpacing)); y = __EVAL(_yInit + (1 * _ySpacing) + 0.045);
  2780. sizeEx = Size_Text_Small;
  2781. };
  2782.  
  2783. //Select the HDR Quality .
  2784. class TextHDRDetail: TextObjectsDetail
  2785. {
  2786. x = __EVAL(_xInit + (3 * _xSpacing));
  2787. y = __EVAL(_yInit + (0 * _ySpacing));
  2788. text = $STR_DISP_OPT_HDR_DETAIL;
  2789. sizeEx = Size_Text_Small;
  2790. };
  2791. class ValueHDRDetail: ValueObjectsDetail
  2792. {
  2793. idc = IDC_HDR_DETAIL;
  2794. x = __EVAL(_xInit + (3 * _xSpacing));
  2795. y = __EVAL(_yInit + (0 * _ySpacing) + 0.045);
  2796. sizeEx = Size_Text_Small;
  2797. };
  2798.  
  2799.  
  2800. //Select the Anisotropic Filtering Quality.
  2801. class TextAnisotropicDetail: TextObjectsDetail
  2802. {
  2803. x = __EVAL(_xInit + (3 * _xSpacing));
  2804. y = __EVAL(_yInit + (1 * _ySpacing));
  2805. text = $STR_DISP_OPT_ANISO_DETAIL;
  2806. sizeEx = Size_Text_Small;
  2807. };
  2808. class ValueAnisotropicDetail: ValueObjectsDetail
  2809. {
  2810. idc = IDC_ANISO_DETAIL;
  2811. x = __EVAL(_xInit + (3 * _xSpacing));
  2812. y = __EVAL(_yInit + (1 * _ySpacing) + 0.045);
  2813. sizeEx = Size_Text_Small;
  2814. };
  2815.  
  2816. //Select the Reflections Quality.
  2817. class TextPostprocessEffects: TextObjectsDetail
  2818. {
  2819. x = __EVAL(_xInit + (4 * _xSpacing));
  2820. y = __EVAL(_yInit + (0 * _ySpacing));
  2821. text = $STR_DISP_OPT_POSTPROCESS_EFFECTS;
  2822. sizeEx = Size_Text_Small;
  2823. };
  2824. class ValuePostprocessEffects: ValueObjectsDetail
  2825. {
  2826. idc = IDC_POSTPROCESS_EFFECTS;
  2827. x = __EVAL(_xInit + (4 * _xSpacing));
  2828. y = __EVAL(_yInit + (0 * _ySpacing) + 0.045);
  2829. sizeEx = Size_Text_Small;
  2830. };
  2831.  
  2832. //Select the Antialiasing Quality.
  2833. class TextAntialiasing: TextObjectsDetail
  2834. {
  2835. x = __EVAL(_xInit + (4 * _xSpacing));
  2836. y = __EVAL(_yInit + (1 * _ySpacing));
  2837. text = $STR_DISP_OPT_FSAA_DETAIL;
  2838. sizeEx = Size_Text_Small;
  2839. };
  2840. class ValueAntialiasing: ValueObjectsDetail
  2841. {
  2842. idc = IDC_FSAA_DETAIL;
  2843. x = __EVAL(_xInit + (4 * _xSpacing));
  2844. y = __EVAL(_yInit + (1 * _ySpacing) + 0.045);
  2845. sizeEx = Size_Text_Small;
  2846. };
  2847.  
  2848. #define Display_Options_Video_YSpacing 0.03
  2849.  
  2850. //Enable or disable object w-buffer.
  2851. class TextWBuffer: RscTextSmall
  2852. {
  2853. x = __EVAL(_xInit + (0 * _xSpacing));
  2854. y = __EVAL(_yInit + (2 * _ySpacing));
  2855. w = 0.3;
  2856. text = $STR_DISP_OPT_WBUFFER;
  2857. };
  2858. class ValueWBuffer: RscActiveText
  2859. {
  2860. idc = IDC_OPTIONS_WBUFFER;
  2861. x = __EVAL(_xInit + (0 * _xSpacing)) + 0.16;
  2862. y = __EVAL(_yInit + (2 * _ySpacing));
  2863. w = 0.15; h = 0.03;
  2864. sizeEx = Size_Text_Small;
  2865. };
  2866.  
  2867. class TextBrightness: RscText
  2868. {
  2869. x = 0.56; y = 0.135;
  2870. w = 0.3;
  2871. sizeEx = Size_Text_Small;
  2872. text = $STR_DISP_OPT_BRIGHT;
  2873. };
  2874. //The current brightness value.
  2875. class ValueBrightness: RscText
  2876. {
  2877. idc = IDC_OPTIONS_BRIGHT_VALUE;
  2878. x = 0.86; y = 0.135;
  2879. w = 0.10;
  2880. sizeEx = Size_Text_Small;
  2881. };
  2882. //Change the brightness.
  2883. class SliderBrightness: RscSlider
  2884. {
  2885. idc = IDC_OPTIONS_BRIGHT_SLIDER;
  2886. x = 0.56; y = 0.19;
  2887. w = 0.415;
  2888. };
  2889.  
  2890. class TextGamma: RscText
  2891. {
  2892. x = 0.56; y = 0.225;
  2893. w = 0.3;
  2894. sizeEx = Size_Text_Small;
  2895. text = $STR_DISP_OPT_GAMMA;
  2896. };
  2897. //The current gamma level.
  2898. class ValueGamma: RscText
  2899. {
  2900. idc = IDC_OPTIONS_GAMMA_VALUE;
  2901. x = 0.86; y = 0.225;
  2902. w = 0.1;
  2903. sizeEx = Size_Text_Small;
  2904. };
  2905. //Change the gamma level.
  2906. class SliderGamma: RscSlider
  2907. {
  2908. idc = IDC_OPTIONS_GAMMA_SLIDER;
  2909. x = 0.56; y = 0.28;
  2910. w = 0.415;
  2911. };
  2912.  
  2913. class TextVisibility: RscText
  2914. {
  2915. x = 0.56; y = 0.315;
  2916. w = 0.3;
  2917. sizeEx = Size_Text_Small;
  2918. text = $STR_DISP_OPT_VISIBILITY;
  2919. };
  2920. //The current viewing distance.
  2921. class ValueVisibility: RscText
  2922. {
  2923. idc = IDC_OPTIONS_VISIBILITY_VALUE;
  2924. x = 0.86; y = 0.315;
  2925. w = 0.1;
  2926. sizeEx = Size_Text_Small;
  2927. };
  2928. //Change the viewing distance.
  2929. class SliderVisibility: RscSlider
  2930. {
  2931. idc = IDC_OPTIONS_VISIBILITY_SLIDER;
  2932. x = 0.56; y = 0.37;
  2933. w = 0.415;
  2934. };
  2935.  
  2936. //Cancel back to the main options screen.
  2937. class B_Cancel: RscActiveText
  2938. {
  2939. idc = IDC_CANCEL;
  2940. x = 0.6; y = 0.9;
  2941. w = 0.13;
  2942. text = $STR_DISP_CANCEL;
  2943. };
  2944.  
  2945. //Confirm the video options.
  2946. class B_OK: B_Cancel
  2947. {
  2948. idc = IDC_OK;
  2949. text = $STR_DISP_OK;
  2950. x = 0.85;
  2951. default = 1;
  2952. };
  2953.  
  2954. //Restore all setting to their default.
  2955. class B_Default: RscActiveText
  2956. {
  2957. idc = IDC_OPTIONS_VIDEO_DEFAULT;
  2958. x = 0.05; y = 0.9;
  2959. w = 0.15;
  2960. text = $STR_DISP_DEFAULT;
  2961. };
  2962. };
  2963. };
  2964.  
  2965. //Audio options screen.
  2966. class RscDisplayOptionsAudio
  2967. {
  2968. idd = IDD_OPTIONS_AUDIO;
  2969.  
  2970. movingEnable = true;
  2971. enableDisplay = true;
  2972.  
  2973. #define Display_Options_Audio_Y 0.6
  2974. #define Display_Options_Audio_YSpacing 0.09
  2975.  
  2976. class controls
  2977. {
  2978. class Title: RscTitle {text = $STR_DISP_OPTIONS_AUDIO;};
  2979.  
  2980. class TextEffects: RscText
  2981. {
  2982. x = 0.35; y = 0.2;
  2983. w = 0.3;
  2984. text = $STR_DISP_OPT_EFFECTS;
  2985. };
  2986.  
  2987. //The current volume for sound effects.
  2988. class ValueEffects: RscText
  2989. {
  2990. idc = IDC_OPTIONS_EFFECTS_VALUE;
  2991. x = 0.5; y = 0.2;
  2992. };
  2993.  
  2994. //Change the volume for sound effects.
  2995. class SliderEffects: RscSlider
  2996. {
  2997. idc = IDC_OPTIONS_EFFECTS_SLIDER;
  2998. x = 0.2; y = 0.25;
  2999. w = 0.6;
  3000. };
  3001.  
  3002. class TextVoices: RscText
  3003. {
  3004. x = 0.35; y = 0.3;
  3005. w = 0.3;
  3006. text = $STR_DISP_OPT_VOICES;
  3007. };
  3008.  
  3009. //The current volume for voices.
  3010. class ValueVoices: RscText
  3011. {
  3012. idc = IDC_OPTIONS_VOICES_VALUE;
  3013. x = 0.5; y = 0.3;
  3014. };
  3015.  
  3016. //Change the volume for voices.
  3017. class SliderVoices: RscSlider
  3018. {
  3019. idc = IDC_OPTIONS_VOICES_SLIDER;
  3020. x = 0.2; y = 0.35;
  3021. w = 0.6;
  3022. };
  3023.  
  3024. //The current volume for voices.
  3025. class ValueVON: RscText
  3026. {
  3027. idc = IDC_OPTIONS_VON_VALUE;
  3028. x = 0.5; y = 0.7;
  3029. };
  3030.  
  3031. //Change the volume for voices.
  3032. class SliderVON: RscSlider
  3033. {
  3034. idc = IDC_OPTIONS_VON_SLIDER;
  3035. x = 0.2; y = 0.75;
  3036. w = 0.6;
  3037. };
  3038.  
  3039.  
  3040. //The current volume for voices.
  3041. class ValueSamplesCount: RscText
  3042. {
  3043. idc = IDC_OPTIONS_SAMPLES_VALUE;
  3044. x = 0.5; y = 0.7;
  3045. };
  3046.  
  3047. //Change the volume for voices.
  3048. class SliderSamplesCount: RscSlider
  3049. {
  3050. idc = IDC_OPTIONS_SAMPLES_SLIDER;
  3051. x = 0.2; y = 0.85;
  3052. w = 0.6;
  3053. };
  3054.  
  3055. class TextMusic: RscText
  3056. {
  3057. x = 0.35; y = 0.4;
  3058. w = 0.3;
  3059. text = $STR_DISP_OPT_MUSIC;
  3060. };
  3061.  
  3062. //The current volume for music.
  3063. class ValueMusic: RscText
  3064. {
  3065. idc = IDC_OPTIONS_MUSIC_VALUE;
  3066. x = 0.5; y = 0.4;
  3067. };
  3068.  
  3069. //Change the volume for music.
  3070. class SliderMusic: RscSlider
  3071. {
  3072. idc = IDC_OPTIONS_MUSIC_SLIDER;
  3073. x = 0.2; y = 0.45;
  3074. w = 0.6;
  3075. };
  3076.  
  3077. class TextMicSensitivity: RscText
  3078. {
  3079. x = 0.159803; y = (0.420549 + 3*0.069854);
  3080. text = "Mic. sens.:";
  3081. };
  3082.  
  3083. // microphone sensitivity
  3084. class SliderMicSensitivity: RscSlider
  3085. {
  3086. idc = IDC_OPTIONS_MIC_SENS_SLIDER;
  3087. x = 0.2; y = (0.420549 + 3*0.069854);
  3088. w = 0.4;
  3089. };
  3090.  
  3091. // auto adjust mic. sensitivity
  3092. class AutoAdjustMicSensitivity: RscActiveText
  3093. {
  3094. idc = IDC_OPTIONS_MIC_ADJUST;
  3095. x = 0.3; y = 0.7;
  3096. w = 0.6;
  3097. text = "Auto adjust";
  3098. };
  3099.  
  3100. class TextHWAcc: RscText
  3101. {
  3102. x = 0.22; y = Display_Options_Audio_Y;
  3103. w = 0.40;
  3104. text = $STR_DISP_OPT_HWACC;
  3105. };
  3106.  
  3107. //Enable or disable hardware accelerated audio.
  3108. class ValueHWAcc: RscListBox
  3109. {
  3110. idc = IDC_OPTIONS_HWACC;
  3111. x = 0.62; y = Display_Options_Audio_Y;
  3112. w = 0.15;
  3113. h = 0.08;
  3114. };
  3115.  
  3116. class TextEAX: TextHWAcc
  3117. {
  3118. y = Display_Options_Audio_Y + (1 * Display_Options_Audio_YSpacing);
  3119. text = $STR_DISP_OPT_EAX;
  3120. };
  3121.  
  3122. //Enable or disable EAX sound.
  3123. class ValueEAX: ValueHWAcc
  3124. {
  3125. idc = IDC_OPTIONS_EAX;
  3126. y = Display_Options_Audio_Y + (1 * Display_Options_Audio_YSpacing);
  3127. };
  3128.  
  3129. class TextPlayerVoice: TextHWAcc
  3130. {
  3131. y = Display_Options_Audio_Y + (2 * Display_Options_Audio_YSpacing);
  3132. text = $STR_DISP_OPT_PLAYER_VOICE;
  3133. };
  3134.  
  3135. //Enable or disable player voice-over in dialogs.
  3136. class ValuePlayerVoice: ValueHWAcc
  3137. {
  3138. idc = IDC_OPTIONS_SINGLE_VOICE;// IDC_OPTIONS_PLAYER_VOICE;
  3139. y = Display_Options_Audio_Y + (2 * Display_Options_Audio_YSpacing);
  3140. };
  3141.  
  3142. //Cancel back to the main options screen.
  3143. class B_Cancel: RscActiveText
  3144. {
  3145. idc = IDC_CANCEL;
  3146. x = 0.6; y = 0.9;
  3147. w = 0.15;
  3148. text = $STR_DISP_CANCEL;
  3149. };
  3150.  
  3151. //Confirm the audio options and exit.
  3152. class B_OK: B_Cancel
  3153. {
  3154. idc = IDC_OK;
  3155. text = $STR_DISP_OK;
  3156. x = 0.85;
  3157. default = 1;
  3158. };
  3159.  
  3160. //Restore all setting to their default.
  3161. class B_Default: RscActiveText
  3162. {
  3163. idc = IDC_OPTIONS_AUDIO_DEFAULT;
  3164. x = 0.05; y = 0.9;
  3165. w = 0.15;
  3166. text = $STR_DISP_DEFAULT;
  3167. };
  3168. };
  3169. };
  3170.  
  3171. class RscDisplayMicSensitivityOptions
  3172. {
  3173. idd = IDD_OPTIONS_AUDIO_ADJUST_MIC;
  3174.  
  3175. movingEnable = true;
  3176. enableDisplay = true;
  3177.  
  3178. class controls
  3179. {
  3180. class Title: RscTitle {text = "Microphone sensitivity adjustment";};
  3181.  
  3182. class B_Start: RscActiveText
  3183. {
  3184. idc = IDC_OPTIONS_MIC_START_ADJUST;
  3185. x = 0.1; y = 0.15;
  3186. w = 0.15;
  3187. text = "Start";
  3188. };
  3189.  
  3190. class TextProgress: RscText
  3191. {
  3192. x = 0.25; y = 0.15;
  3193. w = 0.3;
  3194. text = "Done:";
  3195. };
  3196.  
  3197. class TextProgressVal: RscText
  3198. {
  3199. x = 0.30; y = 0.15;
  3200. w = 0.3;
  3201. text = " 0%";
  3202. idc = IDC_OPTIONS_MIC_PROGRESS;
  3203. };
  3204.  
  3205. //Cancel back to the main options screen.
  3206. class B_Cancel: RscActiveText
  3207. {
  3208. idc = IDC_CANCEL;
  3209. x = 0.1; y = 0.2;
  3210. w = 0.15;
  3211. text = $STR_DISP_CANCEL;
  3212. };
  3213.  
  3214. //Confirm the audio options and exit.
  3215. class B_OK: B_Cancel
  3216. {
  3217. idc = IDC_OK;
  3218. text = $STR_DISP_OK;
  3219. x = 0.2; y = 0.2;
  3220. default = 1;
  3221. };
  3222. };
  3223. };
  3224.  
  3225. //Difficulty options screen.
  3226. class RscDisplayGameOptions
  3227. {
  3228. idd = IDD_GAMEOPTIONS;
  3229.  
  3230. movingEnable = true;
  3231. enableDisplay = true;
  3232.  
  3233. class controls
  3234. {
  3235. class Title: RscTitle {text = $STR_DISP_OPTIONS_GAME_OPTIONS;};
  3236.  
  3237. class TextSubtitles: RscText
  3238. {
  3239. x = 0.025; y = 0.2;
  3240. w = 0.95 * 0.6;
  3241. text = $STR_OPT_SUBTITLES;
  3242. };
  3243.  
  3244. class RadioSubtitles: TextSubtitles
  3245. {
  3246. y = 0.3;
  3247. text = $STR_OPT_RADIO_SUBTITLES;
  3248. };
  3249.  
  3250. class TextGore: TextSubtitles
  3251. {
  3252. idc = IDC_OPTIONS_BLOOD_TEXT;
  3253. y = 0.4;
  3254. text = $STR_DISP_OPT_BLOOD;
  3255. };
  3256.  
  3257. //Select the screen resolution.
  3258. class TextLanguage: TextSubtitles
  3259. {
  3260. y = 0.5;
  3261. text = $STR_DISP_OPT_LANGUAGE;
  3262. };
  3263.  
  3264. //Setting of the floating zone
  3265. class TextFloatingZone: RscText
  3266. {
  3267. x = 0.6;
  3268. y = 0.6;
  3269. w = 0.15;
  3270. text = $STR_DISP_CONF_FLOATING_ZONE;
  3271. };
  3272.  
  3273. //Enable or disable hardware accelerated audio.
  3274. class Subtitles: RscListBox
  3275. {
  3276. idc = IDC_OPTIONS_SUBTITLES;
  3277. x = 0.6;
  3278. y = 0.2;
  3279. w = 0.15;
  3280. h = 0.08;
  3281. };
  3282.  
  3283. class Radio: Subtitles
  3284. {
  3285. idc = IDC_OPTIONS_RADIO;
  3286. x = 0.6;
  3287. y = 0.3;
  3288. w = 0.15;
  3289. h = 0.08;
  3290. };
  3291.  
  3292. class ValueBlood: Subtitles
  3293. {
  3294. idc = IDC_OPTIONS_BLOOD;
  3295. x = 0.6;
  3296. y = 0.4;
  3297. h = 0.12;
  3298. };
  3299.  
  3300. class ValueLanguage: Subtitles
  3301. {
  3302. idc = IDC_OPTIONS_LANGUAGE;
  3303. x = 0.6;
  3304. y = 0.5;
  3305. h = 0.12;
  3306. };
  3307.  
  3308. //Change the setting of the floating zone
  3309. //(area within you can move cursor without rotating view)
  3310. class ValueFloatingZone: RscSlider
  3311. {
  3312. idc = IDC_CONFIG_FLOATING_ZONE;
  3313. x = 0.6;
  3314. y = 0.6;
  3315. w = 0.35;
  3316. h = 0.03;
  3317. };
  3318.  
  3319. //Setting of the head bob (user reduction of the effect)
  3320. class TextHeadBob: RscText
  3321. {
  3322. x = 0.6;
  3323. y = 0.7;
  3324. w = 0.15;
  3325. text = $STR_DISP_OPT_HEADBOB;
  3326. };
  3327. class ValueHeadBob: RscSlider
  3328. {
  3329. idc = IDC_OPTIONS_HEADBOB;
  3330. x = 0.6;
  3331. y = 0.7;
  3332. w = 0.35;
  3333. h = 0.03;
  3334. };
  3335.  
  3336. //opens difficulty settings
  3337. class B_Difficulty: RscActiveText
  3338. {
  3339. idc = IDC_OPTIONS_DIFFICULTY;
  3340. x = 0.025;
  3341. y = 0.6;
  3342. w = 0.15;
  3343. text = $STR_DISP_OPTIONS_DIFFICULTY;
  3344. };
  3345.  
  3346. //Confirm the difficulty options and exit.
  3347. class B_OK: B_Difficulty
  3348. {
  3349. idc = IDC_OK;
  3350. x = 0.85;
  3351. y = 0.9;
  3352. text = $STR_DISP_OK;
  3353. default = 1;
  3354. };
  3355.  
  3356. //Cancel back to the main options screen.
  3357. class B_Cancel: B_Difficulty
  3358. {
  3359. idc = IDC_CANCEL;
  3360. x = 0.6;
  3361. y = 0.9;
  3362. text = $STR_DISP_CANCEL;
  3363. };
  3364. };
  3365. };
  3366.  
  3367. //Difficulty options screen.
  3368. class RscDisplayDifficulty
  3369. {
  3370. idd = IDD_DIFFICULTY;
  3371.  
  3372. movingEnable = true;
  3373. enableDisplay = true;
  3374.  
  3375. class controls
  3376. {
  3377. class Title: RscTitle {text = $STR_DISP_OPTIONS_DIFFICULTY;};
  3378.  
  3379. class TextName: RscText
  3380. {
  3381. x = 0.025; y = 0.2;
  3382. w = 0.95 * 0.6;
  3383. text = $STR_DISP_DIFF_NAME;
  3384. };
  3385.  
  3386. class TextCadet: RscText
  3387. {
  3388. x = 0.025 + 0.95 * 0.6; y = 0.2;
  3389. w = 0.95 * 0.2;
  3390. text = $STR_DISP_DIFF_CADET;
  3391. };
  3392.  
  3393. class TextVeteran: RscText
  3394. {
  3395. x = 0.025 + 0.95 * 0.8; y = 0.2;
  3396. w = 0.95 * 0.2;
  3397. text = $STR_DISP_DIFF_VETERAN;
  3398. };
  3399.  
  3400. //List of the various difficulty options.
  3401. class ValueDifficulties: RscListBox
  3402. {
  3403. idc = IDC_DIFFICULTIES_DIFFICULTIES;
  3404. x = 0.025; y = 0.25;
  3405. w = 0.95; h = 0.12;
  3406. rowHeight = 0.03;
  3407. rows = 0.12 / 0.03;
  3408. };
  3409.  
  3410. class TextEnemyLevel: RscText
  3411. {
  3412. x = 0.025; y = 0.392;
  3413. w = 0.95 * 0.6;
  3414. text = $STR_DISP_DIFF_ENEMY_LEVEL;
  3415. };
  3416.  
  3417. class TextFriendlyLevel: RscText
  3418. {
  3419. x = 0.025; y = 0.517;
  3420. w = 0.95 * 0.6;
  3421. text = $STR_DISP_DIFF_FRIENDLY_LEVEL;
  3422. };
  3423.  
  3424. class TextEnemySkill: RscText
  3425. {
  3426. idc = IDC_DIFF_TEXT_ENEMY_SKILL;
  3427. x = 0.025; y = 0.642;
  3428. w = 0.95 * 0.6;
  3429. text = $STR_DISP_DIFF_ENEMY_SKILL;
  3430. };
  3431.  
  3432. class TextFriendlySkill: RscText
  3433. {
  3434. idc = IDC_DIFF_TEXT_FRIENDLY_SKILL;
  3435. x = 0.025; y = 0.715;
  3436. w = 0.95 * 0.6;
  3437. text = $STR_DISP_DIFF_FRIENDLY_SKILL;
  3438. };
  3439.  
  3440. //Level of the enemy forces on Cadet mode.
  3441. class ValueCadetEnemyLevel: RscListBox
  3442. {
  3443. idc = IDC_DIFF_CADET_ENEMY_LEVEL;
  3444. x = 0.025 + 0.95 * 0.6; y = 0.392;
  3445. w = 0.95 * 0.18; h = 0.1;
  3446. rows = 2;
  3447. };
  3448.  
  3449. //Level of the friendly forces on Cadet mode.
  3450. class ValueCadetFriendlyLevel: RscListBox
  3451. {
  3452. idc = IDC_DIFF_CADET_FRIENDLY_LEVEL;
  3453. x = 0.025 + 0.95 * 0.6; y = 0.517;
  3454. w = 0.95 * 0.18; h = 0.1;
  3455. rows = 2;
  3456. };
  3457.  
  3458. //Level of the enemy forces on Veteran mode.
  3459. class ValueVeteranEnemyLevel: RscListBox
  3460. {
  3461. idc = IDC_DIFF_VETERAN_ENEMY_LEVEL;
  3462. x = 0.025 + 0.95 * 0.8; y = 0.392;
  3463. w = 0.95 * 0.18; h = 0.1;
  3464. rows = 2;
  3465. };
  3466.  
  3467. //Level of the friendly forces on Veteran mode.
  3468. class ValueVeteranFriendlyLevel: RscListBox
  3469. {
  3470. idc = IDC_DIFF_VETERAN_FRIENDLY_LEVEL;
  3471. x = 0.025 + 0.95 * 0.8; y = 0.517;
  3472. w = 0.95 * 0.18; h = 0.1;
  3473. rows = 2;
  3474. };
  3475.  
  3476. //The current skill level for enemies in Cadet mode.
  3477. class EchoCadetEnemySkill: RscText
  3478. {
  3479. idc = IDC_DIFF_CADET_ENEMY_SKILL_ECHO;
  3480. x = 0.025 + 0.95 * 0.6; y = 0.67;
  3481. w = 0.95 * 0.18;
  3482. style = ST_CENTER;
  3483. };
  3484.  
  3485. //The current skill level for friendlies in Cadet mode.
  3486. class EchoCadetFriendlySkill: RscText
  3487. {
  3488. idc = IDC_DIFF_CADET_FRIENDLY_SKILL_ECHO;
  3489. x = 0.025 + 0.95 * 0.6; y = 0.743;
  3490. w = 0.95 * 0.18;
  3491. style = ST_CENTER;
  3492. };
  3493.  
  3494. //The current skill level for enemies in Veteran mode.
  3495. class EchoVeteranEnemySkill: RscText
  3496. {
  3497. idc = IDC_DIFF_VETERAN_ENEMY_SKILL_ECHO;
  3498. x = 0.025 + 0.95 * 0.8; y = 0.67;
  3499. w = 0.95 * 0.18;
  3500. style = ST_CENTER;
  3501. };
  3502.  
  3503. //The current skill level for friendlies in Veteran mode.
  3504. class EchoVeteranFriendlySkill: RscText
  3505. {
  3506. idc = IDC_DIFF_VETERAN_FRIENDLY_SKILL_ECHO;
  3507. x = 0.025 + 0.95 * 0.8; y = 0.743;
  3508. w = 0.95 * 0.18;
  3509. style = ST_CENTER;
  3510. };
  3511.  
  3512. //Change the skill level for enemies in Cadet mode.
  3513. class ValueCadetEnemySkill: RscSlider
  3514. {
  3515. idc = IDC_DIFF_CADET_ENEMY_SKILL;
  3516. x = 0.025 + 0.95 * 0.6; y = 0.642;
  3517. w = 0.95 * 0.18;
  3518. };
  3519.  
  3520. //Change the skill level for friendlies in Cadet mode.
  3521. class ValueCadetFriendlySkill: RscSlider
  3522. {
  3523. idc = IDC_DIFF_CADET_FRIENDLY_SKILL;
  3524. x = 0.025 + 0.95 * 0.6; y = 0.715;
  3525. w = 0.95 * 0.18;
  3526. };
  3527.  
  3528. //Change the skill level for enemies in Veteran mode.
  3529. class ValueVeteranEnemySkill: RscSlider
  3530. {
  3531. idc = IDC_DIFF_VETERAN_ENEMY_SKILL;
  3532. x = 0.025 + 0.95 * 0.8; y = 0.642;
  3533. w = 0.95 * 0.18;
  3534. };
  3535.  
  3536. //Change the skill level for friendlies in Veteran mode.
  3537. class ValueVeteranFriendlySkill: RscSlider
  3538. {
  3539. idc = IDC_DIFF_VETERAN_FRIENDLY_SKILL;
  3540. x = 0.025 + 0.95 * 0.8; y = 0.715;
  3541. w = 0.95 * 0.18;
  3542. };
  3543.  
  3544. ////Enable of disable subtitles.
  3545. //class EnableSubtitles: RscActiveText
  3546. //{
  3547. // idc = IDC_OPTIONS_SUBTITLES;
  3548. // x = 0.1; y = 0.817;
  3549. // w = 0.4;
  3550. // style = ST_CENTER;
  3551. //};
  3552.  
  3553. ////Enable of disable radio subtitles.
  3554. //class EnableRadio: RscActiveText
  3555. //{
  3556. // idc = IDC_OPTIONS_RADIO;
  3557. // x = 0.5; y = 0.817;
  3558. // w = 0.4;
  3559. // style = ST_CENTER;
  3560. //};
  3561.  
  3562. //Restore all setting to their default.
  3563. class B_Default: RscActiveText
  3564. {
  3565. idc = IDC_DIFFICULTIES_DEFAULT;
  3566. x = 0.05; y = 0.9;
  3567. w = 0.15;
  3568. text = $STR_DISP_DEFAULT;
  3569. };
  3570.  
  3571. //Confirm the difficulty options and exit.
  3572. class B_OK: B_Default
  3573. {
  3574. idc = IDC_OK;
  3575. x = 0.85;
  3576. text = $STR_DISP_OK;
  3577. default = 1;
  3578. };
  3579.  
  3580. //Cancel back to the main options screen.
  3581. class B_Cancel: B_Default
  3582. {
  3583. idc = IDC_CANCEL;
  3584. x = 0.6;
  3585. text = $STR_DISP_CANCEL;
  3586. };
  3587. };
  3588. };
  3589.  
  3590. class RscListBoxKeys : RscListBox
  3591. {
  3592. collisionColor[] = {1, 0, 0, 1}; //red
  3593. disabledKeyColor[] = Color_Gray;
  3594. mainCollumW = 0.4;
  3595. secndCollumW = 0.6;
  3596. };
  3597.  
  3598. //Input options screen.
  3599. class RscDisplayConfigure
  3600. {
  3601. idd = IDD_CONFIGURE;
  3602.  
  3603. movingEnable = true;
  3604. enableDisplay = true;
  3605.  
  3606. class controls
  3607. {
  3608. class Title: RscTitle {text = $STR_DISP_OPTIONS_CONFIGURE;};
  3609.  
  3610. class TextName: RscText
  3611. {
  3612. x = 0.025; y = 0.2;
  3613. w = 0.95 * 0.95 * 0.4;
  3614. text = $STR_DISP_CONF_NAME;
  3615. };
  3616.  
  3617. class TextKeys: RscText
  3618. {
  3619. x = 0.025 + 0.95 * 0.95 * 0.4; y = 0.2;
  3620. w = 0.95 * 0.95 * 0.6;
  3621. text = $STR_DISP_CONF_KEYS;
  3622. };
  3623.  
  3624. //Combo to specify the controls page
  3625. class ControlsPage : RscCombo
  3626. {
  3627. idc = IDC_CONFIG_CONTROLS_PAGE;
  3628. x = 0.3; y = 0.25;
  3629. w = 0.29; h = 0.04;
  3630. sizeEx = Size_Text_Small;
  3631. };
  3632.  
  3633. //List of the keyboard, mouse and joystick controls.
  3634. class ValueKeys: RscListBoxKeys
  3635. {
  3636. idc = IDC_CONFIG_KEYS;
  3637. x = 0.025; y = 0.25;
  3638. w = 0.95; h = 0.4;
  3639. rowHeight = 0.03;
  3640. rows = 0.4 / 0.03;
  3641. };
  3642.  
  3643. class TextReserved: RscText
  3644. {
  3645. x = 0.025; y = 0.667;
  3646. w = 0.95;
  3647. text = $STR_DISP_CONF_RES;
  3648. };
  3649.  
  3650. class TextMouseSens: RscText
  3651. {
  3652. x = 0.01; y = 0.70;
  3653. w = 0.6; h = 0.15;
  3654. text = $STR_DISP_CONF_SENS;
  3655. };
  3656.  
  3657. //The current mouse sensitivity on the X axis.
  3658. class TextXAxis: RscText
  3659. {
  3660. x = 0.05; y = 0.785;
  3661. w = 0.15;
  3662. text = $STR_DISP_CONF_XAXIS;
  3663. };
  3664.  
  3665. //The current mouse sensitivity on the X axis.
  3666. class TextMouseSmoothing: RscText
  3667. {
  3668. x = 0.2; y = 0.89;
  3669. w = 0.15;
  3670. text = "MouseSmoothing";
  3671. };
  3672.  
  3673.  
  3674. //Change the mouse sensitivity on the X axis.
  3675. class ValueXAxis: RscSlider
  3676. {
  3677. idc = IDC_CONFIG_XAXIS;
  3678. x = 0.2; y = 0.8;
  3679. w = 0.35; h = 0.03;
  3680. };
  3681.  
  3682. //The current mouse sensitivity on the Y axis.
  3683. class TextYAxis: RscText
  3684. {
  3685. x = 0.05; y = 0.83;
  3686. w = 0.15;
  3687. text = $STR_DISP_CONF_YAXIS;
  3688. };
  3689.  
  3690. //Change the mouse sensitivity on the Y axis.
  3691. class ValueYAxis: RscSlider
  3692. {
  3693. idc = IDC_CONFIG_YAXIS;
  3694. x = 0.2; y = 0.85;
  3695. w = 0.35; h = 0.03;
  3696. };
  3697.  
  3698. //Change the mouse sensitivity on the Y axis.
  3699. class ValueMouseSmoothing: RscSlider
  3700. {
  3701. idc = IDC_CONFIG_MOUSE_FILTERING;
  3702. x = 0.2; y = 0.92;
  3703. w = 0.35; h = 0.03;
  3704. };
  3705.  
  3706. //Enable or disable a reversed Y axis.
  3707. class ValueYReversed: RscListBox
  3708. {
  3709. idc = IDC_CONFIG_YREVERSED;
  3710. x = 0.8; y = 0.55;
  3711. w = 0.35; h = 0.2f;
  3712. };
  3713.  
  3714. class TextButtons: RscText
  3715. {
  3716. x = 0.6; y = 0.8;
  3717. w = 0.3;
  3718. text = $STR_DISP_CONF_MOUSE_BUTTON;
  3719. };
  3720.  
  3721. //ToDo: Verify this button works.
  3722. //Enable or disable reversed mouse buttons.
  3723. class ValueButtons: RscActiveText
  3724. {
  3725. idc = IDC_CONFIG_BUTTONS;
  3726. x = 0.9; y = 0.8;
  3727. w = 0.075;
  3728. style = ST_CENTER;
  3729. };
  3730.  
  3731. //Configure joysticks
  3732. class ValueJoystick: RscActiveText
  3733. {
  3734. idc = IDC_CONFIG_JOYSTICK;
  3735. x = 0.6; y = 0.85;
  3736. w = 0.35;
  3737. text = "Controllers"; //text is now static!
  3738. style = ST_CENTER;
  3739. };
  3740.  
  3741. //Restore the settings to their default.
  3742. class B_Default: RscActiveText
  3743. {
  3744. idc = IDC_CONFIG_DEFAULT;
  3745. x = 0.05; y = 0.9;
  3746. w = 0.15;
  3747. text = $STR_DISP_DEFAULT;
  3748. };
  3749.  
  3750. //Confirm the input options and exit.
  3751. class B_OK: B_Default
  3752. {
  3753. idc = IDC_OK;
  3754. x = 0.85;
  3755. text = $STR_DISP_OK;
  3756. default = 1;
  3757. };
  3758.  
  3759. //Cancel back to the main options screen.
  3760. class B_Cancel: B_Default
  3761. {
  3762. idc = IDC_CANCEL;
  3763. x = 0.6;
  3764. text = $STR_DISP_CANCEL;
  3765. };
  3766. };
  3767. };
  3768.  
  3769. // Configure single Input action
  3770. class RscDisplayConfigureAction
  3771. {
  3772. idd = IDD_CONFIGURE_ACTION;
  3773.  
  3774. access = ReadAndWrite;
  3775. movingEnable = false;
  3776. enableSimulation = false;
  3777. enableDisplay = false;
  3778.  
  3779. class ControlsBackground
  3780. {
  3781. class Background: RscText
  3782. {
  3783. x = 0.2; y = 0.2;
  3784. w = 0.6; h = 0.7;
  3785. colorBackground[] = Color_Background;
  3786. };
  3787. };
  3788.  
  3789. class Controls
  3790. {
  3791. class Title: RscText
  3792. {
  3793. idc = IDC_CONFIGURE_ACTION_TITLE;
  3794. style = ST_CENTER;
  3795. x = 0.2;
  3796. y = 0.2;
  3797. w = 0.6;
  3798. text = $STR_DISP_CONFACT_TITLE;
  3799. };
  3800. class TextHelp: RscText
  3801. {
  3802. x = 0.2; y = 0.65;
  3803. w = 0.95;
  3804. text = $STR_DISP_CONF_HELP;
  3805. };
  3806. class TextReserved: RscText
  3807. {
  3808. x = 0.2; y = 0.86;
  3809. w = 0.95;
  3810. text = $STR_DISP_CONF_RES;
  3811. };
  3812.  
  3813. class ValueCurrentKeys : RscListBoxKeys
  3814. {
  3815. idc = IDC_CONFIGURE_ACTION_KEYS;
  3816. x = 0.2; y = 0.25;
  3817. w = 0.25; h = 0.4;
  3818. rowHeight = 0.03;
  3819. rows = 0.4 / 0.03;
  3820. canDrag = true;
  3821. };
  3822. class ValueSpecialKeys: RscListBox
  3823. {
  3824. idc = IDC_CONFIGURE_ACTION_SPECIAL;
  3825. x = 0.55; y = 0.25;
  3826. w = 0.25; h = 0.4;
  3827. rowHeight = 0.03;
  3828. rows = 0.4 / 0.03;
  3829. canDrag = true;
  3830. colorSelect[] = Color_Black;
  3831. colorSelect2[] = Color_Black;
  3832. colorSelectBackground[] = Color_Background;
  3833. colorSelectBackground2[] = Color_Background;
  3834. };
  3835. class RscConfActionButton: RscButton
  3836. {
  3837. w = 0.1; h = 0.05;
  3838. font = FontMAIN;
  3839. sizeEx = Size_Text_Small;
  3840. };
  3841. class B_Delete: RscConfActionButton
  3842. {
  3843. idc = IDC_CONFIGURE_ACTION_DELETE;
  3844. x = 0.2; y = 0.7;
  3845. text = $STR_DISP_DELETE;
  3846. };
  3847. class B_Default: RscConfActionButton
  3848. {
  3849. idc = IDC_CONFIGURE_ACTION_DEFAULT;
  3850. x = 0.325; y = 0.7;
  3851. text = $STR_DISP_DEFAULT;
  3852. };
  3853. class B_Clear: RscConfActionButton
  3854. {
  3855. idc = IDC_CONFIGURE_ACTION_CLEAR;
  3856. x = 0.450; y = 0.7;
  3857. text = $STR_DISP_CONFACT_UNDO;
  3858. };
  3859. class B_Cancel: RscConfActionButton
  3860. {
  3861. idc = IDC_CONFIGURE_ACTION_CANCEL;
  3862. x = 0.575; y = 0.7;
  3863. text = $STR_DISP_CANCEL,;
  3864. };
  3865. class B_Prev: RscConfActionButton
  3866. {
  3867. idc = IDC_CONFIGURE_ACTION_PREV;
  3868. x = 0.2; y = 0.77;
  3869. text = $STR_USRACT_MENU_DOWN;
  3870. };
  3871. class B_Next: RscConfActionButton
  3872. {
  3873. idc = IDC_CONFIGURE_ACTION_NEXT;
  3874. x = 0.325; y = 0.77;
  3875. text = $STR_USRACT_MENU_UP;
  3876. };
  3877. //Confirm the input options and exit.
  3878. class B_OK : RscConfActionButton
  3879. {
  3880. idc = IDC_OK;
  3881. x = 0.700; y = 0.7;
  3882. text = $STR_DISP_OK;
  3883. default = 1;
  3884. };
  3885. };
  3886. };
  3887.  
  3888. // Configure all connected joysticks
  3889. class RscDisplayConfigureControllers
  3890. {
  3891. idd = IDD_CONFIGURE_JOYSTICKS;
  3892.  
  3893. movingEnable = true;
  3894. enableDisplay = true;
  3895.  
  3896. class controls
  3897. {
  3898. class Title: RscTitle {text = "Configure controllers";};
  3899.  
  3900. class RscConfJoysticksButton: RscButton
  3901. {
  3902. w = 0.2; h = 0.05;
  3903. font = FontMAIN;
  3904. sizeEx = Size_Text_Small;
  3905. };
  3906. class RscControllersListBox : RscListBox
  3907. {
  3908. disabledCtrlColor[] = Color_Gray;
  3909. };
  3910.  
  3911. //List of the connected joysticks
  3912. class TextControllerList: RscText
  3913. {
  3914. x = 0.3; y = 0.2;
  3915. w = 0.35;
  3916. text = "Customizable controllers";
  3917. };
  3918. class ControllerList: RscControllersListBox
  3919. {
  3920. idc = IDC_CONTROLLER_LIST;
  3921. x = 0.3; y = 0.25;
  3922. w = 0.35; h = 0.3;
  3923. rowHeight = 0.05;
  3924. rows = 0.7 / 0.05;
  3925. };
  3926. //List of the connected joysticks
  3927. class TextXInputList: RscText
  3928. {
  3929. x = 0.3; y = 0.55;
  3930. w = 0.35;
  3931. text = "Controllers with scheme";
  3932. };
  3933. class XInputList: RscControllersListBox
  3934. {
  3935. idc = IDC_CONTROLLER_XINPUT_LIST;
  3936. x = 0.3; y = 0.60;
  3937. w = 0.35; h = 0.2;
  3938. rowHeight = 0.05;
  3939. rows = 0.7 / 0.05;
  3940. };
  3941. // buttons
  3942. class EnableDisable: RscConfJoysticksButton
  3943. {
  3944. idc = IDC_CONTROLLER_ENABLE;
  3945. x = 0.7; y = 0.4;
  3946. text = "Enable";
  3947. };
  3948. class Customize: RscConfJoysticksButton
  3949. {
  3950. idc = IDC_CONTROLLER_CUSTOMIZE;
  3951. x = 0.7; y = 0.5;
  3952. text = "Customize";
  3953. };
  3954. class B_OK: RscConfJoysticksButton
  3955. {
  3956. idc = IDC_OK;
  3957. x = 0.7; y = 0.6;
  3958. text = $STR_DISP_OK;
  3959. default = 1;
  3960. };
  3961. };
  3962. };
  3963.  
  3964. class RscDisplayCustomizeController
  3965. {
  3966. idd = IDD_CUSTOMIZE_CONTROLLER;
  3967.  
  3968. class Controls
  3969. {
  3970. class T_Background: RscText
  3971. {
  3972. colorBackground[] = Color_Background;
  3973. x = 0.02; y = 0.08;
  3974. w = 0.71; h = 0.41;
  3975. };
  3976.  
  3977. class T_Title: RscTitle
  3978. {
  3979. idc = IDC_CUSTOMIZE_CTRL_TITLE;
  3980. style = ST_TITLE;
  3981. x = 0.02; y = 0.09;
  3982. w = 0.71;
  3983. };
  3984.  
  3985. class G_ControlsGroup: RscControlsGroup
  3986. {
  3987. idc = IDC_CUSTOMIZE_CTRL_SENSITIVITIES;
  3988. x = 0.02; y = 0.15;
  3989. w = 0.71; h = 0.24;
  3990.  
  3991. class Controls
  3992. {
  3993. //Controls are added by the program.
  3994. };
  3995. };
  3996.  
  3997. class B_OK: RscButton
  3998. {
  3999. idc = IDC_OK;
  4000. x = 0.37; y = 0.42;
  4001. w = 0.13; h = 0.05;
  4002. text = $STR_DISP_OK;
  4003. default = 1;
  4004. };
  4005.  
  4006. class B_Unmap: B_OK
  4007. {
  4008. idc = IDC_CUSTOMIZE_CTRL_UNMAP;
  4009. x = 0.09;
  4010. text = "Unmap";
  4011. default = 0;
  4012. };
  4013.  
  4014. class B_Default: B_OK
  4015. {
  4016. idc = IDC_CUSTOMIZE_CTRL_DEFAULT;
  4017. x = 0.23;
  4018. text = $STR_DISP_DEFAULT;
  4019. default = 0;
  4020. };
  4021.  
  4022. class B_Cancel: B_OK
  4023. {
  4024. idc = IDC_CANCEL;
  4025. x = 0.51;
  4026. text = $STR_DISP_CANCEL;
  4027. default = 0;
  4028. };
  4029. };
  4030.  
  4031. class Title: RscText
  4032. {
  4033. x = 0.02; y = 0;
  4034. w = 0.18; h = 0.025;
  4035. sizeEx = 0.025;
  4036. text = "";
  4037. };
  4038.  
  4039. class Slider: RscXSliderH
  4040. {
  4041. x = 0.21; y = 0;
  4042. w = 0.47; h = 0.025;
  4043. vspacing = 0.015;
  4044. };
  4045. };
  4046.  
  4047. //The main menu credits screen.
  4048. class RscDisplayCredits: RscStandardDisplay
  4049. {
  4050. idd = IDD_CREDITS;
  4051.  
  4052. class controls
  4053. {
  4054. class Text1: RscText
  4055. {
  4056. idc = 50001; //ToDo: Temp.
  4057. x = 0; y = 0.4;
  4058. w = 1;
  4059. style = ST_CENTER;
  4060. text = $STR_CREDIT_FP2ENGINE;
  4061. };
  4062.  
  4063. class Text2: Text1
  4064. {
  4065. idc = 50002; //ToDo: Temp.
  4066. y = 0.45;
  4067. sizeEx = Size_Text_Small;
  4068. text = $STR_CREDIT_COPYRIGHT;
  4069. };
  4070.  
  4071. class Text3: Text1
  4072. {
  4073. idc = 50003; //ToDo: Temp.
  4074. y = 0.48;
  4075. sizeEx = Size_Text_Small;
  4076. text = $STR_CREDIT_RIGHTS;
  4077. };
  4078.  
  4079. //Cancel back to the main menu.
  4080. class B_Cancel: RscActiveText
  4081. {
  4082. idc = IDC_CANCEL;
  4083. x = 0.4; y = 0.9;
  4084. w = 0.2;
  4085. text = $STR_DISP_CANCEL;
  4086. };
  4087. };
  4088. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement