TheRouletteBoi

Scaleform CUSTOM_WARNING_SCREEN Decompiled

Jun 29th, 2016
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 41.39 KB | None | 0 0
  1. // Action script...
  2.  
  3. // [Action in Frame 1]
  4. var TIMELINE = new com.rockstargames.gtav.levelDesign.CUSTOM_WARNING_SCREEN();
  5. TIMELINE.INITIALISE(this);
  6. -----------------------------------------------------------------
  7. // Action script...
  8.  
  9. // [Initial MovieClip Action of sprite 6]
  10. #initclip 12
  11. Object.registerClass("WarningScreenListItem", com.rockstargames.gtav.levelDesign.WarningScreenListItem);
  12. #endinitclip
  13.  
  14. ---------------------------------------------
  15. // Action script...
  16.  
  17. // [Initial MovieClip Action of sprite 7]
  18. #initclip 11
  19. Object.registerClass("WarningScreenList", com.rockstargames.gtav.levelDesign.WarningScreenList);
  20. #endinitclip
  21. ---------------------------------------------------------------
  22. // Action script...
  23.  
  24. // [Initial MovieClip Action of sprite 18]
  25. #initclip 1
  26. class com.rockstargames.gtav.levelDesign.BaseScriptUI extends MovieClip
  27. {
  28.     var TIMELINE, CONTENT, BOUNDING_BOX;
  29.     function BaseScriptUI()
  30.     {
  31.         super();
  32.     } // End of the function
  33.     function INITIALISE(mc)
  34.     {
  35.         TIMELINE = mc;
  36.         CONTENT = TIMELINE.attachMovie("CONTENT", "CONTENT", TIMELINE.getNextHighestDepth());
  37.         BOUNDING_BOX = TIMELINE.attachMovie("BOUNDING_BOX", "BOUNDING_BOX", TIMELINE.getNextHighestDepth());
  38.         BOUNDING_BOX._visible = false;
  39.     } // End of the function
  40. } // End of Class
  41. #endinitclip
  42. --------------------------------------------------------------------
  43. // Action script...
  44.  
  45. // [Initial MovieClip Action of sprite 19]
  46. #initclip 2
  47. class com.rockstargames.ui.core.BaseScreenLayout extends com.rockstargames.gtav.levelDesign.BaseScriptUI
  48. {
  49.     function BaseScreenLayout()
  50.     {
  51.         super();
  52.     } // End of the function
  53.     function SET_DISPLAY_CONFIG(_screenWidthPixels, _screenHeightPixels, _safeTopPercent, _safeBottomPercent, _safeLeftPercent, _safeRightPercent, _isWideScreen, _isHiDef, _isAsian)
  54.     {
  55.         isWideScreen = _isWideScreen;
  56.         if (isWideScreen)
  57.         {
  58.             screenWidthPixels = 1280;
  59.             screenHeightPixels = 720;
  60.         }
  61.         else
  62.         {
  63.             screenWidthPixels = 960;
  64.             screenHeightPixels = 720;
  65.         } // end else if
  66.         safeLeft = Math.round(screenWidthPixels * _safeLeftPercent);
  67.         safeRight = Math.round(screenWidthPixels * _safeRightPercent);
  68.         safeTop = Math.round(screenHeightPixels * _safeTopPercent);
  69.         safeBottom = Math.round(screenHeightPixels * _safeBottomPercent);
  70.         if (!isWideScreen)
  71.         {
  72.             Stage.scaleMode = "noBorder";
  73.         } // end if
  74.         isHiDef = _isHiDef;
  75.         this.initScreenLayout();
  76.     } // End of the function
  77.     function getDisplayConfig(shouldSet)
  78.     {
  79.         if (shouldSet == undefined)
  80.         {
  81.             shouldSet = true;
  82.         } // end if
  83.         var _loc2 = new com.rockstargames.ui.utils.DisplayConfig();
  84.         com.rockstargames.ui.game.GameInterface.call("SET_DISPLAY_CONFIG", com.rockstargames.ui.game.GameInterface.GENERIC_TYPE, _loc2);
  85.         if (shouldSet)
  86.         {
  87.             this.SET_DISPLAY_CONFIG(_loc2.screenWidth, _loc2.screenHeight, _loc2.safeTop, _loc2.safeBottom, _loc2.safeLeft, _loc2.safeRight, _loc2.isWideScreen, _loc2.isCircleAccept, _loc2.isAsian);
  88.         } // end if
  89.         return (_loc2);
  90.     } // End of the function
  91.     function initScreenLayout()
  92.     {
  93.     } // End of the function
  94.     function addMCToScreenLayout(linkageID, instanceName, containerMC, position, onPixel)
  95.     {
  96.         var _loc3 = containerMC.getNextHighestDepth();
  97.         var _loc2 = containerMC.attachMovie(linkageID, instanceName, _loc3);
  98.         this.positionToScreenLayout(_loc2, position, onPixel);
  99.         return (_loc2);
  100.     } // End of the function
  101.     function positionToScreenLayout(mc, position, onPixel)
  102.     {
  103.         var _loc4 = mc._width;
  104.         var _loc5 = mc._height;
  105.         var _loc3 = 0;
  106.         var _loc2 = 0;
  107.         switch (position)
  108.         {
  109.             case "LT":
  110.             case "xLT":
  111.             {
  112.                 _loc3 = safeLeft;
  113.                 _loc2 = safeTop;
  114.                 break;
  115.             }
  116.             case "RT":
  117.             {
  118.                 _loc3 = safeRight - _loc4;
  119.                 _loc2 = safeTop;
  120.                 break;
  121.             }
  122.             case "LB":
  123.             {
  124.                 _loc3 = safeLeft;
  125.                 _loc2 = safeBottom - _loc5;
  126.                 break;
  127.             }
  128.             case "RB":
  129.             {
  130.                 _loc3 = safeRight - _loc4;
  131.                 _loc2 = safeBottom - _loc5;
  132.                 break;
  133.             }
  134.             case "CC":
  135.             {
  136.                 _loc3 = FILE_WIDTH / 2 - _loc4 / 2;
  137.                 _loc2 = safeTop + (safeBottom - safeTop) / 2 - _loc5 / 2;
  138.                 break;
  139.             }
  140.             case "CB":
  141.             {
  142.                 _loc3 = safeLeft + (safeRight - safeLeft) / 2 - _loc4 / 2;
  143.                 _loc2 = safeBottom - _loc5;
  144.                 break;
  145.             }
  146.             case "CT":
  147.             {
  148.                 _loc3 = safeLeft + (safeRight - safeLeft) / 2 - _loc4 / 2;
  149.                 _loc2 = safeTop;
  150.                 break;
  151.             }
  152.             case "xRT":
  153.             {
  154.                 _loc3 = safeRight;
  155.                 _loc2 = safeTop;
  156.                 break;
  157.             }
  158.             case "xLB":
  159.             {
  160.                 _loc3 = safeLeft;
  161.                 _loc2 = safeBottom;
  162.                 break;
  163.             }
  164.             case "xRB":
  165.             {
  166.                 _loc3 = safeRight;
  167.                 _loc2 = safeBottom;
  168.                 break;
  169.             }
  170.             case "xCC":
  171.             {
  172.                 _loc3 = FILE_WIDTH / 2 - _loc4 / 2;
  173.                 _loc2 = safeTop + (safeBottom - safeTop) / 2;
  174.                 break;
  175.             }
  176.             case "xCB":
  177.             {
  178.                 _loc3 = FILE_WIDTH / 2 - _loc4 / 2;
  179.                 _loc2 = safeBottom;
  180.                 break;
  181.             }
  182.             case "xCT":
  183.             {
  184.                 _loc3 = FILE_WIDTH / 2 - _loc4 / 2;
  185.                 _loc2 = safeTop;
  186.                 break;
  187.             }
  188.         } // End of switch
  189.         if (onPixel)
  190.         {
  191.             _loc3 = Math.round(_loc3);
  192.             _loc2 = Math.round(_loc2);
  193.         } // end if
  194.         mc._x = _loc3;
  195.         mc._y = _loc2;
  196.     } // End of the function
  197.     var FILE_WIDTH = 1280;
  198.     var screenWidthPixels = 1280;
  199.     var screenHeightPixels = 720;
  200.     var safeTop = 54;
  201.     var safeBottom = 666;
  202.     var safeLeft = 96;
  203.     var safeRight = 1184;
  204.     var isWideScreen = true;
  205.     var isHiDef = true;
  206.     var isMultiplayer = false;
  207.     var FOUR_THREE_PADDING = 0;
  208.     var SD_CLIPPING = 0.125000;
  209. } // End of Class
  210. #endinitclip
  211.  
  212. -----------------------------------------------------------------------------
  213. // Action script...
  214.  
  215. // [Initial MovieClip Action of sprite 20]
  216. #initclip 3
  217. class com.rockstargames.ui.utils.DisplayConfig
  218. {
  219.     var screenWidth, screenHeight, safeTop, safeBottom, safeLeft, safeRight, isWideScreen, isCircleAccept, isHiDef, isAsian;
  220.     function DisplayConfig()
  221.     {
  222.         screenWidth = 1280;
  223.         screenHeight = 720;
  224.         safeTop = 0.500000;
  225.         safeBottom = 0.950000;
  226.         safeLeft = 0.050000;
  227.         safeRight = 0.950000;
  228.         isWideScreen = true;
  229.         isCircleAccept = false;
  230.         isHiDef = true;
  231.         isAsian = false;
  232.     } // End of the function
  233. } // End of Class
  234. #endinitclip
  235. --------------------------------------------------------------------------------
  236. // Action script...
  237.  
  238. // [Initial MovieClip Action of sprite 21]
  239. #initclip 4
  240. class com.rockstargames.ui.game.GameInterface
  241. {
  242.     function GameInterface()
  243.     {
  244.     } // End of the function
  245.     static function call()
  246.     {
  247.         flash.external.ExternalInterface.call.apply(null, arguments);
  248.     } // End of the function
  249.     static var GENERIC_TYPE = 0;
  250.     static var SCRIPT_TYPE = 1;
  251.     static var HUD_TYPE = 2;
  252.     static var MINIMAP_TYPE = 3;
  253.     static var WEB_TYPE = 4;
  254.     static var CUTSCENE_TYPE = 5;
  255.     static var PAUSE_TYPE = 6;
  256.     static var STORE = 7;
  257. } // End of Class
  258. #endinitclip
  259.  
  260.  
  261. -------------------------------------------------------------------------------------------------------------------------------------
  262.  
  263. // Action script...
  264.  
  265. // [Initial MovieClip Action of sprite 22]
  266. #initclip 5
  267. class com.rockstargames.gtav.levelDesign.INSTRUCTIONAL_BUTTONS extends com.rockstargames.ui.core.BaseScreenLayout
  268. {
  269.     var _leadingSize, lineYPosition, spaceBetweenInstructions, spaceBetweenSpaceAndButton, maxLines, dataArray, DispConf, getDisplayConfig, buttonList, backgrounds, backgroundMCS, instructionalTextFormat, FOUR_THREE_PADDING, container, respawn_spinnerMC, savingIconID, screenWidthPixels, background, screenHeightPixels, CONTENT, backgroundColours, FILE_WIDTH;
  270.     function INSTRUCTIONAL_BUTTONS()
  271.     {
  272.         super();
  273.         this.CONSTRUCTION_INNARDS();
  274.     } // End of the function
  275.     function CONSTRUCTION_INNARDS()
  276.     {
  277.         _leadingSize = 2;
  278.         lineYPosition = 0;
  279.         spaceBetweenInstructions = 12;
  280.         spaceBetweenSpaceAndButton = 6;
  281.         maxLines = 20;
  282.         dataArray = [];
  283.         DispConf = new com.rockstargames.ui.utils.DisplayConfig();
  284.         DispConf = this.getDisplayConfig(true);
  285.     } // End of the function
  286.     function INITIALISE(mc)
  287.     {
  288.         super.INITIALISE(mc);
  289.         buttonList = [];
  290.         backgrounds = [];
  291.         backgroundMCS = [];
  292.         instructionalTextFormat = new TextFormat();
  293.         instructionalTextFormat.font = "$Font2";
  294.         instructionalTextFormat.size = 12;
  295.         var _loc4 = new com.rockstargames.ui.utils.HudColour();
  296.         com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE, _loc4);
  297.         instructionalTextFormat.color = com.rockstargames.ui.utils.Colour.RGBToHex(_loc4.r, _loc4.g, _loc4.b);
  298.         var _loc3 = new com.rockstargames.ui.utils.HudColour();
  299.         com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_INGAME_BG, _loc3);
  300.         this.SET_BACKGROUND_COLOUR(_loc3.r, _loc3.g, _loc3.b, _loc3.a);
  301.     } // End of the function
  302.     function initScreenLayout()
  303.     {
  304.         if (!DispConf.isWideScreen)
  305.         {
  306.             Stage.scaleMode = "noBorder";
  307.             DispConf.screenWidth = 960;
  308.             FOUR_THREE_PADDING = 160;
  309.         } // end if
  310.         container._x = FOUR_THREE_PADDING + DispConf.safeRight * DispConf.screenWidth;
  311.         container._y = DispConf.safeBottom * DispConf.screenHeight;
  312.         var _loc6;
  313.         var _loc5;
  314.         var _loc4;
  315.         var _loc3;
  316.         for (var _loc2 = 0; _loc2 < backgroundMCS.length; ++_loc2)
  317.         {
  318.             _loc4 = backgrounds[_loc2];
  319.             if (_loc2 < 1)
  320.             {
  321.                 _loc4 = _loc4 + PADDING * 2;
  322.             } // end if
  323.             _loc6 = FOUR_THREE_PADDING + (DispConf.safeRight * DispConf.screenWidth - _loc4);
  324.             _loc5 = DispConf.safeBottom * DispConf.screenHeight - (iconSize + _leadingSize) * _loc2 - iconSize;
  325.             if (backgroundMCS[_loc2] != undefined)
  326.             {
  327.                 _loc3 = backgroundMCS[_loc2];
  328.                 _loc3._x = _loc6;
  329.                 _loc3._y = _loc5;
  330.             } // end if
  331.         } // end of for
  332.     } // End of the function
  333.     function SET_DISPLAY_CONFIG(_screenWidthPixels, _screenHeightPixels, _safeTopPercent, _safeBottomPercent, _safeLeftPercent, _safeRightPercent, _isWideScreen, _isCircleAccept)
  334.     {
  335.         DispConf.isCircleAccept = _isCircleAccept;
  336.         DispConf.isWideScreen = _isWideScreen;
  337.         DispConf.safeBottom = _safeBottomPercent;
  338.         DispConf.safeLeft = _safeLeftPercent;
  339.         DispConf.safeRight = _safeRightPercent;
  340.         DispConf.safeTop = _safeTopPercent;
  341.         DispConf.screenHeight = _screenHeightPixels;
  342.         DispConf.screenWidth = _screenWidthPixels;
  343.         this.initScreenLayout();
  344.     } // End of the function
  345.     function debug()
  346.     {
  347.         this.SET_DISPLAY_CONFIG(960, 720, 0.050000, 0.950000, 0.050000, 0.950000, false, true);
  348.         this.SET_DATA_SLOT(0, 44, "Leaderboard ending... 60");
  349.         this.SET_DATA_SLOT(1, 30, "ACCEPT");
  350.         this.SET_DATA_SLOT(2, 31, "BACK");
  351.         this.DRAW_INSTRUCTIONAL_BUTTONS(1);
  352.     } // End of the function
  353.     function saveSpinerFrame()
  354.     {
  355.         if (typeof(respawn_spinnerMC) == "movieclip")
  356.         {
  357.             var _loc2 = respawn_spinnerMC.spinner;
  358.             if (_loc2 != undefined)
  359.             {
  360.                 respawn_spinner_frame = _loc2._currentframe;
  361.             } // end if
  362.         } // end if
  363.     } // End of the function
  364.     function SET_SAVING_TEXT(iconEnum, saveStr)
  365.     {
  366.         savingText = saveStr;
  367.         savingIconID = iconEnum;
  368.         var _loc9 = 0;
  369.         var _loc5 = 1;
  370.         var _loc8 = 2;
  371.         var _loc10 = 3;
  372.         var _loc7 = 4;
  373.         var _loc6 = 5;
  374.         if (saveStr == undefined)
  375.         {
  376.             saveStr = "";
  377.         } // end if
  378.         var _loc2 = 48;
  379.         if (iconEnum == _loc5)
  380.         {
  381.             _loc2 = 50;
  382.         } // end if
  383.         if (iconEnum == _loc7)
  384.         {
  385.             _loc2 = 49;
  386.         } // end if
  387.         if (iconEnum == _loc6)
  388.         {
  389.             _loc2 = 48;
  390.         } // end if
  391.         if (is_saving)
  392.         {
  393.             this.REMOVE_SAVING();
  394.         } // end if
  395.         dataArray.unshift([_loc2, saveStr]);
  396.         this.CLEAR_RENDER();
  397.         this.DRAW_INSTRUCTIONAL_BUTTONS(stackType);
  398.         is_saving = true;
  399.     } // End of the function
  400.     function REMOVE_SAVING()
  401.     {
  402.         if (is_saving)
  403.         {
  404.             dataArray.shift();
  405.             this.CLEAR_RENDER();
  406.             this.DRAW_INSTRUCTIONAL_BUTTONS(stackType);
  407.         } // end if
  408.         is_saving = false;
  409.     } // End of the function
  410.     function CLEAR_ALL()
  411.     {
  412.         this.saveSpinerFrame();
  413.         buttonList = [];
  414.         backgrounds = [];
  415.         this.CREATE_CONTAINER();
  416.         dataArray = new Array();
  417.         this.CLEAR_BACKGROUNDS();
  418.         if (is_saving)
  419.         {
  420.             this.SET_SAVING_TEXT(savingIconID, savingText);
  421.         } // end if
  422.     } // End of the function
  423.     function CLEAR_RENDER()
  424.     {
  425.         this.saveSpinerFrame();
  426.         buttonList = [];
  427.         backgrounds = [];
  428.         backgroundMCS = [];
  429.         this.CREATE_CONTAINER();
  430.         this.CLEAR_BACKGROUNDS();
  431.     } // End of the function
  432.     function OVERRIDE_POSITION(newX, newY, alignBottomRight)
  433.     {
  434.         if (alignBottomRight == undefined)
  435.         {
  436.             alignBottomRight = false;
  437.         } // end if
  438.         container._x = -screenWidthPixels + (screenWidthPixels - background._x);
  439.         container._y = -screenHeightPixels + (screenHeightPixels - background._y);
  440.         container._x = container._x + newX;
  441.         container._y = container._y + newY;
  442.         if (alignBottomRight)
  443.         {
  444.             container._x = container._x - container._width;
  445.             container._y = container._y - container._height;
  446.         } // end if
  447.     } // End of the function
  448.     function SET_CLEAR_SPACE(clearSpace)
  449.     {
  450.         this.SET_MAX_WIDTH((DispConf.screenWidth - clearSpace) / DispConf.screenWidth);
  451.     } // End of the function
  452.     function SET_LEADING(newLeading)
  453.     {
  454.     } // End of the function
  455.     function SET_DATA_SLOT()
  456.     {
  457.         var _loc3 = arguments[0];
  458.         if (is_saving)
  459.         {
  460.             ++_loc3;
  461.         } // end if
  462.         dataArray[_loc3] = arguments.slice(1);
  463.     } // End of the function
  464.     function SET_DATA_SLOT_EMPTY()
  465.     {
  466.         this.CLEAR_ALL();
  467.     } // End of the function
  468.     function CREATE_CONTAINER()
  469.     {
  470.         if (container)
  471.         {
  472.             container.removeMovieClip();
  473.         } // end if
  474.         container = CONTENT.createEmptyMovieClip("container", 100, {_x: 0, _y: 0});
  475.     } // End of the function
  476.     function CLEAR_BACKGROUNDS()
  477.     {
  478.         for (var _loc2 = 0; _loc2 < backgroundMCS.length; ++_loc2)
  479.         {
  480.             backgroundMCS[_loc2].removeMovieClip();
  481.         } // end of for
  482.         backgroundMCS = [];
  483.     } // End of the function
  484.     function DRAW_INSTRUCTIONAL_BUTTONS(layoutType)
  485.     {
  486.         fullWidth = 0;
  487.         if (layoutType == 1)
  488.         {
  489.             this.SET_MAX_WIDTH(0);
  490.         } // end if
  491.         if (layoutType == -1)
  492.         {
  493.             this.SET_MAX_WIDTH(1);
  494.             OVERRIDE_BUTTON_SWAP = true;
  495.         }
  496.         else
  497.         {
  498.             OVERRIDE_BUTTON_SWAP = false;
  499.         } // end else if
  500.         if (layoutType == undefined)
  501.         {
  502.             this.SET_MAX_WIDTH(1);
  503.             layoutType = 0;
  504.         } // end if
  505.         stackType = layoutType;
  506.         if (dataArray.length > 0)
  507.         {
  508.             lineYPosition = 1;
  509.             this.CREATE_CONTAINER();
  510.             buttonList = [];
  511.             backgrounds = [];
  512.             backgroundMCS = [];
  513.             this.createLineOfButtons(0, 0);
  514.         } // end if
  515.         this.SET_BACKGROUND();
  516.         return (1);
  517.     } // End of the function
  518.     function createLineOfButtons(Xpos, startIndex)
  519.     {
  520.         var _loc11;
  521.         var _loc3 = startIndex;
  522.         var _loc6 = 0;
  523.         var _loc9 = 0;
  524.         var _loc10;
  525.         var _loc2;
  526.         var _loc4;
  527.         var _loc12;
  528.         var _loc5;
  529.         for (var _loc3 = startIndex; _loc3 < dataArray.length; ++_loc3)
  530.         {
  531.             _loc2 = this.createItem(dataArray[_loc3]);
  532.             buttonList.push(_loc2);
  533.             if (_loc3 > 0)
  534.             {
  535.                 _loc4 = buttonList[_loc3 - 1];
  536.                 _loc2._x = _loc4._x - (_loc2._width + spaceBetweenInstructions);
  537.                 _loc2._y = _loc4._y;
  538.                 _loc5 = _loc2._width + spaceBetweenInstructions;
  539.                 if (_loc5 + fullWidth <= _maxWidth)
  540.                 {
  541.                     fullWidth = fullWidth + (_loc2._width + spaceBetweenInstructions);
  542.                 }
  543.                 else
  544.                 {
  545.                     backgrounds.push(fullWidth);
  546.                     fullWidth = 0;
  547.                     ++numberOfLines;
  548.                     _loc2._y = _loc4._y - _leadingSize - iconSize;
  549.                     _loc2._x = Xpos - (_loc2._width - 6);
  550.                     fullWidth = fullWidth + (_loc2._width + spaceBetweenInstructions);
  551.                     this.createLineOfButtons(0, _loc3 + 1);
  552.                     return (0);
  553.                 } // end else if
  554.             }
  555.             else
  556.             {
  557.                 fullWidth = fullWidth + _loc2._width;
  558.             } // end else if
  559.             if (_loc6 > maxLines)
  560.             {
  561.                 return (0);
  562.             } // end if
  563.         } // end of for
  564.         backgrounds.push(fullWidth);
  565.     } // End of the function
  566.     function createItem(item)
  567.     {
  568.         item.reverse();
  569.         ++numberOfItems;
  570.         var _loc4 = [];
  571.         var _loc10 = [];
  572.         var _loc5 = container.createEmptyMovieClip("item" + numberOfItems, container.getNextHighestDepth());
  573.         _loc5._y = -iconSize;
  574.         var _loc8;
  575.         var _loc12 = 0;
  576.         var _loc6 = 0;
  577.         var _loc7;
  578.         var _loc11;
  579.         for (var _loc2 = 0; _loc2 < item.length; ++_loc2)
  580.         {
  581.             if (typeof(item[_loc2]) == "string")
  582.             {
  583.                 _loc10.push(true);
  584.                 var _loc9 = -1;
  585.                 if (typeof(item[_loc2 + 1]) == "number")
  586.                 {
  587.                     _loc9 = item[_loc2 + 1];
  588.                 } // end if
  589.                 _loc7 = this.generateTextField("TF_" + _loc2, item[_loc2], _loc5, _loc9);
  590.                 fullTextHeight = _loc7.textHeight;
  591.                 _loc7._y = _loc7._y + fullTextHeight / 5;
  592.                 _loc4.push(_loc7);
  593.             } // end if
  594.             if (typeof(item[_loc2]) == "number")
  595.             {
  596.                 _loc10.push(false);
  597.                 _loc11 = this.createButtonIcon(item[_loc2], _loc5);
  598.                 _loc4.push(_loc11);
  599.             } // end if
  600.             if (_loc2 > 0)
  601.             {
  602.                 _loc8 = _loc4[_loc2 - 1];
  603.                 if (_loc10[_loc2 - 1])
  604.                 {
  605.                     _loc6 = _loc8.textWidth;
  606.                 }
  607.                 else
  608.                 {
  609.                     _loc6 = _loc8._width;
  610.                 } // end else if
  611.                 _loc4[_loc2]._x = _loc8._x + _loc6 + spaceBetweenSpaceAndButton;
  612.             }
  613.             else
  614.             {
  615.                 _loc4[_loc2]._x = -iconSize / 2;
  616.             } // end else if
  617.             _loc5._x = _loc5._x - (_loc6 + spaceBetweenSpaceAndButton) - PADDING;
  618.         } // end of for
  619.         item.reverse();
  620.         return (_loc5);
  621.     } // End of the function
  622.     function createButtonIcon(buttonID, buttonParent)
  623.     {
  624.         if (!OVERRIDE_BUTTON_SWAP)
  625.         {
  626.             if (DispConf.isCircleAccept)
  627.             {
  628.                 if (buttonID == 30)
  629.                 {
  630.                     buttonID = 31;
  631.                 }
  632.                 else if (buttonID == 31)
  633.                 {
  634.                     buttonID = 30;
  635.                 } // end if
  636.             } // end if
  637.         } // end else if
  638.         var _loc3 = buttonParent.attachMovie("button_" + buttonID, "button_" + buttonID, buttonID, {_width: 20, _height: 20, _x: 2, _y: 2});
  639.         if (buttonID == 44)
  640.         {
  641.             respawn_spinnerMC = _loc3;
  642.             respawn_spinnerMC.spinner.gotoAndPlay(respawn_spinner_frame);
  643.         } // end if
  644.         return (_loc3);
  645.     } // End of the function
  646.     function ADD_OUTLINE(tf)
  647.     {
  648.     } // End of the function
  649.     function SET_BACKGROUND()
  650.     {
  651.         var _loc6;
  652.         var _loc5;
  653.         var _loc3;
  654.         var _loc4;
  655.         for (var _loc2 = 0; _loc2 < backgrounds.length; ++_loc2)
  656.         {
  657.             _loc3 = backgrounds[_loc2];
  658.             if (_loc2 < 1)
  659.             {
  660.                 _loc3 = _loc3 + PADDING * 2;
  661.             } // end if
  662.             _loc6 = FOUR_THREE_PADDING + (DispConf.safeRight * DispConf.screenWidth - _loc3);
  663.             _loc5 = DispConf.safeBottom * DispConf.screenHeight - (iconSize + _leadingSize) * _loc2 - iconSize;
  664.             _loc4 = CONTENT.attachMovie("backgroundShape", "background" + _loc2, 10 + _loc2, {_width: _loc3, _x: _loc6, _y: _loc5, _height: iconSize});
  665.             backgroundMCS.push(_loc4);
  666.             com.rockstargames.ui.utils.Colour.Colourise(_loc4, backgroundColours[0], backgroundColours[1], backgroundColours[2], backgroundColours[3]);
  667.         } // end of for
  668.         var _loc11 = (iconSize - fullTextHeight) / 2;
  669.         this.initScreenLayout();
  670.     } // End of the function
  671.     function generateTextField(textFieldName, textString, parentMovieClip, buttonID)
  672.     {
  673.         var _loc2 = parentMovieClip[textFieldName];
  674.         if (_loc2 == undefined)
  675.         {
  676.             _loc2 = parentMovieClip.createTextField(textFieldName, parentMovieClip.getNextHighestDepth(), 0, 0, 10, 10);
  677.         } // end if
  678.         _loc2.embedFonts = true;
  679.         _loc2.autoSize = true;
  680.         if (textString != undefined)
  681.         {
  682.             if (buttonID < 48 || buttonID > 50)
  683.             {
  684.                 textString = textString.toUpperCase();
  685.             } // end if
  686.             _loc2.text = textString;
  687.         } // end if
  688.         _loc2.setTextFormat(instructionalTextFormat);
  689.         return (_loc2);
  690.     } // End of the function
  691.     function SET_PADDING(top, right, bottom, left)
  692.     {
  693.         PADDING = top;
  694.     } // End of the function
  695.     function SET_BACKGROUND_COLOUR(r, g, b, a)
  696.     {
  697.         backgroundColours = [r, g, b, a];
  698.         if (background)
  699.         {
  700.             com.rockstargames.ui.utils.Colour.Colourise(background, r, g, b, a);
  701.         } // end if
  702.     } // End of the function
  703.     function SET_TEXT_COLOUR(r, g, b)
  704.     {
  705.     } // End of the function
  706.     function OVERRIDE_RESPAWN_TEXT(id, txt)
  707.     {
  708.         if (is_saving)
  709.         {
  710.             ++id;
  711.         } // end if
  712.         var _loc2 = buttonList[id].TF_0;
  713.         _loc2.text = txt.toUpperCase();
  714.         _loc2.setTextFormat(instructionalTextFormat);
  715.     } // End of the function
  716.     function SET_MAX_WIDTH(maxWidth)
  717.     {
  718.         _maxWidth = maxWidth * DispConf.screenWidth;
  719.     } // End of the function
  720.     function getFourThreeSafeZoneOffset(screenWidthPixels)
  721.     {
  722.         var _loc2 = 0;
  723.         if (FILE_WIDTH >= screenWidthPixels)
  724.         {
  725.             _loc2 = (FILE_WIDTH - screenWidthPixels) / 2 / 2;
  726.         } // end if
  727.         return (_loc2);
  728.     } // End of the function
  729.     var PADDING = 6;
  730.     var respawn_spinner_frame = 1;
  731.     var numberOfItems = 0;
  732.     var iconSize = 24;
  733.     var fullWidth = 0;
  734.     var fullTextHeight = 0;
  735.     var _maxWidth = 1280;
  736.     var numberOfLines = 1;
  737.     var is_saving = false;
  738.     var savingText = "";
  739.     var stackType = 0;
  740.     var OVERRIDE_BUTTON_SWAP = false;
  741. } // End of Class
  742. #endinitclip
  743.  
  744.  
  745. ------------------------------------------------------------------------------------------------
  746. / Action script...
  747.  
  748. // [Initial MovieClip Action of sprite 23]
  749. #initclip 6
  750. class com.rockstargames.ui.utils.HudColour
  751. {
  752.     var r, g, b, a;
  753.     function HudColour()
  754.     {
  755.         r = 255;
  756.         g = 255;
  757.         b = 255;
  758.         a = 100;
  759.     } // End of the function
  760.     static var HUD_COLOUR_PURE_WHITE = 0;
  761.     static var HUD_COLOUR_WHITE = 1;
  762.     static var HUD_COLOUR_BLACK = 2;
  763.     static var HUD_COLOUR_GREY = 3;
  764.     static var HUD_COLOUR_GREYLIGHT = 4;
  765.     static var HUD_COLOUR_GREYDARK = 5;
  766.     static var HUD_COLOUR_RED = 6;
  767.     static var HUD_COLOUR_REDLIGHT = 7;
  768.     static var HUD_COLOUR_REDDARK = 8;
  769.     static var HUD_COLOUR_BLUE = 9;
  770.     static var HUD_COLOUR_BLUELIGHT = 10;
  771.     static var HUD_COLOUR_BLUEDARK = 11;
  772.     static var HUD_COLOUR_YELLOW = 12;
  773.     static var HUD_COLOUR_YELLOWLIGHT = 13;
  774.     static var HUD_COLOUR_YELLOWDARK = 14;
  775.     static var HUD_COLOUR_ORANGE = 15;
  776.     static var HUD_COLOUR_ORANGELIGHT = 16;
  777.     static var HUD_COLOUR_ORANGEDARK = 17;
  778.     static var HUD_COLOUR_GREEN = 18;
  779.     static var HUD_COLOUR_GREENLIGHT = 19;
  780.     static var HUD_COLOUR_GREENDARK = 20;
  781.     static var HUD_COLOUR_PURPLE = 21;
  782.     static var HUD_COLOUR_PURPLELIGHT = 22;
  783.     static var HUD_COLOUR_PURPLEDARK = 23;
  784.     static var HUD_COLOUR_PINK = 24;
  785.     static var HUD_COLOUR_RADAR_HEALTH = 25;
  786.     static var HUD_COLOUR_RADAR_ARMOUR = 26;
  787.     static var HUD_COLOUR_RADAR_DAMAGE = 27;
  788.     static var HUD_COLOUR_NET_PLAYER1 = 28;
  789.     static var HUD_COLOUR_NET_PLAYER2 = 29;
  790.     static var HUD_COLOUR_NET_PLAYER3 = 30;
  791.     static var HUD_COLOUR_NET_PLAYER4 = 31;
  792.     static var HUD_COLOUR_NET_PLAYER5 = 32;
  793.     static var HUD_COLOUR_NET_PLAYER6 = 33;
  794.     static var HUD_COLOUR_NET_PLAYER7 = 34;
  795.     static var HUD_COLOUR_NET_PLAYER8 = 35;
  796.     static var HUD_COLOUR_NET_PLAYER9 = 36;
  797.     static var HUD_COLOUR_NET_PLAYER10 = 37;
  798.     static var HUD_COLOUR_NET_PLAYER11 = 38;
  799.     static var HUD_COLOUR_NET_PLAYER12 = 39;
  800.     static var HUD_COLOUR_NET_PLAYER13 = 40;
  801.     static var HUD_COLOUR_NET_PLAYER14 = 41;
  802.     static var HUD_COLOUR_NET_PLAYER15 = 42;
  803.     static var HUD_COLOUR_NET_PLAYER16 = 43;
  804.     static var HUD_COLOUR_NET_PLAYER17 = 44;
  805.     static var HUD_COLOUR_NET_PLAYER18 = 45;
  806.     static var HUD_COLOUR_NET_PLAYER19 = 46;
  807.     static var HUD_COLOUR_NET_PLAYER20 = 47;
  808.     static var HUD_COLOUR_NET_PLAYER21 = 48;
  809.     static var HUD_COLOUR_NET_PLAYER22 = 49;
  810.     static var HUD_COLOUR_NET_PLAYER23 = 50;
  811.     static var HUD_COLOUR_NET_PLAYER24 = 51;
  812.     static var HUD_COLOUR_NET_PLAYER25 = 52;
  813.     static var HUD_COLOUR_NET_PLAYER26 = 53;
  814.     static var HUD_COLOUR_NET_PLAYER27 = 54;
  815.     static var HUD_COLOUR_NET_PLAYER28 = 55;
  816.     static var HUD_COLOUR_NET_PLAYER29 = 56;
  817.     static var HUD_COLOUR_NET_PLAYER30 = 57;
  818.     static var HUD_COLOUR_NET_PLAYER31 = 58;
  819.     static var HUD_COLOUR_NET_PLAYER32 = 59;
  820.     static var HUD_COLOUR_SIMPLEBLIP_DEFAULT = 60;
  821.     static var HUD_COLOUR_MENU_BLUE = 61;
  822.     static var HUD_COLOUR_MENU_GREY_LIGHT = 62;
  823.     static var HUD_COLOUR_MENU_BLUE_EXTRA_DARK = 63;
  824.     static var HUD_COLOUR_MENU_YELLOW = 64;
  825.     static var HUD_COLOUR_MENU_YELLOW_DARK = 65;
  826.     static var HUD_COLOUR_MENU_GREEN = 66;
  827.     static var HUD_COLOUR_MENU_GREY = 67;
  828.     static var HUD_COLOUR_MENU_GREY_DARK = 68;
  829.     static var HUD_COLOUR_MENU_HIGHLIGHT = 69;
  830.     static var HUD_COLOUR_MENU_STANDARD = 70;
  831.     static var HUD_COLOUR_MENU_DIMMED = 71;
  832.     static var HUD_COLOUR_MENU_EXTRA_DIMMED = 72;
  833.     static var HUD_COLOUR_BRIEF_TITLE = 73;
  834.     static var HUD_COLOUR_MID_GREY_MP = 74;
  835.     static var HUD_COLOUR_NET_PLAYER1_DARK = 75;
  836.     static var HUD_COLOUR_NET_PLAYER2_DARK = 76;
  837.     static var HUD_COLOUR_NET_PLAYER3_DARK = 77;
  838.     static var HUD_COLOUR_NET_PLAYER4_DARK = 78;
  839.     static var HUD_COLOUR_NET_PLAYER5_DARK = 79;
  840.     static var HUD_COLOUR_NET_PLAYER6_DARK = 80;
  841.     static var HUD_COLOUR_NET_PLAYER7_DARK = 81;
  842.     static var HUD_COLOUR_NET_PLAYER8_DARK = 82;
  843.     static var HUD_COLOUR_NET_PLAYER9_DARK = 83;
  844.     static var HUD_COLOUR_NET_PLAYER10_DARK = 84;
  845.     static var HUD_COLOUR_NET_PLAYER11_DARK = 85;
  846.     static var HUD_COLOUR_NET_PLAYER12_DARK = 86;
  847.     static var HUD_COLOUR_NET_PLAYER13_DARK = 87;
  848.     static var HUD_COLOUR_NET_PLAYER14_DARK = 88;
  849.     static var HUD_COLOUR_NET_PLAYER15_DARK = 89;
  850.     static var HUD_COLOUR_NET_PLAYER16_DARK = 90;
  851.     static var HUD_COLOUR_NET_PLAYER17_DARK = 91;
  852.     static var HUD_COLOUR_NET_PLAYER18_DARK = 92;
  853.     static var HUD_COLOUR_NET_PLAYER19_DARK = 93;
  854.     static var HUD_COLOUR_NET_PLAYER20_DARK = 94;
  855.     static var HUD_COLOUR_NET_PLAYER21_DARK = 95;
  856.     static var HUD_COLOUR_NET_PLAYER22_DARK = 96;
  857.     static var HUD_COLOUR_NET_PLAYER23_DARK = 97;
  858.     static var HUD_COLOUR_NET_PLAYER24_DARK = 98;
  859.     static var HUD_COLOUR_NET_PLAYER25_DARK = 99;
  860.     static var HUD_COLOUR_NET_PLAYER26_DARK = 100;
  861.     static var HUD_COLOUR_NET_PLAYER27_DARK = 101;
  862.     static var HUD_COLOUR_NET_PLAYER28_DARK = 102;
  863.     static var HUD_COLOUR_NET_PLAYER29_DARK = 103;
  864.     static var HUD_COLOUR_NET_PLAYER30_DARK = 104;
  865.     static var HUD_COLOUR_NET_PLAYER31_DARK = 105;
  866.     static var HUD_COLOUR_NET_PLAYER32_DARK = 106;
  867.     static var HUD_COLOUR_BRONZE = 107;
  868.     static var HUD_COLOUR_SILVER = 108;
  869.     static var HUD_COLOUR_GOLD = 109;
  870.     static var HUD_COLOUR_PLATINUM = 110;
  871.     static var HUD_COLOUR_GANG1 = 111;
  872.     static var HUD_COLOUR_GANG2 = 112;
  873.     static var HUD_COLOUR_GANG3 = 113;
  874.     static var HUD_COLOUR_GANG4 = 114;
  875.     static var HUD_COLOUR_SAME_CREW = 115;
  876.     static var HUD_COLOUR_FREEMODE = 116;
  877.     static var HUD_COLOUR_PAUSE_BG = 117;
  878.     static var HUD_COLOUR_FRIENDLY = 118;
  879.     static var HUD_COLOUR_ENEMY = 119;
  880.     static var HUD_COLOUR_LOCATION = 120;
  881.     static var HUD_COLOUR_PICKUP = 121;
  882.     static var HUD_COLOUR_PAUSE_SINGLEPLAYER = 122;
  883.     static var HUD_COLOUR_FREEMODE_DARK = 123;
  884.     static var HUD_COLOUR_INACTIVE_MISSION = 124;
  885.     static var HUD_COLOUR_DAMAGE = 125;
  886.     static var HUD_COLOUR_PINKLIGHT = 126;
  887.     static var HUD_COLOUR_PM_MITEM_HIGHLIGHT = 127;
  888.     static var HUD_COLOUR_SCRIPT_VARIABLE = 128;
  889.     static var HUD_COLOUR_YOGA = 129;
  890.     static var HUD_COLOUR_TENNIS = 130;
  891.     static var HUD_COLOUR_GOLF = 131;
  892.     static var HUD_COLOUR_SHOOTING_RANGE = 132;
  893.     static var HUD_COLOUR_FLIGHT_SCHOOL = 133;
  894.     static var HUD_COLOUR_NORTH_BLUE = 134;
  895.     static var HUD_COLOUR_PLATFORM_BLUE = 136;
  896.     static var HUD_COLOUR_PLATFORM_GREEN = 137;
  897.     static var HUD_COLOUR_PLATFORM_GREY = 138;
  898.     static var HUD_COLOUR_FACEBOOK_BLUE = 139;
  899.     static var HUD_COLOUR_INGAME_BG = 140;
  900.     static var HUD_COLOUR_DARTS = 141;
  901.     static var HUD_COLOUR_WAYPOINT = 142;
  902.     static var HUD_COLOUR_MICHAEL = 143;
  903.     static var HUD_COLOUR_FRANKLIN = 144;
  904.     static var HUD_COLOUR_TREVOR = 145;
  905.     static var HUD_COLOUR_GOLF_P1 = 146;
  906.     static var HUD_COLOUR_GOLF_P2 = 147;
  907.     static var HUD_COLOUR_GOLF_P3 = 148;
  908.     static var HUD_COLOUR_GOLF_P4 = 149;
  909.     static var HUD_COLOUR_WAYPOINTLIGHT = 150;
  910.     static var HUD_COLOUR_WAYPOINTDARK = 151;
  911.     static var HUD_COLOUR_PANEL_LIGHT = 152;
  912.     static var HUD_COLOUR_MICHAEL_DARK = 153;
  913.     static var HUD_COLOUR_FRANKLIN_DARK = 154;
  914.     static var HUD_COLOUR_TREVOR_DARK = 155;
  915.     static var HUD_COLOUR_OBJECTIVE_ROUTE = 156;
  916.     static var HUD_COLOUR_PAUSEMAP_TINT = 157;
  917.     static var HUD_COLOUR_PAUSE_DESELECT = 158;
  918.     static var HUD_COLOUR_PM_WEAPONS_PURCHASABLE = 159;
  919.     static var HUD_COLOUR_PM_WEAPONS_LOCKED = 160;
  920.     static var HUD_COLOUR_END_SCREEN_BG = 161;
  921.     static var HUD_COLOUR_CHOP = 162;
  922. } // End of Class
  923. #endinitclip
  924.  
  925. --------------------------------------------------------------------------
  926. // Action script...
  927.  
  928. // [Initial MovieClip Action of sprite 24]
  929. #initclip 7
  930. class com.rockstargames.ui.utils.Colour
  931. {
  932.     function Colour()
  933.     {
  934.     } // End of the function
  935.     static function Colourise(movieClip, r, g, b, a)
  936.     {
  937.         r = (255 - r) * -1;
  938.         g = (255 - g) * -1;
  939.         b = (255 - b) * -1;
  940.         var _loc1 = new flash.geom.Transform(movieClip);
  941.         var _loc4 = new flash.geom.ColorTransform(1, 1, 1, 1, r, g, b, 0);
  942.         _loc1.colorTransform = _loc4;
  943.         movieClip._alpha = a;
  944.     } // End of the function
  945.     static function setHudColour(hudColourEnum, hudColourObject)
  946.     {
  947.         com.rockstargames.ui.game.GameInterface.call("GET_HUD_COLOUR", com.rockstargames.ui.game.GameInterface.GENERIC_TYPE, hudColourEnum, hudColourObject);
  948.     } // End of the function
  949.     static function ColouriseB(my_mc, r, g, b, a)
  950.     {
  951.         var _loc1 = new Color(my_mc);
  952.         var _loc2 = {ra: 100, rb: r, ga: 100, gb: g, ba: 100, bb: b, aa: 100, ab: 100};
  953.         _loc1.setTransform(_loc2);
  954.     } // End of the function
  955.     static function RGBToHex(r, g, b)
  956.     {
  957.         var _loc2 = r.toString(16);
  958.         var _loc1 = g.toString(16);
  959.         var _loc3 = b.toString(16);
  960.         if (_loc2 == "0")
  961.         {
  962.             _loc2 = "00";
  963.         } // end if
  964.         if (_loc1 == "0")
  965.         {
  966.             _loc1 = "00";
  967.         } // end if
  968.         if (_loc3 == "0")
  969.         {
  970.             _loc3 = "00";
  971.         } // end if
  972.         var _loc4 = "0x" + _loc2 + _loc1 + _loc3;
  973.         return (Number(_loc4));
  974.     } // End of the function
  975.     static function HexToRGB(hex)
  976.     {
  977.         var _loc1 = hex >> 16;
  978.         var _loc2 = hex - (_loc1 << 16);
  979.         var _loc3 = _loc2 >> 8;
  980.         var _loc4 = _loc2 - (_loc3 << 8);
  981.         return ({r: _loc1, g: _loc3, b: _loc4});
  982.     } // End of the function
  983.     static function ApplyHudColour(mc, colourId)
  984.     {
  985.         var _loc1 = new com.rockstargames.ui.utils.HudColour();
  986.         com.rockstargames.ui.utils.Colour.setHudColour(colourId, _loc1);
  987.         com.rockstargames.ui.utils.Colour.Colourise(mc, _loc1.r, _loc1.g, _loc1.b, _loc1.a);
  988.     } // End of the function
  989.     static function ApplyHudColourToTF(tf, colourId)
  990.     {
  991.         var _loc1 = new com.rockstargames.ui.utils.HudColour();
  992.         com.rockstargames.ui.utils.Colour.setHudColour(colourId, _loc1);
  993.         tf.textColor = com.rockstargames.ui.utils.Colour.RGBToHex(_loc1.r, _loc1.g, _loc1.b);
  994.     } // End of the function
  995. } // End of Class
  996. #endinitclip
  997.  
  998. -----------------------------------------------------------------------
  999. // Action script...
  1000.  
  1001. // [Initial MovieClip Action of sprite 25]
  1002. #initclip 8
  1003. class com.rockstargames.gtav.levelDesign.CUSTOM_WARNING_SCREEN extends com.rockstargames.gtav.levelDesign.INSTRUCTIONAL_BUTTONS
  1004. {
  1005.     var CONTENT, BOUNDING_BOX;
  1006.     function CUSTOM_WARNING_SCREEN()
  1007.     {
  1008.         super();
  1009.         CONTENT.DividerMC._visible = false;
  1010.         CONTENT.WarningScreenListMC.reset();
  1011.     } // End of the function
  1012.     function INITIALISE(mc)
  1013.     {
  1014.         super.INITIALISE(mc);
  1015.     } // End of the function
  1016.     function SHOW_CUSTOM_WARNING_SCREEN()
  1017.     {
  1018.         var _loc12 = CONTENT.HeaderTF;
  1019.         var _loc13 = CONTENT.DescriptionTF;
  1020.         var _loc10 = CONTENT.WarningScreenListMC;
  1021.         var _loc15 = CONTENT.Divider1MC;
  1022.         var _loc14 = CONTENT.Divider2MC;
  1023.         var _loc11 = arguments[6];
  1024.         var _loc3;
  1025.         com.rockstargames.ui.utils.Colour.ApplyHudColour(CONTENT.HeaderTF, com.rockstargames.ui.utils.HudColour.HUD_COLOUR_YELLOW);
  1026.         _loc12.text = arguments[7];
  1027.         _loc13.text = arguments[8];
  1028.         _loc10.reset();
  1029.         for (var _loc3 = 0; _loc3 < _loc11; ++_loc3)
  1030.         {
  1031.             _loc10.setItem(arguments[_loc3]);
  1032.         } // end of for
  1033.         var _loc16 = 10;
  1034.         var _loc17 = 0;
  1035.         var _loc6 = new Array();
  1036.         _loc6.push([_loc12, 5]);
  1037.         _loc6.push([_loc15, _loc16]);
  1038.         _loc6.push([_loc13, _loc16]);
  1039.         _loc6.push([_loc10, 5]);
  1040.         _loc6.push([_loc14, 0]);
  1041.         var _loc9 = _loc6.length;
  1042.         var _loc7 = 0;
  1043.         for (var _loc3 = 0; _loc3 < _loc9; ++_loc3)
  1044.         {
  1045.             var _loc5 = _loc6[_loc3];
  1046.             _loc7 = _loc7 + _loc5[0]._height;
  1047.             _loc7 = _loc7 + _loc5[1];
  1048.         } // end of for
  1049.         var _loc8 = (BOUNDING_BOX._height - _loc7) * 0.500000;
  1050.         for (var _loc3 = 0; _loc3 < _loc9; ++_loc3)
  1051.         {
  1052.             _loc5 = _loc6[_loc3];
  1053.             var _loc4 = _loc5[0];
  1054.             _loc4._y = _loc8;
  1055.             _loc8 = _loc8 + (_loc4._height + _loc5[1]);
  1056.         } // end of for
  1057.         _loc10.setSelectedItem(0);
  1058.         CONTENT._visible = true;
  1059.         _loc12._visible = true;
  1060.         _loc13._visible = true;
  1061.         _loc15._visible = true;
  1062.         _loc14._visible = true;
  1063.         CONTENT.WarningScreenListMC._visible = true;
  1064.     } // End of the function
  1065.     function HIDE_CUSTOM_WARNING_SCREEN(msecs)
  1066.     {
  1067.         CONTENT.WarningScreenListMC.reset();
  1068.         CONTENT._visible = false;
  1069.         CONTENT.HeaderTF._visible = false;
  1070.         CONTENT.DescriptionTF._visible = false;
  1071.         CONTENT.DividerMC._visible = false;
  1072.         CONTENT.WarningScreenListMC._visible = false;
  1073.     } // End of the function
  1074.     function SET_SELECTED_INDEX()
  1075.     {
  1076.         CONTENT.WarningScreenListMC.setSelectedItem(arguments[0] - 1);
  1077.     } // End of the function
  1078.     function debug()
  1079.     {
  1080.         CONTENT.HeaderTF.text = "TITLE";
  1081.         CONTENT.DescriptionTF.text = "MESSASGE";
  1082.         CONTENT._visible = true;
  1083.         CONTENT.HeaderTF._visible = true;
  1084.         CONTENT.DescriptionTF._visible = true;
  1085.         CONTENT.DividerMC._visible = true;
  1086.     } // End of the function
  1087. } // End of Class
  1088. #endinitclip
  1089.  
  1090. ------------------------------------------------------------------------------
  1091. // Action script...
  1092.  
  1093. // [Initial MovieClip Action of sprite 26]
  1094. #initclip 9
  1095. class com.rockstargames.gtav.levelDesign.WarningScreenList extends MovieClip
  1096. {
  1097.     var CurrentIndex, ItemCounter, getNextHighestDepth, attachMovie;
  1098.     function WarningScreenList()
  1099.     {
  1100.         super();
  1101.         CurrentIndex = 0;
  1102.         ItemCounter = 0;
  1103.     } // End of the function
  1104.     function setItem(text)
  1105.     {
  1106.         if (text != "")
  1107.         {
  1108.             var _loc2 = this.attachMovie("WarningScreenListItem", "Option" + ItemCounter + "MC", this.getNextHighestDepth());
  1109.             Elements[ItemCounter] = _loc2;
  1110.             _loc2.setText(text);
  1111.             _loc2._y = ItemCounter * (_loc2._height + 2);
  1112.             ++ItemCounter;
  1113.         } // end if
  1114.     } // End of the function
  1115.     function setSelectedItem(selectedItem)
  1116.     {
  1117.         var _loc2 = Elements[CurrentIndex];
  1118.         _loc2.setActive(false);
  1119.         CurrentIndex = selectedItem;
  1120.         _loc2 = Elements[CurrentIndex];
  1121.         _loc2.setActive(true);
  1122.     } // End of the function
  1123.     function reset()
  1124.     {
  1125.         for (var _loc2 = 0; _loc2 < ItemCounter; ++_loc2)
  1126.         {
  1127.             Elements[_loc2].removeMovieClip();
  1128.             Elements[_loc2] = null;
  1129.         } // end of for
  1130.         Elements = [];
  1131.         CurrentIndex = 0;
  1132.         ItemCounter = 0;
  1133.     } // End of the function
  1134.     function debug()
  1135.     {
  1136.         ItemCounter = 6;
  1137.     } // End of the function
  1138.     var Elements = [];
  1139. } // End of Class
  1140. #endinitclip
  1141. -----------------------------------------------------------------------------------
  1142. // Action script...
  1143.  
  1144. // [Initial MovieClip Action of sprite 27]
  1145. #initclip 10
  1146. class com.rockstargames.gtav.levelDesign.WarningScreenListItem extends MovieClip
  1147. {
  1148.     var ListItemTextTF, BackgroundMC;
  1149.     function WarningScreenListItem()
  1150.     {
  1151.         super();
  1152.         ListItemTextTF._visible = false;
  1153.         BackgroundMC._visible = false;
  1154.         this.INITIALISE();
  1155.     } // End of the function
  1156.     function INITIALISE(mc)
  1157.     {
  1158.         super.INITIALISE(mc);
  1159.     } // End of the function
  1160.     function getActive()
  1161.     {
  1162.         return (BackgroundMC._visible);
  1163.     } // End of the function
  1164.     function setActive(_bActive)
  1165.     {
  1166.         BackgroundMC._visible = _bActive;
  1167.         ListItemTextTF.textColor = _bActive ? (4278190080.000000) : (4294967295.000000);
  1168.     } // End of the function
  1169.     function setText(_text)
  1170.     {
  1171.         ListItemTextTF.text = _text;
  1172.         ListItemTextTF._visible = true;
  1173.         ListItemTextTF.textColor = 4294967295.000000;
  1174.     } // End of the function
  1175.     function getText()
  1176.     {
  1177.         return (ListItemTextTF.text);
  1178.     } // End of the function
  1179.     function getEnabled()
  1180.     {
  1181.         return (ListItemTextTF._visible);
  1182.     } // End of the function
  1183.     function reset()
  1184.     {
  1185.         ListItemTextTF.text = "";
  1186.         ListItemTextTF._visible = false;
  1187.         BackgroundMC._visible = false;
  1188.     } // End of the function
  1189.     function debug()
  1190.     {
  1191.         this.setText("TEST OPTION");
  1192.         this.setActive(false);
  1193.     } // End of the function
  1194. } // End of Class
  1195. #endinitclip
Add Comment
Please, Sign In to add comment