Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. class Life_Vehicle_Shop_v2_3D {
  2. idd = 2300;
  3. name = "life_vehicle_shop";
  4. movingEnable = 0;
  5. enableSimulation = 1;
  6. onLoad = "call life_fnc_3dPreviewInit; ctrlShow [2330,false];";
  7. onUnLoad = "call life_fnc_3dPreviewExit;";
  8.  
  9. class controlsBackground {
  10. class MainBackground: Life_RscText {
  11. colorBackground[] = {0,0,0,0.7};
  12. idc = -1;
  13. x = 0.0204687 * safezoneW + safezoneX;
  14. y = 0.06 * safezoneH + safezoneY;
  15. w = 0.149531 * safezoneW;
  16. h = 0.638 * safezoneH;
  17. };
  18.  
  19. class SecondBackground: Life_RscText {
  20. colorBackground[] = {0,0,0,0.7};
  21. idc = -1;
  22. x = 0.809375 * safezoneW + safezoneX;
  23. y = 0.06 * safezoneH + safezoneY;
  24. w = 0.190781 * safezoneW;
  25. h = 0.341 * safezoneH;
  26. };
  27.  
  28. class Title: Life_RscTitle {
  29. idc = 2301;
  30. text = "";
  31. x = 0.0204687 * safezoneW + safezoneX;
  32. y = 0.027 * safezoneH + safezoneY;
  33. w = 0.144375 * safezoneW;
  34. h = 0.033 * safezoneH;
  35. };
  36.  
  37. class VehicleTitleBox: Life_RscText {
  38. idc = -1;
  39. text = "$STR_GUI_ShopStock";
  40. colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  41. x = 0.0204687 * safezoneW + safezoneX;
  42. y = 0.06 * safezoneH + safezoneY;
  43. w = 0.149531 * safezoneW;
  44. h = 0.033 * safezoneH;
  45. };
  46.  
  47. class VehicleInfoHeader: Life_RscText {
  48. idc = 2330;
  49. text = "$STR_GUI_VehInfo";
  50. colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  51. x = 0.809375 * safezoneW + safezoneX;
  52. y = 0.058 * safezoneH + safezoneY;
  53. w = 0.190781 * safezoneW;
  54. h = 0.022 * safezoneH;
  55. };
  56.  
  57. class CloseBtn: Life_RscButtonMenu {
  58. idc = -1;
  59. text = "$STR_Global_Close";
  60. onButtonClick = "closeDialog 0;";
  61. x = 0.0204687 * safezoneW + safezoneX;
  62. y = 0.669387 * safezoneH + safezoneY;
  63. w = 0.0721724 * safezoneW;
  64. h = 0.0219957 * safezoneH;
  65. };
  66.  
  67. class RentCar: Life_RscButtonMenu {
  68. idc = -1;
  69. text = "$STR_Global_RentVeh";
  70. onButtonClick = "[false] spawn life_fnc_vehicleShopBuy;";
  71. x = 0.0964687 * safezoneW + safezoneX;
  72. y = 0.636393 * safezoneH + safezoneY;
  73. w = 0.0721724 * safezoneW;
  74. h = 0.0219957 * safezoneH;
  75. };
  76.  
  77. class BuyCar: Life_RscButtonMenu {
  78. idc = 2309;
  79. text = "$STR_Global_Buy";
  80. onButtonClick = "[true] spawn life_fnc_vehicleShopBuy;";
  81. x = 0.0204687 * safezoneW + safezoneX;
  82. y = 0.636393 * safezoneH + safezoneY;
  83. w = 0.0721724 * safezoneW;
  84. h = 0.0219957 * safezoneH;
  85. };
  86. };
  87.  
  88. class controls {
  89. class VehicleList: Life_RscListBox {
  90. idc = 2302;
  91. text = "";
  92. sizeEx = 0.04;
  93. colorBackground[] = {0.1,0.1,0.1,0.9};
  94. onLBSelChanged = "_this call life_fnc_vehicleShopLBChange";
  95. x = 0.023487 * safezoneW + safezoneX;
  96. y = 0.095 * safezoneH + safezoneY;
  97. w = 0.144375 * safezoneW;
  98. h = 0.50 * safezoneH;
  99. };
  100.  
  101. class ColorList: Life_RscCombo {
  102. idc = 2304;
  103. onLBSelChanged = "call life_fnc_vehicleColor3DRefresh;";
  104. x = 0.0204687 * safezoneW + safezoneX;
  105. y = 0.6034 * safezoneH + safezoneY;
  106. w = 0.149531 * safezoneW;
  107. h = 0.0219957 * safezoneH;
  108. };
  109.  
  110. class vehicleInfomationList: Life_RscStructuredText {
  111. idc = 2303;
  112. text = "";
  113. sizeEx = 0.035;
  114. x = 0.819688 * safezoneW + safezoneX;
  115. y = 0.104 * safezoneH + safezoneY;
  116. w = 0.175313 * safezoneW;
  117. h = 0.275 * safezoneH;
  118. };
  119. };
  120. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement