Advertisement
Guest User

Untitled

a guest
Dec 10th, 2020
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.77 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////////
  2. /// Styles
  3. ///////////////////////////////////////////////////////////////////////////
  4.  
  5. // Control types
  6. #define CT_STATIC 0
  7. #define CT_BUTTON 1
  8. #define CT_EDIT 2
  9. #define CT_SLIDER 3
  10. #define CT_COMBO 4
  11. #define CT_LISTBOX 5
  12. #define CT_TOOLBOX 6
  13. #define CT_CHECKBOXES 7
  14. #define CT_PROGRESS 8
  15. #define CT_HTML 9
  16. #define CT_STATIC_SKEW 10
  17. #define CT_ACTIVETEXT 11
  18. #define CT_TREE 12
  19. #define CT_STRUCTURED_TEXT 13
  20. #define CT_CONTEXT_MENU 14
  21. #define CT_CONTROLS_GROUP 15
  22. #define CT_SHORTCUTBUTTON 16
  23. #define CT_XKEYDESC 40
  24. #define CT_XBUTTON 41
  25. #define CT_XLISTBOX 42
  26. #define CT_XSLIDER 43
  27. #define CT_XCOMBO 44
  28. #define CT_ANIMATED_TEXTURE 45
  29. #define CT_OBJECT 80
  30. #define CT_OBJECT_ZOOM 81
  31. #define CT_OBJECT_CONTAINER 82
  32. #define CT_OBJECT_CONT_ANIM 83
  33. #define CT_LINEBREAK 98
  34. #define CT_USER 99
  35. #define CT_MAP 100
  36. #define CT_MAP_MAIN 101
  37. #define CT_LISTNBOX 102
  38. #define CT_CHECKBOX 77
  39.  
  40. // Static styles
  41. #define ST_POS 0x0F
  42. #define ST_HPOS 0x03
  43. #define ST_VPOS 0x0C
  44. #define ST_LEFT 0x00
  45. #define ST_RIGHT 0x01
  46. #define ST_CENTER 0x02
  47. #define ST_DOWN 0x04
  48. #define ST_UP 0x08
  49. #define ST_VCENTER 0x0C
  50.  
  51. #define ST_TYPE 0xF0
  52. #define ST_SINGLE 0x00
  53. #define ST_MULTI 0x10
  54. #define ST_TITLE_BAR 0x20
  55. #define ST_PICTURE 0x30
  56. #define ST_FRAME 0x40
  57. #define ST_BACKGROUND 0x50
  58. #define ST_GROUP_BOX 0x60
  59. #define ST_GROUP_BOX2 0x70
  60. #define ST_HUD_BACKGROUND 0x80
  61. #define ST_TILE_PICTURE 0x90
  62. #define ST_WITH_RECT 0xA0
  63. #define ST_LINE 0xB0
  64.  
  65. #define ST_SHADOW 0x100
  66. #define ST_NO_RECT 0x200
  67. #define ST_KEEP_ASPECT_RATIO 0x800
  68.  
  69. #define ST_TITLE ST_TITLE_BAR + ST_CENTER
  70.  
  71. // Slider styles
  72. #define SL_DIR 0x400
  73. #define SL_VERT 0
  74. #define SL_HORZ 0x400
  75.  
  76. #define SL_TEXTURES 0x10
  77.  
  78. // progress bar
  79. #define ST_VERTICAL 0x01
  80. #define ST_HORIZONTAL 0
  81.  
  82. // Listbox styles
  83. #define LB_TEXTURES 0x10
  84. #define LB_MULTI 0x20
  85.  
  86. // Tree styles
  87. #define TR_SHOWROOT 1
  88. #define TR_AUTOCOLLAPSE 2
  89.  
  90. // MessageBox styles
  91. #define MB_BUTTON_OK 1
  92. #define MB_BUTTON_CANCEL 2
  93. #define MB_BUTTON_USER 4
  94.  
  95.  
  96. class GuiBaseControl
  97. {
  98. colorBackground[] = {0 / 255, 0 / 255, 102 / 255, 1};
  99. colorText[] = {1,1,1,1};
  100.  
  101. font = "RobotoCondensed";
  102. };
  103.  
  104.  
  105.  
  106. ///////////////////////////////////////////////////////////////////////////
  107. /// Base Classes
  108. ///////////////////////////////////////////////////////////////////////////
  109. class RscText: GuiBaseControl
  110. {
  111. deletable = 0;
  112. fade = 0;
  113. access = 0;
  114. type = 0;
  115. idc = -1;
  116. colorBackground[] =
  117. {
  118. 0,
  119. 0,
  120. 0,
  121. 0
  122. };
  123. colorText[] =
  124. {
  125. 1,
  126. 1,
  127. 1,
  128. 1
  129. };
  130. text = "";
  131. fixedWidth = 0;
  132. x = 0;
  133. y = 0;
  134. h = 0.037;
  135. w = 0.3;
  136. style = 0;
  137. shadow = 1;
  138. colorShadow[] =
  139. {
  140. 0,
  141. 0,
  142. 0,
  143. 0.5
  144. };
  145. font = "RobotoCondensed";
  146. SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  147. linespacing = 1;
  148. tooltipColorText[] =
  149. {
  150. 1,
  151. 1,
  152. 1,
  153. 1
  154. };
  155. tooltipColorBox[] =
  156. {
  157. 1,
  158. 1,
  159. 1,
  160. 1
  161. };
  162. tooltipColorShade[] =
  163. {
  164. 0,
  165. 0,
  166. 0,
  167. 0.65
  168. };
  169. };
  170. class RscStructuredText: GuiBaseControl
  171. {
  172. deletable = 0;
  173. fade = 0;
  174. access = 0;
  175. type = 13;
  176. idc = -1;
  177. style = 0;
  178.  
  179. colorBackground[] = {0, 0, 0, 0};
  180.  
  181. colorText[] =
  182. {
  183. 1,
  184. 1,
  185. 1,
  186. 1
  187. };
  188. class Attributes
  189. {
  190. font = "RobotoCondensed";
  191. color = "#ffffff";
  192. colorLink = "#D09B43";
  193. align = "left";
  194. shadow = 1;
  195. };
  196. x = 0;
  197. y = 0;
  198. h = 0.035;
  199. w = 0.1;
  200. text = "";
  201. size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  202. shadow = 1;
  203. };
  204. class RscPicture: GuiBaseControl
  205. {
  206. deletable = 0;
  207. fade = 0;
  208. access = 0;
  209. type = 0;
  210. idc = -1;
  211. style = 48;
  212. colorBackground[] =
  213. {
  214. 0,
  215. 0,
  216. 0,
  217. 0
  218. };
  219. colorText[] =
  220. {
  221. 1,
  222. 1,
  223. 1,
  224. 1
  225. };
  226. font = "TahomaB";
  227. sizeEx = 0;
  228. lineSpacing = 0;
  229. text = "";
  230. fixedWidth = 0;
  231. shadow = 0;
  232. x = 0;
  233. y = 0;
  234. w = 0.2;
  235. h = 0.15;
  236. tooltipColorText[] =
  237. {
  238. 1,
  239. 1,
  240. 1,
  241. 1
  242. };
  243. tooltipColorBox[] =
  244. {
  245. 1,
  246. 1,
  247. 1,
  248. 1
  249. };
  250. tooltipColorShade[] =
  251. {
  252. 0,
  253. 0,
  254. 0,
  255. 0.65
  256. };
  257. };
  258. class RscEdit: GuiBaseControl
  259. {
  260. deletable = 0;
  261. fade = 0;
  262. access = 0;
  263. type = 2;
  264. x = 0;
  265. y = 0;
  266. h = 0.04;
  267. w = 0.2;
  268. colorBackground[] =
  269. {
  270. 0,
  271. 0,
  272. 0,
  273. 0
  274. };
  275. colorText[] =
  276. {
  277. 0.95,
  278. 0.95,
  279. 0.95,
  280. 1
  281. };
  282. colorDisabled[] =
  283. {
  284. 1,
  285. 1,
  286. 1,
  287. 0.25
  288. };
  289. colorSelection[] =
  290. {
  291. "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
  292. "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
  293. "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
  294. 1
  295. };
  296. autocomplete = "";
  297. text = "";
  298. size = 0.2;
  299. style = "0x00 + 0x40";
  300. font = "RobotoCondensed";
  301. shadow = 2;
  302. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  303. canModify = 1;
  304. tooltipColorText[] =
  305. {
  306. 1,
  307. 1,
  308. 1,
  309. 1
  310. };
  311. tooltipColorBox[] =
  312. {
  313. 1,
  314. 1,
  315. 1,
  316. 1
  317. };
  318. tooltipColorShade[] =
  319. {
  320. 0,
  321. 0,
  322. 0,
  323. 0.65
  324. };
  325. };
  326. class RscCombo: GuiBaseControl
  327. {
  328. deletable = 0;
  329. fade = 0;
  330. access = 0;
  331. type = 4;
  332. colorSelect[] =
  333. {
  334. 0,
  335. 0,
  336. 0,
  337. 1
  338. };
  339. colorText[] =
  340. {
  341. 1,
  342. 1,
  343. 1,
  344. 1
  345. };
  346. colorBackground[] =
  347. {
  348. 0,
  349. 0,
  350. 0,
  351. 1
  352. };
  353. colorScrollbar[] =
  354. {
  355. 1,
  356. 0,
  357. 0,
  358. 1
  359. };
  360. colorDisabled[] =
  361. {
  362. 1,
  363. 1,
  364. 1,
  365. 0.25
  366. };
  367. colorPicture[] =
  368. {
  369. 1,
  370. 1,
  371. 1,
  372. 1
  373. };
  374. colorPictureSelected[] =
  375. {
  376. 1,
  377. 1,
  378. 1,
  379. 1
  380. };
  381. colorPictureDisabled[] =
  382. {
  383. 1,
  384. 1,
  385. 1,
  386. 0.25
  387. };
  388. colorPictureRight[] =
  389. {
  390. 1,
  391. 1,
  392. 1,
  393. 1
  394. };
  395. colorPictureRightSelected[] =
  396. {
  397. 1,
  398. 1,
  399. 1,
  400. 1
  401. };
  402. colorPictureRightDisabled[] =
  403. {
  404. 1,
  405. 1,
  406. 1,
  407. 0.25
  408. };
  409. colorTextRight[] =
  410. {
  411. 1,
  412. 1,
  413. 1,
  414. 1
  415. };
  416. colorSelectRight[] =
  417. {
  418. 0,
  419. 0,
  420. 0,
  421. 1
  422. };
  423. colorSelect2Right[] =
  424. {
  425. 0,
  426. 0,
  427. 0,
  428. 1
  429. };
  430. tooltipColorText[] =
  431. {
  432. 1,
  433. 1,
  434. 1,
  435. 1
  436. };
  437. tooltipColorBox[] =
  438. {
  439. 1,
  440. 1,
  441. 1,
  442. 1
  443. };
  444. tooltipColorShade[] =
  445. {
  446. 0,
  447. 0,
  448. 0,
  449. 0.65
  450. };
  451. soundSelect[] =
  452. {
  453. "\A3\ui_f\data\sound\RscCombo\soundSelect",
  454. 0.1,
  455. 1
  456. };
  457. soundExpand[] =
  458. {
  459. "\A3\ui_f\data\sound\RscCombo\soundExpand",
  460. 0.1,
  461. 1
  462. };
  463. soundCollapse[] =
  464. {
  465. "\A3\ui_f\data\sound\RscCombo\soundCollapse",
  466. 0.1,
  467. 1
  468. };
  469. maxHistoryDelay = 1;
  470. class ComboScrollBar
  471. {
  472. color[] =
  473. {
  474. 1,
  475. 1,
  476. 1,
  477. 1
  478. };
  479. };
  480. style = 0; // for proper scroll bar // "0x10 + 0x200";
  481. font = "RobotoCondensed";
  482. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  483. shadow = 0;
  484. x = 0;
  485. y = 0;
  486. w = 0.12;
  487. h = 0.035;
  488. colorSelectBackground[] =
  489. {
  490. 1,
  491. 1,
  492. 1,
  493. 0.7
  494. };
  495. arrowEmpty = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_ca.paa";
  496. arrowFull = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_active_ca.paa";
  497. wholeHeight = 0.45;
  498. colorActive[] =
  499. {
  500. 1,
  501. 0,
  502. 0,
  503. 1
  504. };
  505. };
  506. class RscListBox: GuiBaseControl
  507. {
  508. deletable = 0;
  509. fade = 0;
  510. access = 0;
  511. type = 5;
  512. rowHeight = 0;
  513.  
  514. drawSideArrows = 0;
  515. idcRight = -1;
  516. idcLeft = -1;
  517.  
  518. colorText[] =
  519. {
  520. 1,
  521. 1,
  522. 1,
  523. 1
  524. };
  525. colorDisabled[] =
  526. {
  527. 1,
  528. 1,
  529. 1,
  530. 0.25
  531. };
  532. colorScrollbar[] =
  533. {
  534. 1,
  535. 0,
  536. 0,
  537. 0
  538. };
  539. colorSelect[] =
  540. {
  541. 0,
  542. 0,
  543. 0,
  544. 1
  545. };
  546. colorSelect2[] =
  547. {
  548. 0,
  549. 0,
  550. 0,
  551. 1
  552. };
  553. colorSelectBackground[] =
  554. {
  555. 0.95,
  556. 0.95,
  557. 0.95,
  558. 1
  559. };
  560. colorSelectBackground2[] =
  561. {
  562. 1,
  563. 1,
  564. 1,
  565. 0.5
  566. };
  567. colorBackground[] =
  568. {
  569. 0,
  570. 0,
  571. 0,
  572. 0.3
  573. };
  574. soundSelect[] =
  575. {
  576. "\A3\ui_f\data\sound\RscListbox\soundSelect",
  577. 0.09,
  578. 1
  579. };
  580. autoScrollSpeed = -1;
  581. autoScrollDelay = 5;
  582. autoScrollRewind = 0;
  583. arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
  584. arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
  585. colorPicture[] =
  586. {
  587. 1,
  588. 1,
  589. 1,
  590. 1
  591. };
  592. colorPictureSelected[] =
  593. {
  594. 1,
  595. 1,
  596. 1,
  597. 1
  598. };
  599. colorPictureDisabled[] =
  600. {
  601. 1,
  602. 1,
  603. 1,
  604. 0.25
  605. };
  606. colorPictureRight[] =
  607. {
  608. 1,
  609. 1,
  610. 1,
  611. 1
  612. };
  613. colorPictureRightSelected[] =
  614. {
  615. 1,
  616. 1,
  617. 1,
  618. 1
  619. };
  620. colorPictureRightDisabled[] =
  621. {
  622. 1,
  623. 1,
  624. 1,
  625. 0.25
  626. };
  627. colorTextRight[] =
  628. {
  629. 1,
  630. 1,
  631. 1,
  632. 1
  633. };
  634. colorSelectRight[] =
  635. {
  636. 0,
  637. 0,
  638. 0,
  639. 1
  640. };
  641. colorSelect2Right[] =
  642. {
  643. 0,
  644. 0,
  645. 0,
  646. 1
  647. };
  648. tooltipColorText[] =
  649. {
  650. 1,
  651. 1,
  652. 1,
  653. 1
  654. };
  655. tooltipColorBox[] =
  656. {
  657. 1,
  658. 1,
  659. 1,
  660. 1
  661. };
  662. tooltipColorShade[] =
  663. {
  664. 0,
  665. 0,
  666. 0,
  667. 0.65
  668. };
  669. class ListScrollBar
  670. {
  671. color[] =
  672. {
  673. 1,
  674. 1,
  675. 1,
  676. 1
  677. };
  678. autoScrollEnabled = 1;
  679. };
  680. x = 0;
  681. y = 0;
  682. w = 0.3;
  683. h = 0.3;
  684. style = 0;// For working scroll bar visuals //16;
  685. font = "RobotoCondensed";
  686. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  687. shadow = 0;
  688. colorShadow[] =
  689. {
  690. 0,
  691. 0,
  692. 0,
  693. 0.5
  694. };
  695. period = 1.2;
  696. maxHistoryDelay = 1;
  697. };
  698. class RscButton: GuiBaseControl
  699. {
  700. deletable = 0;
  701. fade = 0;
  702. access = 0;
  703. type = 1;
  704. text = "";
  705. colorText[] =
  706. {
  707. 1,
  708. 1,
  709. 1,
  710. 1
  711. };
  712. colorDisabled[] =
  713. {
  714. 1,
  715. 1,
  716. 1,
  717. 0.25
  718. };
  719. colorBackground[] =
  720. {
  721. 0.5,
  722. 0.5,
  723. 0.5,
  724. 1
  725. };
  726. colorBackgroundDisabled[] =
  727. {
  728. 0,
  729. 0,
  730. 0,
  731. 0.5
  732. };
  733. colorBackgroundActive[] =
  734. {
  735. 0.5,
  736. 0.5,
  737. 0.5,
  738. 1
  739. };
  740. colorFocused[] =
  741. {
  742. 0.5,
  743. 0.5,
  744. 0.5,
  745. 1
  746. };
  747. colorShadow[] =
  748. {
  749. 0,
  750. 0,
  751. 0,
  752. 0
  753. };
  754. colorBorder[] =
  755. {
  756. 0,
  757. 0,
  758. 0,
  759. 1
  760. };
  761. soundEnter[] =
  762. {
  763. "\A3\ui_f\data\sound\RscButton\soundEnter",
  764. 0.09,
  765. 1
  766. };
  767. soundPush[] =
  768. {
  769. "\A3\ui_f\data\sound\RscButton\soundPush",
  770. 0.09,
  771. 1
  772. };
  773. soundClick[] =
  774. {
  775. "\A3\ui_f\data\sound\RscButton\soundClick",
  776. 0.09,
  777. 1
  778. };
  779. soundEscape[] =
  780. {
  781. "\A3\ui_f\data\sound\RscButton\soundEscape",
  782. 0.09,
  783. 1
  784. };
  785. idc = -1;
  786. style = 2;
  787. x = 0;
  788. y = 0;
  789. w = 0.095589;
  790. h = 0.039216;
  791. shadow = 2;
  792. font = "RobotoCondensed";
  793. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  794. url = "";
  795. offsetX = 0;
  796. offsetY = 0;
  797. offsetPressedX = 0.001;
  798. offsetPressedY = 0.002;
  799. borderSize = 0;
  800. };
  801.  
  802. class RscPicButton: RscButton
  803. {
  804. colorBackground[] =
  805. {
  806. 0,
  807. 0,
  808. 0,
  809. 1
  810. };
  811. colorBackgroundActive[] =
  812. {
  813. 0,
  814. 0,
  815. 0,
  816. 1
  817. };
  818. colorFocused[] =
  819. {
  820. 0,
  821. 0,
  822. 0,
  823. 1
  824. };
  825.  
  826. style = ST_PICTURE;
  827. };
  828. class RscShortcutButton: GuiBaseControl
  829. {
  830. deletable = 0;
  831. fade = 0;
  832. type = 16;
  833. x = 0.1;
  834. y = 0.1;
  835. class HitZone
  836. {
  837. left = 0;
  838. top = 0;
  839. right = 0;
  840. bottom = 0;
  841. };
  842. class ShortcutPos
  843. {
  844. left = 0;
  845. top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  846. w = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
  847. h = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  848. };
  849. class TextPos
  850. {
  851. left = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
  852. top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  853. right = 0.005;
  854. bottom = 0;
  855. };
  856. shortcuts[] =
  857. {
  858. };
  859. textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
  860. color[] =
  861. {
  862. 1,
  863. 1,
  864. 1,
  865. 1
  866. };
  867. colorFocused[] =
  868. {
  869. 1,
  870. 1,
  871. 1,
  872. 1
  873. };
  874. color2[] =
  875. {
  876. 0.95,
  877. 0.95,
  878. 0.95,
  879. 1
  880. };
  881. colorDisabled[] =
  882. {
  883. 1,
  884. 1,
  885. 1,
  886. 0.25
  887. };
  888. colorBackground[] =
  889. {
  890. "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
  891. "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
  892. "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
  893. 1
  894. };
  895. colorBackgroundFocused[] =
  896. {
  897. "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
  898. "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
  899. "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
  900. 1
  901. };
  902. colorBackground2[] =
  903. {
  904. 1,
  905. 1,
  906. 1,
  907. 1
  908. };
  909. soundEnter[] =
  910. {
  911. "\A3\ui_f\data\sound\RscButton\soundEnter",
  912. 0.09,
  913. 1
  914. };
  915. soundPush[] =
  916. {
  917. "\A3\ui_f\data\sound\RscButton\soundPush",
  918. 0.09,
  919. 1
  920. };
  921. soundClick[] =
  922. {
  923. "\A3\ui_f\data\sound\RscButton\soundClick",
  924. 0.09,
  925. 1
  926. };
  927. soundEscape[] =
  928. {
  929. "\A3\ui_f\data\sound\RscButton\soundEscape",
  930. 0.09,
  931. 1
  932. };
  933. class Attributes
  934. {
  935. font = "RobotoCondensed";
  936. color = "#E5E5E5";
  937. align = "left";
  938. shadow = "true";
  939. };
  940. idc = -1;
  941. style = 0;
  942. default = 0;
  943. shadow = 1;
  944. w = 0.183825;
  945. h = "((((safezoneW / safezoneH) min 1.2) / 1.2) / 20)";
  946. textSecondary = "";
  947. colorSecondary[] =
  948. {
  949. 1,
  950. 1,
  951. 1,
  952. 1
  953. };
  954. colorFocusedSecondary[] =
  955. {
  956. 1,
  957. 1,
  958. 1,
  959. 1
  960. };
  961. color2Secondary[] =
  962. {
  963. 0.95,
  964. 0.95,
  965. 0.95,
  966. 1
  967. };
  968. colorDisabledSecondary[] =
  969. {
  970. 1,
  971. 1,
  972. 1,
  973. 0.25
  974. };
  975. sizeExSecondary = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  976. fontSecondary = "RobotoCondensed";
  977. animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  978. animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  979. animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  980. animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa";
  981. animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa";
  982. animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa";
  983. periodFocus = 1.2;
  984. periodOver = 0.8;
  985. period = 0.4;
  986. font = "RobotoCondensed";
  987. size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  988. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  989. text = "";
  990. url = "";
  991. action = "";
  992. class AttributesImage
  993. {
  994. font = "RobotoCondensed";
  995. color = "#E5E5E5";
  996. align = "left";
  997. };
  998. };
  999. class RscShortcutButtonMain: GuiBaseControl
  1000. {
  1001. idc = -1;
  1002. style = 0;
  1003. default = 0;
  1004. w = 0.313726;
  1005. h = 0.104575;
  1006. color[] =
  1007. {
  1008. 1,
  1009. 1,
  1010. 1,
  1011. 1
  1012. };
  1013. colorDisabled[] =
  1014. {
  1015. 1,
  1016. 1,
  1017. 1,
  1018. 0.25
  1019. };
  1020. class HitZone
  1021. {
  1022. left = 0;
  1023. top = 0;
  1024. right = 0;
  1025. bottom = 0;
  1026. };
  1027. class ShortcutPos
  1028. {
  1029. left = 0.0145;
  1030. top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)) / 2";
  1031. w = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2) * (3/4)";
  1032. h = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
  1033. };
  1034. class TextPos
  1035. {
  1036. left = "(((safezoneW / safezoneH) min 1.2) / 32) * 1.5";
  1037. top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20)*2 - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)) / 2";
  1038. right = 0.005;
  1039. bottom = 0;
  1040. };
  1041. animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\normal_ca.paa";
  1042. animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\disabled_ca.paa";
  1043. animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\over_ca.paa";
  1044. animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\focus_ca.paa";
  1045. animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\down_ca.paa";
  1046. animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\normal_ca.paa";
  1047. period = 0.5;
  1048. font = "RobotoCondensed";
  1049. size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
  1050. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
  1051. text = "";
  1052. action = "";
  1053. class Attributes
  1054. {
  1055. font = "RobotoCondensed";
  1056. color = "#E5E5E5";
  1057. align = "left";
  1058. shadow = "false";
  1059. };
  1060. class AttributesImage
  1061. {
  1062. font = "RobotoCondensed";
  1063. color = "#E5E5E5";
  1064. align = "false";
  1065. };
  1066. };
  1067. class RscFrame: GuiBaseControl
  1068. {
  1069. type = 0;
  1070. idc = -1;
  1071. deletable = 0;
  1072. style = 64;
  1073. shadow = 2;
  1074. colorBackground[] =
  1075. {
  1076. 0,
  1077. 0,
  1078. 0,
  1079. 0
  1080. };
  1081. colorText[] =
  1082. {
  1083. 1,
  1084. 1,
  1085. 1,
  1086. 1
  1087. };
  1088. font = "RobotoCondensed";
  1089. sizeEx = 0.03;
  1090. text = "";
  1091. x = 0;
  1092. y = 0;
  1093. w = 0.3;
  1094. h = 0.3;
  1095. };
  1096. class RscSlider: GuiBaseControl
  1097. {
  1098. deletable = 0;
  1099. fade = 0;
  1100. access = 0;
  1101. type = 3;
  1102. style = 1024;
  1103. color[] =
  1104. {
  1105. 1,
  1106. 1,
  1107. 1,
  1108. 0.8
  1109. };
  1110. colorActive[] =
  1111. {
  1112. 1,
  1113. 1,
  1114. 1,
  1115. 1
  1116. };
  1117. shadow = 0;
  1118. x = 0;
  1119. y = 0;
  1120. w = 0.3;
  1121. h = 0.025;
  1122. };
  1123. class IGUIBack: GuiBaseControl
  1124. {
  1125. type = 0;
  1126. idc = 124;
  1127. style = 128;
  1128. text = "";
  1129. /*colorText[] =
  1130. {
  1131. 0,
  1132. 0,
  1133. 0,
  1134. 0
  1135. };*/
  1136. //font = "RobotoCondensed";
  1137. sizeEx = 0;
  1138. shadow = 0;
  1139. x = 0.1;
  1140. y = 0.1;
  1141. w = 0.1;
  1142. h = 0.1;
  1143. /*colorbackground[] =
  1144. {
  1145. "(profilenamespace getvariable ['IGUI_BCG_RGB_R',0])",
  1146. "(profilenamespace getvariable ['IGUI_BCG_RGB_G',1])",
  1147. "(profilenamespace getvariable ['IGUI_BCG_RGB_B',1])",
  1148. "(profilenamespace getvariable ['IGUI_BCG_RGB_A',0.8])"
  1149. };*/
  1150. };
  1151. class RscCheckBox: GuiBaseControl
  1152. {
  1153. color[] =
  1154. {
  1155. 1,
  1156. 1,
  1157. 1,
  1158. 0.7
  1159. };
  1160. colorFocused[] =
  1161. {
  1162. 1,
  1163. 1,
  1164. 1,
  1165. 1
  1166. };
  1167. colorHover[] =
  1168. {
  1169. 1,
  1170. 1,
  1171. 1,
  1172. 1
  1173. };
  1174. colorPressed[] =
  1175. {
  1176. 1,
  1177. 1,
  1178. 1,
  1179. 1
  1180. };
  1181. colorDisabled[] =
  1182. {
  1183. 1,
  1184. 1,
  1185. 1,
  1186. 0.2
  1187. };
  1188. colorBackground[] =
  1189. {
  1190. 0,
  1191. 0,
  1192. 0,
  1193. 0
  1194. };
  1195. colorBackgroundFocused[] =
  1196. {
  1197. 0,
  1198. 0,
  1199. 0,
  1200. 0
  1201. };
  1202. colorBackgroundHover[] =
  1203. {
  1204. 0,
  1205. 0,
  1206. 0,
  1207. 0
  1208. };
  1209. colorBackgroundPressed[] =
  1210. {
  1211. 0,
  1212. 0,
  1213. 0,
  1214. 0
  1215. };
  1216. colorBackgroundDisabled[] =
  1217. {
  1218. 0,
  1219. 0,
  1220. 0,
  1221. 0
  1222. };
  1223. tooltipColorText[] =
  1224. {
  1225. 1,
  1226. 1,
  1227. 1,
  1228. 1
  1229. };
  1230. tooltipColorBox[] =
  1231. {
  1232. 1,
  1233. 1,
  1234. 1,
  1235. 1
  1236. };
  1237. tooltipColorShade[] =
  1238. {
  1239. 0,
  1240. 0,
  1241. 0,
  1242. 0.65
  1243. };
  1244. soundEnter[] =
  1245. {
  1246. "",
  1247. 0.1,
  1248. 1
  1249. };
  1250. soundPush[] =
  1251. {
  1252. "",
  1253. 0.1,
  1254. 1
  1255. };
  1256. soundClick[] =
  1257. {
  1258. "",
  1259. 0.1,
  1260. 1
  1261. };
  1262. soundEscape[] =
  1263. {
  1264. "",
  1265. 0.1,
  1266. 1
  1267. };
  1268. idc = -1;
  1269. type = 77;
  1270. deletable = 0;
  1271. style = 0;
  1272. checked = 0;
  1273. x = "0.375 * safezoneW + safezoneX";
  1274. y = "0.36 * safezoneH + safezoneY";
  1275. w = "0.025 * safezoneW";
  1276. h = "0.04 * safezoneH";
  1277. textureChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  1278. textureUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  1279. textureFocusedChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  1280. textureFocusedUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  1281. textureHoverChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  1282. textureHoverUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  1283. texturePressedChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  1284. texturePressedUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  1285. textureDisabledChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  1286. textureDisabledUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  1287. };
  1288. class RscTextCheckBox: GuiBaseControl
  1289. {
  1290. idc = -1;
  1291. type = 7;
  1292. style = 0;
  1293. x = "0.375 * safezoneW + safezoneX";
  1294. y = "0.36 * safezoneH + safezoneY";
  1295. w = "0.025 * safezoneW";
  1296. h = "0.04 * safezoneH";
  1297. colorText[] =
  1298. {
  1299. 1,
  1300. 0,
  1301. 0,
  1302. 1
  1303. };
  1304. color[] =
  1305. {
  1306. 0,
  1307. 0,
  1308. 0,
  1309. 0
  1310. };
  1311. colorBackground[] =
  1312. {
  1313. 0,
  1314. 0,
  1315. 0,
  1316. 0
  1317. };
  1318. colorTextSelect[] =
  1319. {
  1320. 0,
  1321. 0.8,
  1322. 0,
  1323. 1
  1324. };
  1325. colorSelectedBg[] =
  1326. {
  1327. "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
  1328. "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
  1329. "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
  1330. 1
  1331. };
  1332. colorSelect[] =
  1333. {
  1334. 0,
  1335. 0,
  1336. 0,
  1337. 1
  1338. };
  1339. colorTextDisable[] =
  1340. {
  1341. 0.4,
  1342. 0.4,
  1343. 0.4,
  1344. 1
  1345. };
  1346. colorDisable[] =
  1347. {
  1348. 0.4,
  1349. 0.4,
  1350. 0.4,
  1351. 1
  1352. };
  1353. tooltipColorText[] =
  1354. {
  1355. 1,
  1356. 1,
  1357. 1,
  1358. 1
  1359. };
  1360. tooltipColorBox[] =
  1361. {
  1362. 1,
  1363. 1,
  1364. 1,
  1365. 1
  1366. };
  1367. tooltipColorShade[] =
  1368. {
  1369. 0,
  1370. 0,
  1371. 0,
  1372. 0.65
  1373. };
  1374. font = "RobotoCondensed";
  1375. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
  1376. rows = 1;
  1377. columns = 1;
  1378. strings[] =
  1379. {
  1380. "UNCHECKED"
  1381. };
  1382. checked_strings[] =
  1383. {
  1384. "CHECKED"
  1385. };
  1386. };
  1387. class RscButtonMenu: GuiBaseControl
  1388. {
  1389. idc = -1;
  1390. type = 16;
  1391. style = "0x02 + 0xC0";
  1392. default = 0;
  1393. shadow = 0;
  1394. x = 0;
  1395. y = 0;
  1396. w = 0.095589;
  1397. h = 0.039216;
  1398. animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
  1399. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
  1400. animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
  1401. animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
  1402. animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
  1403. animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
  1404. colorBackground[] =
  1405. {
  1406. 0,
  1407. 0,
  1408. 0,
  1409. 0.8
  1410. };
  1411. colorBackgroundFocused[] =
  1412. {
  1413. 1,
  1414. 1,
  1415. 1,
  1416. 1
  1417. };
  1418. colorBackground2[] =
  1419. {
  1420. 0.75,
  1421. 0.75,
  1422. 0.75,
  1423. 1
  1424. };
  1425. color[] =
  1426. {
  1427. 1,
  1428. 1,
  1429. 1,
  1430. 1
  1431. };
  1432. colorFocused[] =
  1433. {
  1434. 0,
  1435. 0,
  1436. 0,
  1437. 1
  1438. };
  1439. color2[] =
  1440. {
  1441. 0,
  1442. 0,
  1443. 0,
  1444. 1
  1445. };
  1446. colorText[] =
  1447. {
  1448. 1,
  1449. 1,
  1450. 1,
  1451. 1
  1452. };
  1453. colorDisabled[] =
  1454. {
  1455. 1,
  1456. 1,
  1457. 1,
  1458. 0.25
  1459. };
  1460. textSecondary = "";
  1461. colorSecondary[] =
  1462. {
  1463. 1,
  1464. 1,
  1465. 1,
  1466. 1
  1467. };
  1468. colorFocusedSecondary[] =
  1469. {
  1470. 0,
  1471. 0,
  1472. 0,
  1473. 1
  1474. };
  1475. color2Secondary[] =
  1476. {
  1477. 0,
  1478. 0,
  1479. 0,
  1480. 1
  1481. };
  1482. colorDisabledSecondary[] =
  1483. {
  1484. 1,
  1485. 1,
  1486. 1,
  1487. 0.25
  1488. };
  1489. sizeExSecondary = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  1490. fontSecondary = "PuristaLight";
  1491. period = 1.2;
  1492. periodFocus = 1.2;
  1493. periodOver = 1.2;
  1494. size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  1495. sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  1496. tooltipColorText[] =
  1497. {
  1498. 1,
  1499. 1,
  1500. 1,
  1501. 1
  1502. };
  1503. tooltipColorBox[] =
  1504. {
  1505. 1,
  1506. 1,
  1507. 1,
  1508. 1
  1509. };
  1510. tooltipColorShade[] =
  1511. {
  1512. 0,
  1513. 0,
  1514. 0,
  1515. 0.65
  1516. };
  1517. class TextPos
  1518. {
  1519. left = "0.25 * (((safezoneW / safezoneH) min 1.2) / 40)";
  1520. top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  1521. right = 0.005;
  1522. bottom = 0;
  1523. };
  1524. class Attributes
  1525. {
  1526. font = "PuristaLight";
  1527. color = "#E5E5E5";
  1528. align = "left";
  1529. shadow = "false";
  1530. };
  1531. class ShortcutPos
  1532. {
  1533. left = "5.25 * (((safezoneW / safezoneH) min 1.2) / 40)";
  1534. top = 0;
  1535. w = "1 * (((safezoneW / safezoneH) min 1.2) / 40)";
  1536. h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
  1537. };
  1538. soundEnter[] =
  1539. {
  1540. "\A3\ui_f\data\sound\RscButtonMenu\soundEnter",
  1541. 0.09,
  1542. 1
  1543. };
  1544. soundPush[] =
  1545. {
  1546. "\A3\ui_f\data\sound\RscButtonMenu\soundPush",
  1547. 0.09,
  1548. 1
  1549. };
  1550. soundClick[] =
  1551. {
  1552. "\A3\ui_f\data\sound\RscButtonMenu\soundClick",
  1553. 0.09,
  1554. 1
  1555. };
  1556. soundEscape[] =
  1557. {
  1558. "\A3\ui_f\data\sound\RscButtonMenu\soundEscape",
  1559. 0.09,
  1560. 1
  1561. };
  1562. };
  1563. class RscButtonMenuOK: GuiBaseControl
  1564. {
  1565. idc = 1;
  1566. shortcuts[] =
  1567. {
  1568. "0x00050000 + 0",
  1569. 28,
  1570. 57,
  1571. 156
  1572. };
  1573. default = 1;
  1574. text = "OK";
  1575. soundPush[] =
  1576. {
  1577. "\A3\ui_f\data\sound\RscButtonMenuOK\soundPush",
  1578. 0.09,
  1579. 1
  1580. };
  1581. };
  1582. class RscButtonMenuCancel: GuiBaseControl
  1583. {
  1584. idc = 2;
  1585. shortcuts[] =
  1586. {
  1587. "0x00050000 + 1"
  1588. };
  1589. text = "Cancel";
  1590. };
  1591. class RscControlsGroup: GuiBaseControl
  1592. {
  1593. deletable = 0;
  1594. fade = 0;
  1595.  
  1596. style = 0; // Need this instead of 16 for scrollbar arrows
  1597.  
  1598. class VScrollbar
  1599. {
  1600. color[] =
  1601. {
  1602. 1,
  1603. 1,
  1604. 1,
  1605. 1
  1606. };
  1607. width = 0.021;
  1608. autoScrollEnabled = 1;
  1609. };
  1610. class HScrollbar
  1611. {
  1612. color[] =
  1613. {
  1614. 1,
  1615. 1,
  1616. 1,
  1617. 1
  1618. };
  1619. height = 0.028;
  1620. };
  1621. class Controls
  1622. {
  1623. };
  1624. type = 15;
  1625. idc = -1;
  1626. x = 0;
  1627. y = 0;
  1628. w = 1;
  1629. h = 1;
  1630. shadow = 0;
  1631. //style = 16;
  1632. };
  1633.  
  1634. // Added:
  1635. class RscProgress
  1636. {
  1637. type = 8;
  1638. style = 0;
  1639. colorFrame[] = {0,0,0,1};
  1640. colorBar[] = {1,1,1,1};
  1641. texture = "#(argb,8,8,3)color(1,1,1,1)";
  1642. w = 1;
  1643. h = 0.03;
  1644. };
  1645.  
  1646. class RscImgButton: RscButton
  1647. {
  1648. type = CT_ACTIVETEXT;
  1649. style = ST_PICTURE + ST_KEEP_ASPECT_RATIO;
  1650. action = "";
  1651. tooltip = "";
  1652.  
  1653.  
  1654.  
  1655. color[] = {0,1,0,1};
  1656. colorActive[] = {0,0,1,1};
  1657. colorDisabled[] = {0,0,0,1};
  1658.  
  1659. };
  1660.  
  1661.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement