├── .actionScriptProperties
├── .gitattributes
├── .gitignore
├── .project
├── AuthortimeSharedAssets.fla
├── README.md
├── ScaleformUI.fla
├── ScaleformUI.html
├── desktop.files.json
└── project
├── JSON
└── JSON.as
├── com
└── rockstargames
│ ├── ScaleformUI
│ ├── Pagination.as
│ ├── UIMenu.as
│ ├── items
│ │ ├── BaseMenuItem.as
│ │ ├── UIMenuCheckboxItem.as
│ │ ├── UIMenuItem.as
│ │ ├── UIMenuListItem.as
│ │ ├── UIMenuProgressItem.as
│ │ ├── UIMenuSliderItem.as
│ │ └── UIMenuStatsItem.as
│ ├── panels
│ │ ├── BasePanel.as
│ │ ├── UIMenuColorPanel.as
│ │ ├── UIMenuColorPickerPanel.as
│ │ ├── UIMenuGridPanel.as
│ │ ├── UIMenuPercentagePanel.as
│ │ └── UIMenuStatsPanel.as
│ ├── sidePanels
│ │ ├── ColourPickerPanel.as
│ │ ├── FreemodeDetailsItem.as
│ │ └── MissionDetailsPanel.as
│ ├── utils
│ │ ├── ArrayUtils.as
│ │ ├── Badges.as
│ │ ├── ColorPanelColors.as
│ │ ├── MovieClipHandler.as
│ │ └── VehicleColour.as
│ └── windows
│ │ ├── UIMenuDetailsWindow.as
│ │ ├── UIMenuHeritageWindow.as
│ │ └── WheelStat.as
│ ├── TimerBars
│ ├── TimerBar.as
│ └── TimerBarPool.as
│ ├── gtav
│ ├── Multiplayer
│ │ ├── ROCKSTAR_VERIFIED.as
│ │ └── gtavonlinetv
│ │ │ ├── OnlineTVTick.as
│ │ │ └── OnlineTVTicker.as
│ ├── constants
│ │ ├── Blips.as
│ │ ├── HeistCrewMemberLUT.as
│ │ ├── HeistGameplayLUT.as
│ │ ├── HudComponentConstants.as
│ │ ├── MPIconLabels.as
│ │ ├── PCAppLUT.as
│ │ ├── PauseMenuColoursLUT.as
│ │ ├── PauseMenuComponentLUT.as
│ │ ├── PauseMenuLUT.as
│ │ ├── PauseMenuLookup.as
│ │ ├── SatNavIconsLUT.as
│ │ ├── ShopBrandLUT.as
│ │ ├── WeaponsLUT.as
│ │ └── WebBrowserButtonLUT.as
│ ├── levelDesign
│ │ ├── BaseScriptUI.as
│ │ ├── BreakingNewsTicker.as
│ │ └── SCALEFORMUI.as
│ ├── minimap
│ │ ├── InvertedBlip.as
│ │ └── minimap_txd_loader.as
│ ├── pauseMenu
│ │ ├── GAMEPAD_CALIBRATION.as
│ │ ├── PAUSE_MENU_CALIBRATION.as
│ │ ├── PAUSE_MENU_HEADER.as
│ │ ├── PAUSE_MENU_SPCHAR_OVERLAYS.as
│ │ ├── PAUSE_MENU_SP_CONTENT.as
│ │ ├── pauseComponents
│ │ │ ├── ClickRepeat.as
│ │ │ ├── MP_CORONA_PLAYER_INFO.as
│ │ │ ├── MP_MATCHMAKING_CARD.as
│ │ │ ├── MP_MATCHMAKING_SELECTOR.as
│ │ │ ├── MP_MATCHMAKING_VEHICLE_INFO.as
│ │ │ ├── MP_PLAYER_CARD.as
│ │ │ ├── PAUSE_MENU_AWARDS.as
│ │ │ ├── PAUSE_MENU_BAR.as
│ │ │ ├── PAUSE_MENU_BODY_CONFIG_LIST.as
│ │ │ ├── PAUSE_MENU_CHARACTER_CARD.as
│ │ │ ├── PAUSE_MENU_CHARACTER_SELECT.as
│ │ │ ├── PAUSE_MENU_CONFIGURATION_LIST.as
│ │ │ ├── PAUSE_MENU_CREWS_CARD.as
│ │ │ ├── PAUSE_MENU_CREWS_LIST.as
│ │ │ ├── PAUSE_MENU_CREW_COMPARISON_CARD.as
│ │ │ ├── PAUSE_MENU_CREW_RANKS.as
│ │ │ ├── PAUSE_MENU_DIALOGUE_LIST.as
│ │ │ ├── PAUSE_MENU_FEED.as
│ │ │ ├── PAUSE_MENU_FREEMODE_DETAILS.as
│ │ │ ├── PAUSE_MENU_FREEMODE_MAP.as
│ │ │ ├── PAUSE_MENU_FREE_MODE.as
│ │ │ ├── PAUSE_MENU_FRIENDS_STATS_SP.as
│ │ │ ├── PAUSE_MENU_GALLERY.as
│ │ │ ├── PAUSE_MENU_HAIR_COLOUR_LIST.as
│ │ │ ├── PAUSE_MENU_HERITAGE_CARD.as
│ │ │ ├── PAUSE_MENU_KEYMAP_CATEGORY.as
│ │ │ ├── PAUSE_MENU_MAP.as
│ │ │ ├── PAUSE_MENU_MISSION_HELP_LIST.as
│ │ │ ├── PAUSE_MENU_MISSION_REPLAY_CARD.as
│ │ │ ├── PAUSE_MENU_NEWSWIRE.as
│ │ │ ├── PAUSE_MENU_REPLAY_LIST.as
│ │ │ ├── PAUSE_MENU_SETTINGS.as
│ │ │ ├── PAUSE_MENU_STATS_LIST.as
│ │ │ ├── PAUSE_MENU_STATS_VERTICAL_LIST.as
│ │ │ ├── PAUSE_MENU_STORE_NEWS.as
│ │ │ ├── PAUSE_MENU_TEXT_LIST_DOUBLE.as
│ │ │ ├── PAUSE_MENU_TEXT_LIST_FULL.as
│ │ │ ├── PAUSE_MENU_VERTICAL_LIST.as
│ │ │ ├── PAUSE_MENU_WEAPONS.as
│ │ │ ├── PAUSE_MP_MENU_FRIENDS_LIST.as
│ │ │ ├── PAUSE_MP_MENU_PLAYER_COMPARISON_CARD.as
│ │ │ ├── PAUSE_MP_MENU_PLAYER_MODEL.as
│ │ │ ├── PM_ScrollBase.as
│ │ │ ├── PauseMenuComponentBase.as
│ │ │ ├── PauseMenuGalleryBase.as
│ │ │ ├── SP_PLAYER_CARD.as
│ │ │ └── SP_PLAYER_COMPARISON_CARD.as
│ │ └── pauseMenuItems
│ │ │ ├── PauseMenuBarItem.as
│ │ │ ├── PauseMenuBaseItem.as
│ │ │ ├── PauseMenuColourBar.as
│ │ │ ├── PauseMenuContentBase.as
│ │ │ ├── PauseMenuDialogueItem.as
│ │ │ ├── PauseMenuFeedItem.as
│ │ │ ├── PauseMenuMissionHelpListItem.as
│ │ │ ├── PauseMenuMissionHelpModel.as
│ │ │ ├── PauseMenuMissionHelpView.as
│ │ │ ├── PauseMenuSettingsAudio.as
│ │ │ ├── PauseMenuSettingsModel.as
│ │ │ ├── PauseMenuSettingsTextItem.as
│ │ │ ├── PauseMenuSettingsView.as
│ │ │ ├── PauseMenuViewBase.as
│ │ │ ├── multiplayer
│ │ │ ├── PauseMPMenuAwardsItem.as
│ │ │ ├── PauseMPMenuAwardsModel.as
│ │ │ ├── PauseMPMenuAwardsView.as
│ │ │ ├── PauseMPMenuCoronaPlayerInfoItem.as
│ │ │ ├── PauseMPMenuCoronaPlayerInfoModel.as
│ │ │ ├── PauseMPMenuCoronaPlayerInfoView.as
│ │ │ ├── PauseMPMenuFriendsListItem.as
│ │ │ ├── PauseMPMenuFriendsListModel.as
│ │ │ ├── PauseMPMenuFriendsListView.as
│ │ │ ├── PauseMPMenuMatchmakingCardItem.as
│ │ │ ├── PauseMPMenuMatchmakingCardModel.as
│ │ │ ├── PauseMPMenuMatchmakingCardView.as
│ │ │ ├── PauseMPMenuNextJobListItem.as
│ │ │ ├── PauseMPMenuPlayerCardItem.as
│ │ │ ├── PauseMPMenuWeaponsItem.as
│ │ │ ├── PauseMPMenuWeaponsModel.as
│ │ │ └── PauseMPMenuWeaponsView.as
│ │ │ └── singleplayer
│ │ │ ├── PauseMenuBodyConfigItem.as
│ │ │ ├── PauseMenuBodyConfigModel.as
│ │ │ ├── PauseMenuBodyConfigView.as
│ │ │ ├── PauseMenuCharacterStatsItem.as
│ │ │ ├── PauseMenuCharacterStatsModel.as
│ │ │ ├── PauseMenuCharacterStatsView.as
│ │ │ ├── PauseMenuConfigurationItem.as
│ │ │ ├── PauseMenuConfigurationModel.as
│ │ │ ├── PauseMenuConfigurationView.as
│ │ │ ├── PauseMenuCrewListItem.as
│ │ │ ├── PauseMenuCrewListModel.as
│ │ │ ├── PauseMenuCrewListView.as
│ │ │ ├── PauseMenuCrewRankItem.as
│ │ │ ├── PauseMenuCrewRanksModel.as
│ │ │ ├── PauseMenuCrewRanksView.as
│ │ │ ├── PauseMenuCrewsCardItem.as
│ │ │ ├── PauseMenuCrewsCardModel.as
│ │ │ ├── PauseMenuCrewsCardView.as
│ │ │ ├── PauseMenuDialogueModel.as
│ │ │ ├── PauseMenuDialogueView.as
│ │ │ ├── PauseMenuFeedModel.as
│ │ │ ├── PauseMenuFeedView.as
│ │ │ ├── PauseMenuFreemodeDetailsItem.as
│ │ │ ├── PauseMenuFreemodeDetailsModel.as
│ │ │ ├── PauseMenuFreemodeDetailsTitleItem.as
│ │ │ ├── PauseMenuFreemodeDetailsView.as
│ │ │ ├── PauseMenuFreemodeItem.as
│ │ │ ├── PauseMenuFreemodeModel.as
│ │ │ ├── PauseMenuFreemodeView.as
│ │ │ ├── PauseMenuFriendsStatsItem.as
│ │ │ ├── PauseMenuFriendsStatsModel.as
│ │ │ ├── PauseMenuFriendsStatsView.as
│ │ │ ├── PauseMenuGalleryItem.as
│ │ │ ├── PauseMenuGalleryModel.as
│ │ │ ├── PauseMenuGalleryView.as
│ │ │ ├── PauseMenuHeritageCardItem.as
│ │ │ ├── PauseMenuHeritageCardModel.as
│ │ │ ├── PauseMenuHeritageCardView.as
│ │ │ ├── PauseMenuKeymapCategoryItem.as
│ │ │ ├── PauseMenuKeymapCategoryModel.as
│ │ │ ├── PauseMenuKeymapCategoryView.as
│ │ │ ├── PauseMenuMapItem.as
│ │ │ ├── PauseMenuMapModel.as
│ │ │ ├── PauseMenuMapView.as
│ │ │ ├── PauseMenuReplayListItem.as
│ │ │ ├── PauseMenuSPCardItem.as
│ │ │ ├── PauseMenuStatsListItem.as
│ │ │ ├── PauseMenuStatsModel.as
│ │ │ ├── PauseMenuStatsVerticalListItem.as
│ │ │ ├── PauseMenuStatsView.as
│ │ │ ├── PauseMenuTextFullModel.as
│ │ │ ├── PauseMenuTextFullView.as
│ │ │ ├── PauseMenuTextListDoubleItem.as
│ │ │ ├── PauseMenuTextListFullItem.as
│ │ │ ├── PauseMenuTextListItem.as
│ │ │ ├── PauseMenuTextModel.as
│ │ │ ├── PauseMenuTextView.as
│ │ │ ├── PauseMenuTitleItem.as
│ │ │ ├── PauseMenuVerticalListItem.as
│ │ │ ├── PauseMenuVerticalModel.as
│ │ │ └── PauseMenuVerticalView.as
│ ├── pauseMenuPages
│ │ ├── PAUSE_MENU_PAGES_AWARDS.as
│ │ ├── PAUSE_MENU_PAGES_CHAR_MOM_DAD.as
│ │ ├── PAUSE_MENU_PAGES_CHAR_SELECT.as
│ │ ├── PAUSE_MENU_PAGES_CORONA.as
│ │ ├── PAUSE_MENU_PAGES_CORONA_LOBBY.as
│ │ ├── PAUSE_MENU_PAGES_CORONA_PLAYERS.as
│ │ ├── PAUSE_MENU_PAGES_CORONA_RACE.as
│ │ ├── PAUSE_MENU_PAGES_CREWS.as
│ │ ├── PAUSE_MENU_PAGES_FRIENDS.as
│ │ ├── PAUSE_MENU_PAGES_FRIENDS_MP.as
│ │ ├── PAUSE_MENU_PAGES_GALLERY.as
│ │ ├── PAUSE_MENU_PAGES_GAME.as
│ │ ├── PAUSE_MENU_PAGES_INFO.as
│ │ ├── PAUSE_MENU_PAGES_KEYMAP.as
│ │ ├── PAUSE_MENU_PAGES_MAP.as
│ │ ├── PAUSE_MENU_PAGES_MISSIONCREATOR.as
│ │ ├── PAUSE_MENU_PAGES_SAVE.as
│ │ ├── PAUSE_MENU_PAGES_SETTINGS.as
│ │ ├── PAUSE_MENU_PAGES_STATS.as
│ │ ├── PAUSE_MENU_PAGES_STORE.as
│ │ ├── PAUSE_MENU_PAGES_WEAPONS.as
│ │ └── PauseMenuBasePage.as
│ └── utils
│ │ ├── CONTROLLER_TEST.as
│ │ ├── GRID_LAYOUT.as
│ │ ├── GTAVUIConfig.as
│ │ ├── GTAVUIUtils.as
│ │ └── ROUND_DECIMAL_PLACES.as
│ └── ui
│ ├── components
│ ├── GUIController.as
│ ├── GUIMenuItem.as
│ ├── GUIModel.as
│ ├── GUIScroll.as
│ ├── GUIView.as
│ ├── IController.as
│ └── UITextField.as
│ ├── controls
│ ├── ScrollBar.as
│ ├── ScrollingList.as
│ └── WebCursor.as
│ ├── core
│ ├── BaseComponentInfo.as
│ ├── BaseContainer.as
│ ├── BaseScreenLayout.as
│ ├── BaseScriptUI.as
│ ├── BaseWebsite.as
│ ├── BrowserUIComponent.as
│ ├── PhoneUIComponent.as
│ ├── ScreenLayoutManager.as
│ ├── ScreenLayoutUI.as
│ ├── UICanvas.as
│ ├── UICanvasBounds.as
│ └── UICanvasItem.as
│ ├── game
│ ├── GameCom.as
│ ├── GameGlobals.as
│ ├── GameInterface.as
│ ├── GamePadConstants.as
│ └── InstructionalButtonEnums.as
│ ├── hud
│ └── HUD_COMPONENT.as
│ ├── media
│ ├── ImageLoader.as
│ ├── ImageLoaderMC.as
│ └── ImageLoaderManager.as
│ ├── mouse
│ ├── MOUSE_EVENTS.as
│ ├── MouseBtn.as
│ └── MouseBtnInterface.as
│ ├── tweenStar
│ ├── Ease.as
│ ├── TweenStarLite.as
│ ├── TweenStarLiteRef.as
│ └── easing
│ │ ├── Back.as
│ │ ├── Circ.as
│ │ ├── Cubic.as
│ │ ├── Linear.as
│ │ ├── Quad.as
│ │ ├── Quart.as
│ │ └── Sine.as
│ └── utils
│ ├── BitMask.as
│ ├── BitMonger.as
│ ├── Colour.as
│ ├── Debug.as
│ ├── DelegateStar.as
│ ├── DisplayConfig.as
│ ├── FitToTextfield.as
│ ├── HudColour.as
│ ├── HudColourLite.as
│ ├── Localisation.as
│ ├── MathStar.as
│ ├── MultiLoader.as
│ ├── Perlin1D.as
│ ├── Text.as
│ ├── UIText.as
│ └── textfieldAutoScroll.as
├── gfx
├── events
│ └── EventDispatcher.as
├── motion
│ └── Tween.as
└── utils
│ └── Delegate.as
└── mx
├── transitions
└── easing
│ └── Strong.as
└── utils
└── Delegate.as
/.actionScriptProperties:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Build and Release Folders
2 | bin-debug/
3 | bin-release/
4 | [Oo]bj/
5 | [Bb]in/
6 |
7 | # Other files and folders
8 | .settings/
9 |
10 | # Executables
11 | *.swf
12 | *.air
13 | *.ipa
14 | *.apk
15 | *.cmd
16 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
17 | # should NOT be excluded as they contain compiler settings and other important
18 | # information for Eclipse / Flash Builder.
19 | scaleformui.gfx
20 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ScaleformUI
4 |
5 |
6 |
7 |
8 | com.adobe.flexbuilder.flashbridge.flashprobuilder
9 |
10 |
11 |
12 |
13 | com.adobe.flexbuilder.flashbridge.flashpronature
14 | com.adobe.flexbuilder.project.actionscriptnature
15 |
16 |
17 |
--------------------------------------------------------------------------------
/AuthortimeSharedAssets.fla:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manups4e/NativeUI-scaleform_flash/d02258f3f0493ee0b0e4aa9bd0b3e615e50e1973/AuthortimeSharedAssets.fla
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
2 |
3 | This is the main flash project to create and handle this scaleform menu.
4 |
5 | Make sure to visit the [Project Wiki](https://github.com/manups4e/NativeUI-scaleform_flash/wiki)
6 |
7 | 
8 |
--------------------------------------------------------------------------------
/ScaleformUI.fla:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manups4e/NativeUI-scaleform_flash/d02258f3f0493ee0b0e4aa9bd0b3e615e50e1973/ScaleformUI.fla
--------------------------------------------------------------------------------
/ScaleformUI.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ScaleformUI
5 |
6 |
11 |
12 |
13 |
14 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ScaleformUI/panels/BasePanel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ScaleformUI.panels.BasePanel
2 | {
3 | var parentItem;
4 | var _enabled;
5 | var backgroundMC;
6 | var itemMC;
7 | var _hovered = false;
8 | function BasePanel(parent)
9 | {
10 | this.parentItem = parent;
11 | }
12 |
13 | function setRightText(tf, str, autoShrink, sizeOffset, sizeOverride)
14 | {
15 | tf.wordWrap = false;
16 | tf.multiline = false;
17 | tf.html = true;
18 | tf.autoSize = "right";
19 | var _loc3_ = 0;
20 | if (sizeOffset != undefined)
21 | {
22 | _loc3_ = sizeOffset;
23 | }
24 | var _loc2_ = com.rockstargames.ui.utils.UIText.SIZE - _loc3_;
25 | if (sizeOverride != undefined)
26 | {
27 | _loc2_ = sizeOverride;
28 | }
29 | tf.htmlText = "" + str + "";
30 | tf.verticalAlign = "center";
31 | if (autoShrink)
32 | {
33 | tf.textAutoSize = "shrink";
34 | }
35 | }
36 |
37 |
38 | function set Width(w){
39 | this.itemMC._width = w;
40 | }
41 |
42 | function set isVisible(_h)
43 | {
44 | this.itemMC._visible = _h;
45 | }
46 |
47 | function get isVisible()
48 | {
49 | return this.itemMC._visible;
50 | }
51 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ScaleformUI/utils/ArrayUtils.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ScaleformUI.utils.ArrayUtils
2 | {
3 | static function findInArray(str, array)
4 | {
5 | for (var i = 0; i < array.length; i++)
6 | {
7 | if (array[i] == str)
8 | {
9 | return i;
10 | }
11 | }
12 | return -1;//If not found
13 | }
14 |
15 | static function findInArrayPartially(str, array)
16 | {
17 | for (var i = 0; i < array.length; i++)
18 | {
19 | if (array[i].indexOf(str) > -1)
20 | {
21 | return i;
22 | }
23 | }
24 | return -1;//If not found
25 | }
26 |
27 | static function jsonToArray(str)
28 | {
29 | var s = str;
30 | var s = com.rockstargames.ScaleformUI.utils.ArrayUtils.Replace(s, "[", "");
31 | var s = com.rockstargames.ScaleformUI.utils.ArrayUtils.Replace(s, "]", "");
32 | var stringSplit = s.split(",");
33 | return stringSplit;
34 | }
35 |
36 | static function Replace(string, searchStr, replaceStr)
37 | {
38 | return string.split(searchStr).join(replaceStr);
39 | }
40 |
41 | function ArrayUtils()
42 | {
43 | }
44 |
45 | /*
46 | function breakDownArray(list:Array):Array
47 | {
48 | var newList:Array = []; //Use this array for storing changes, so we don't mess up the for in loop.
49 | for each(var s:String in list) //For each item in array...
50 | {
51 | //We're going to use , as the character to split by in a moment...
52 | s = s.replace(" and ", ","); //Replace the " and " separator with a comma.
53 | //You can keep putting additional search terms in here.
54 |
55 | var splitString:Array = s.split(","); //Split string using ",".
56 | newList = newList.concat(splitString); //We combine our newList array with the splitString array.
57 | }
58 |
59 | return newList; //Return newList.
60 | }
61 | */
62 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ScaleformUI/windows/UIMenuHeritageWindow.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ScaleformUI.windows.UIMenuHeritageWindow
2 | {
3 | var itemMC;
4 | var _parentMenu;
5 | var momIdx;
6 | var dadIdx;
7 |
8 | var _background;
9 | var _momSprite;
10 | var _dadSprite;
11 | function UIMenuHeritageWindow(parentMenu, mom, dad)
12 | {
13 | this._parentMenu = parentMenu;
14 | this.itemMC = this._parentMenu._mainMC.attachMovie("UIMenuHeritageWindow", "heritageWindow_" + this._parentMenu._name, this._parentMenu._mainMC.getNextHighestDepth());
15 | this._background = this.itemMC.bgMC;
16 | this._momSprite = this.itemMC.momMC;
17 | this._dadSprite = this.itemMC.dadMC;
18 | if (mom != undefined)
19 | {
20 | this.momIdx = mom;
21 | }
22 | if (dad != undefined)
23 | {
24 | this.dadIdx = dad;
25 | }
26 | this._background = this.itemMC.attachMovie("txdLoader", "heritageBG", this.itemMC.getNextHighestDepth());
27 | this._dadSprite = this.itemMC.attachMovie("txdLoader", "heritageDad", this.itemMC.getNextHighestDepth(), {_x:124});
28 | this._momSprite = this.itemMC.attachMovie("txdLoader", "heritageMom", this.itemMC.getNextHighestDepth(), {_x:20});
29 | com.rockstargames.ScaleformUI.utils.MovieClipHandler.SetClip(this._background,"pause_menu_pages_char_mom_dad","mumdadbg",288,158);
30 | this.setIndex(this.momIdx,this.dadIdx);
31 | }
32 |
33 | function setIndex(mom, dad)
34 | {
35 | this.momIdx = mom;
36 | this.dadIdx = dad;
37 | if (mom > 21)
38 | {
39 | this.momIdx = 21;
40 | }
41 | if (mom < 0)
42 | {
43 | this.momIdx = 0;
44 | }
45 | if (dad > 23)
46 | {
47 | this.dadIdx = 23;
48 | }
49 | if (dad < 0)
50 | {
51 | this.dadIdx = 0;
52 | }
53 | com.rockstargames.ScaleformUI.utils.MovieClipHandler.SetClip(this._dadSprite,"char_creator_portraits",this.dadIdx < 21 ? "male_" + this.dadIdx : "special_male_" + (this.dadIdx - 21),144,158,this.dadLoaded, this);
54 | com.rockstargames.ScaleformUI.utils.MovieClipHandler.SetClip(this._momSprite,"char_creator_portraits",this.momIdx < 21 ? "female_" + this.momIdx : "special_female_" + (this.momIdx - 21),144,158,this.momLoaded, this);
55 | }
56 |
57 |
58 | function momLoaded()
59 | {
60 | this._momSprite._x = 20;
61 | }
62 | function dadLoaded()
63 | {
64 | this._dadSprite._x = 124;
65 | }
66 |
67 | function set Width(w)
68 | {
69 | this.itemMC._width = w;
70 | }
71 |
72 |
73 | function Clear()
74 | {
75 | if (this._background != undefined)
76 | {
77 | if (this._background.isLoaded)
78 | {
79 | this._background.removeTxdRef();
80 | }
81 | }
82 | if (this._dadSprite != undefined)
83 | {
84 | if (this._dadSprite.isLoaded)
85 | {
86 | this._dadSprite.removeTxdRef();
87 | }
88 | }
89 | if (this._momSprite != undefined)
90 | {
91 | if (this._momSprite.isLoaded)
92 | {
93 | this._momSprite.removeTxdRef();
94 | }
95 | }
96 | this.itemMC.removeMovieClip();
97 | }
98 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ScaleformUI/windows/WheelStat.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ScaleformUI.windows.WheelStat
2 | {
3 | var Percentage;
4 | var Colour;
5 |
6 | function WheelStat(perc, col)
7 | {
8 | this.Percentage = perc;
9 | this.Colour = col;
10 | }
11 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/TimerBars/TimerBarPool.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.TimerBars.TimerBarPool
2 | {
3 | var CONTENT;
4 | var _ibDrawing;
5 | var Bars;
6 | var totalBars = 0;
7 | function TimerBarPool(mc)
8 | {
9 | this.CONTENT = mc;
10 | this._ibDrawing = false;
11 | this.Bars = new Array();
12 | this.totalBars = 0;
13 | }
14 |
15 | function AddTimerBar(id, param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13)
16 | {
17 | var bar = new com.rockstargames.TimerBars.TimerBar(this.CONTENT, id, param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13);
18 | this.totalBars = this.Bars.push(bar);
19 | this.updateItemsDrawing();
20 | }
21 |
22 | function updateItemsDrawing()
23 | {
24 | for (var bar in this.Bars)
25 | {
26 | this.Bars[bar].itemMC._y = 720 - (bar * 27.55) - (_ibDrawing ? 27.55 : 0);
27 | this.Bars[bar].itemMC._x = 1280 - this.Bars[bar].itemMC._width;
28 | }
29 | }
30 |
31 | function set IbDrawing(bool)
32 | {
33 | this._ibDrawing = bool;
34 | this.updateItemsDrawing();
35 | }
36 | function get IbDrawing()
37 | {
38 | return this._ibDrawing;
39 | }
40 |
41 | function Clear()
42 | {
43 | for (var bar in this.Bars)
44 | {
45 | this.Bars[bar].itemMC.removeMovieClip();
46 | }
47 | this.Bars = new Array();
48 | this.totalBars = 0;
49 | }
50 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/Multiplayer/ROCKSTAR_VERIFIED.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.Multiplayer.ROCKSTAR_VERIFIED extends MovieClip
2 | {
3 | var VERIFIED;
4 | function ROCKSTAR_VERIFIED()
5 | {
6 | super();
7 | this.VERIFIED = this;
8 | }
9 | function SET_VERIFIED(type, colourEnum)
10 | {
11 | this.VERIFIED.gotoAndStop(type + 1);
12 | var _loc2_ = new com.rockstargames.ui.utils.HudColour();
13 | if (colourEnum == undefined)
14 | {
15 | colourEnum = com.rockstargames.ui.utils.HudColour.HUD_COLOUR_NORTH_BLUE_OFFICIAL;
16 | }
17 | com.rockstargames.ui.utils.Colour.setHudColour(colourEnum,_loc2_);
18 | com.rockstargames.ui.utils.Colour.Colourise(this.VERIFIED,_loc2_.r,_loc2_.g,_loc2_.b,_loc2_.a);
19 | }
20 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/Multiplayer/gtavonlinetv/OnlineTVTick.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.Multiplayer.gtavonlinetv.OnlineTVTick extends MovieClip
2 | {
3 | static var TYPE_FEED:Number = 0;
4 | static var TYPE_TWITTER:Number = 1;
5 | static var TYPE_SOCIAL:Number = 2;
6 | static var TYPE_JOB:Number = 3;
7 | var crewTagScale:Number = 85;
8 | var crewtagOffset:Number = -12;
9 | var attachMovie;
10 | var endMC;
11 | var getNextHighestDepth;
12 |
13 | function OnlineTVTick()
14 | {
15 | super();
16 | }
17 |
18 | function setLabel(enum, str)
19 | {
20 | var __reg3 = undefined;
21 | var __reg5 = 0;
22 | var __reg7 = 14;
23 | var __reg4 = 0;
24 | while (__reg4 < arguments.length)
25 | {
26 | var __reg0 = arguments[__reg4];
27 | if ((__reg0) === com.rockstargames.gtav.Multiplayer.gtavonlinetv.OnlineTVTick.TYPE_JOB)
28 | {
29 | __reg3 = this.attachMovie("TickJobItem", "l" + __reg4 / 2, this.getNextHighestDepth(), {_x:__reg5});
30 | __reg3.bgMC._alpha = 0;
31 | __reg7 = 20;
32 | }
33 | else if (__reg0 === com.rockstargames.gtav.Multiplayer.gtavonlinetv.OnlineTVTick.TYPE_SOCIAL)
34 | {
35 | __reg3 = this.attachMovie("TickFeedItem", "l" + __reg4 / 2, this.getNextHighestDepth(), {_x:__reg5});
36 | com.rockstargames.ui.utils.Colour.Colourise(__reg3.bgMC,255,167,21);
37 | }
38 | else if (__reg0 === com.rockstargames.gtav.Multiplayer.gtavonlinetv.OnlineTVTick.TYPE_TWITTER)
39 | {
40 | __reg3 = this.attachMovie("TickFeedItem", "l" + __reg4 / 2, this.getNextHighestDepth(), {_x:__reg5});
41 | com.rockstargames.ui.utils.Colour.Colourise(__reg3.bgMC,92,173,226);
42 | }
43 | else
44 | {
45 | __reg0 === com.rockstargames.gtav.Multiplayer.gtavonlinetv.OnlineTVTick.TYPE_FEED;
46 | __reg3 = this.attachMovie("TickFeedItem", "l" + __reg4 / 2, this.getNextHighestDepth(), {_x:__reg5});
47 | com.rockstargames.ui.utils.Colour.Colourise(__reg3.bgMC,193,3,15);
48 | }
49 | __reg3.textTF.autoSize = true;
50 | __reg3.textTF.htmlText = arguments[__reg4 + 1];
51 | var __reg6 = __reg3.textTF._width + __reg7 * 2;
52 | __reg3.bgMC._width = __reg6;
53 | __reg3.textTF._x = __reg7;
54 | __reg5 = __reg3._x + __reg6;
55 | __reg4 = __reg4 + 2;
56 | }
57 | this.endMC._x = Math.round(__reg5);
58 | }
59 |
60 | function get tickWidth()
61 | {
62 | return this.endMC._x + 1;
63 | }
64 |
65 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/HeistGameplayLUT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.HeistGameplayLUT
2 | {
3 | var PREFIX = "gp";
4 | var HASHTABLE = new Object();
5 | function HeistGameplayLUT()
6 | {
7 | var _loc3_ = new Array(0,"GP_EMPTY","empty");
8 | var _loc5_ = new Array(1,"PBC_JEWEL_STEALTH","stealth");
9 | var _loc8_ = new Array(2,"PBC_JEWEL_HIGH_IMPACT","highimpact");
10 | var _loc11_ = new Array(3,"PBC_DOCKS_SELL_TO_A","selltoa");
11 | var _loc2_ = new Array(4,"PBC_DOCKS_SELL_TO_B","selltob");
12 | var _loc6_ = new Array(5,"PBC_RURAL_NO_TANK","notank");
13 | var _loc10_ = new Array(6,"PBC_AGENCY_FIRETRUCK","firetruck");
14 | var _loc9_ = new Array(7,"PBC_AGENCY_HELICOPTER","heli");
15 | var _loc4_ = new Array(8,"PBC_FINALE_TRAFFCONT","traffic");
16 | var _loc7_ = new Array(9,"PBC_FINALE_HELI","heli");
17 | this.HASHTABLE = new Object();
18 | this.HASHTABLE[this.PREFIX + "0"] = _loc3_;
19 | this.HASHTABLE[this.PREFIX + "1"] = _loc5_;
20 | this.HASHTABLE[this.PREFIX + "2"] = _loc8_;
21 | this.HASHTABLE[this.PREFIX + "3"] = _loc11_;
22 | this.HASHTABLE[this.PREFIX + "4"] = _loc2_;
23 | this.HASHTABLE[this.PREFIX + "5"] = _loc6_;
24 | this.HASHTABLE[this.PREFIX + "6"] = _loc10_;
25 | this.HASHTABLE[this.PREFIX + "7"] = _loc9_;
26 | this.HASHTABLE[this.PREFIX + "8"] = _loc4_;
27 | this.HASHTABLE[this.PREFIX + "9"] = _loc7_;
28 | }
29 | static function lookUp(i)
30 | {
31 | if(com.rockstargames.gtav.constants.HeistGameplayLUT._instance == undefined)
32 | {
33 | com.rockstargames.gtav.constants.HeistGameplayLUT._instance = new com.rockstargames.gtav.constants.HeistGameplayLUT();
34 | }
35 | return com.rockstargames.gtav.constants.HeistGameplayLUT._instance.HASHTABLE[com.rockstargames.gtav.constants.HeistGameplayLUT._instance.PREFIX + i];
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/HudComponentConstants.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.HudComponentConstants
2 | {
3 | static var HUD = 0;
4 | static var HUD_WANTED_STARS = 1;
5 | static var HUD_WEAPON_ICON = 2;
6 | static var HUD_CASH = 3;
7 | static var HUD_MP_CASH = 4;
8 | static var HUD_MP_MESSAGE = 5;
9 | static var HUD_VEHICLE_NAME = 6;
10 | static var HUD_AREA_NAME = 7;
11 | static var HUD_VEHICLE_CLASS = 8;
12 | static var HUD_STREET_NAME = 9;
13 | static var HUD_HELP_TEXT = 10;
14 | static var HUD_FLOATING_HELP_TEXT_1 = 11;
15 | static var HUD_FLOATING_HELP_TEXT_2 = 12;
16 | static var HUD_CASH_CHANGE = 13;
17 | static var HUD_RETICLE = 14;
18 | static var HUD_SUBTITLE_TEXT = 15;
19 | static var HUD_RADIO_STATIONS = 16;
20 | static var HUD_SAVING_GAME = 17;
21 | static var HUD_GAME_STREAM = 18;
22 | static var HUD_WEAPON_WHEEL = 19;
23 | static var HUD_WEAPON_WHEEL_STATS = 20;
24 | static var MAX_HUD_COMPONENTS = 21;
25 | static var MAX_HUD_WEAPONS = 22;
26 | static var MAX_SCRIPTED_HUD_COMPONENTS = 139;
27 | function HudComponentConstants()
28 | {
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/PauseMenuColoursLUT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.PauseMenuColoursLUT
2 | {
3 | var PREFIX = "cl";
4 | var HASHTABLE = new Object();
5 | static var BLACK = [0,0,0,0,100];
6 | static var BLACK_ALPHA_30 = [1,0,0,0,30];
7 | static var BLACK_ALPHA_50 = [2,0,0,0,50];
8 | static var WHITE = [4,225,225,225,100];
9 | static var GREYED = [5,160,160,160,100];
10 | static var BLACK_ALPHA_DEFAULT = [14,0,0,0,50];
11 | function PauseMenuColoursLUT()
12 | {
13 | this.HASHTABLE = new Object();
14 | this.HASHTABLE[this.PREFIX + "0"] = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK;
15 | this.HASHTABLE[this.PREFIX + "1"] = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK_ALPHA_30;
16 | this.HASHTABLE[this.PREFIX + "2"] = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK_ALPHA_50;
17 | this.HASHTABLE[this.PREFIX + "4"] = com.rockstargames.gtav.constants.PauseMenuColoursLUT.WHITE;
18 | this.HASHTABLE[this.PREFIX + "5"] = com.rockstargames.gtav.constants.PauseMenuColoursLUT.GREYED;
19 | this.HASHTABLE[this.PREFIX + "14"] = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK_ALPHA_DEFAULT;
20 | }
21 | static function lookUp(i)
22 | {
23 | if(com.rockstargames.gtav.constants.PauseMenuColoursLUT._instance == undefined)
24 | {
25 | com.rockstargames.gtav.constants.PauseMenuColoursLUT._instance = new com.rockstargames.gtav.constants.PauseMenuColoursLUT();
26 | }
27 | return com.rockstargames.gtav.constants.PauseMenuColoursLUT._instance.HASHTABLE[com.rockstargames.gtav.constants.PauseMenuColoursLUT._instance.PREFIX + i];
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/PauseMenuComponentLUT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.PauseMenuComponentLUT
2 | {
3 | var PREFIX = "pm";
4 | var HASHTABLE = new Object();
5 | static var SP_HEADER = [0,"PAUSE_MENU_HEADER","PAUSE_MENU_HEADER.swf",48,71,1];
6 | static var SP_CONTENT = [1,"PAUSE_MENU_SP_CONTENT","PAUSE_MENU_SP_CONTENT.swf",48,160,2];
7 | static var STORE_CONTENT = [2,"PAUSE_MENU_STORE_CONTENT","../Store/PAUSE_MENU_STORE_CONTENT.swf",48,160,2];
8 | static var INSTRUCTIONAL = [3,"PAUSE_MENU_INSTRUCTIONAL_BUTTONS","PAUSE_MENU_INSTRUCTIONAL_BUTTONS.swf",-300,0,2];
9 | function PauseMenuComponentLUT()
10 | {
11 | this.HASHTABLE = new Object();
12 | this.HASHTABLE[this.PREFIX + "0"] = com.rockstargames.gtav.constants.PauseMenuComponentLUT.SP_HEADER;
13 | this.HASHTABLE[this.PREFIX + "1"] = com.rockstargames.gtav.constants.PauseMenuComponentLUT.SP_CONTENT;
14 | this.HASHTABLE[this.PREFIX + "2"] = com.rockstargames.gtav.constants.PauseMenuComponentLUT.STORE_CONTENT;
15 | this.HASHTABLE[this.PREFIX + "4"] = com.rockstargames.gtav.constants.PauseMenuComponentLUT.INSTRUCTIONAL;
16 | }
17 | static function lookUp(i)
18 | {
19 | if(com.rockstargames.gtav.constants.PauseMenuComponentLUT._instance == undefined)
20 | {
21 | com.rockstargames.gtav.constants.PauseMenuComponentLUT._instance = new com.rockstargames.gtav.constants.PauseMenuComponentLUT();
22 | }
23 | return com.rockstargames.gtav.constants.PauseMenuComponentLUT._instance.HASHTABLE[com.rockstargames.gtav.constants.PauseMenuComponentLUT._instance.PREFIX + i];
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/PauseMenuLookup.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.PauseMenuLookup
2 | {
3 | function PauseMenuLookup()
4 | {
5 | }
6 | static function lookUp(i)
7 | {
8 | return new com.rockstargames.gtav.constants.PauseMenuLUT(false,true,true);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/SatNavIconsLUT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.SatNavIconsLUT
2 | {
3 | var HASHTABLE = new Object();
4 | var PREFIX = "sn";
5 | static var BLANK = new Array(0,"BLANK");
6 | static var FORWARD = new Array(1,"FORWARD");
7 | static var BACK = new Array(2,"BACK");
8 | static var LEFT = new Array(3,"LEFT");
9 | static var RIGHT = new Array(4,"RIGHT");
10 | static var SLIPROAD_LEFT = new Array(5,"SLIPROAD_LEFT");
11 | static var SLIPROAD_RIGHT = new Array(6,"SLIPROAD_RIGHT");
12 | static var DIAGONAL_LEFT = new Array(7,"DIAGONAL_LEFT");
13 | static var DIAGONAL_RIGHT = new Array(8,"DIAGONAL_RIGHT");
14 | static var MERGE_LEFT = new Array(9,"MERGE_LEFT");
15 | static var MERGE_RIGHT = new Array(10,"MERGE_RIGHT");
16 | static var U_TURN = new Array(11,"U_TURN");
17 | function SatNavIconsLUT()
18 | {
19 | this.HASHTABLE = new Object();
20 | this.HASHTABLE[this.PREFIX + "0"] = com.rockstargames.gtav.constants.SatNavIconsLUT.BLANK;
21 | this.HASHTABLE[this.PREFIX + "1"] = com.rockstargames.gtav.constants.SatNavIconsLUT.FORWARD;
22 | this.HASHTABLE[this.PREFIX + "2"] = com.rockstargames.gtav.constants.SatNavIconsLUT.BACK;
23 | this.HASHTABLE[this.PREFIX + "3"] = com.rockstargames.gtav.constants.SatNavIconsLUT.LEFT;
24 | this.HASHTABLE[this.PREFIX + "4"] = com.rockstargames.gtav.constants.SatNavIconsLUT.RIGHT;
25 | this.HASHTABLE[this.PREFIX + "5"] = com.rockstargames.gtav.constants.SatNavIconsLUT.SLIPROAD_LEFT;
26 | this.HASHTABLE[this.PREFIX + "6"] = com.rockstargames.gtav.constants.SatNavIconsLUT.SLIPROAD_RIGHT;
27 | this.HASHTABLE[this.PREFIX + "7"] = com.rockstargames.gtav.constants.SatNavIconsLUT.DIAGONAL_LEFT;
28 | this.HASHTABLE[this.PREFIX + "8"] = com.rockstargames.gtav.constants.SatNavIconsLUT.DIAGONAL_RIGHT;
29 | this.HASHTABLE[this.PREFIX + "9"] = com.rockstargames.gtav.constants.SatNavIconsLUT.MERGE_LEFT;
30 | this.HASHTABLE[this.PREFIX + "10"] = com.rockstargames.gtav.constants.SatNavIconsLUT.MERGE_RIGHT;
31 | this.HASHTABLE[this.PREFIX + "11"] = com.rockstargames.gtav.constants.SatNavIconsLUT.U_TURN;
32 | }
33 | static function lookUp(i)
34 | {
35 | if(com.rockstargames.gtav.constants.SatNavIconsLUT._instance == undefined)
36 | {
37 | com.rockstargames.gtav.constants.SatNavIconsLUT._instance = new com.rockstargames.gtav.constants.SatNavIconsLUT();
38 | }
39 | return com.rockstargames.gtav.constants.SatNavIconsLUT._instance.HASHTABLE[com.rockstargames.gtav.constants.SatNavIconsLUT._instance.PREFIX + i];
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/constants/ShopBrandLUT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.constants.ShopBrandLUT
2 | {
3 | var PREFIX = "sb";
4 | var HASHTABLE = new Object();
5 | function ShopBrandLUT()
6 | {
7 | var _loc3_ = new Array(0,"SHOP_BRAND_01","brand01");
8 | var _loc4_ = new Array(1,"SHOP_BRAND_02","brand02");
9 | var _loc5_ = new Array(2,"SHOP_BRAND_03","brand03");
10 | var _loc2_ = new Array(3,"SHOP_BRAND_04","brand04");
11 | this.HASHTABLE = new Object();
12 | this.HASHTABLE[this.PREFIX + "0"] = _loc3_;
13 | this.HASHTABLE[this.PREFIX + "1"] = _loc4_;
14 | this.HASHTABLE[this.PREFIX + "2"] = _loc5_;
15 | this.HASHTABLE[this.PREFIX + "3"] = _loc2_;
16 | }
17 | static function lookUp(i)
18 | {
19 | if(com.rockstargames.gtav.constants.ShopBrandLUT._instance == undefined)
20 | {
21 | com.rockstargames.gtav.constants.ShopBrandLUT._instance = new com.rockstargames.gtav.constants.ShopBrandLUT();
22 | }
23 | return com.rockstargames.gtav.constants.ShopBrandLUT._instance.HASHTABLE[com.rockstargames.gtav.constants.ShopBrandLUT._instance.PREFIX + i];
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/levelDesign/BaseScriptUI.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.levelDesign.BaseScriptUI extends MovieClip
2 | {
3 | var BOUNDING_BOX;
4 | var CONTENT;
5 | var TIMELINE;
6 |
7 | function BaseScriptUI()
8 | {
9 | super();
10 | }
11 | function INITIALISE(mc)
12 | {
13 | this.TIMELINE = mc;
14 | this.CONTENT = this.TIMELINE.attachMovie("CONTENT", "CONTENT", this.TIMELINE.getNextHighestDepth());
15 | this.BOUNDING_BOX = this.TIMELINE.attachMovie("BOUNDING_BOX", "BOUNDING_BOX", this.TIMELINE.getNextHighestDepth());
16 | this.BOUNDING_BOX._visible = false;
17 | }
18 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/minimap/InvertedBlip.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.minimap.InvertedBlip extends MovieClip
2 | {
3 | function InvertedBlip()
4 | {
5 | super();
6 | var _loc3_ = new flash.geom.Transform(this);
7 | var _loc4_ = new flash.geom.ColorTransform(-1, -1, -1, 1, 255, 255, 255, 0);
8 | _loc3_.colorTransform = _loc4_;
9 | }
10 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/minimap/minimap_txd_loader.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.minimap.minimap_txd_loader extends MovieClip
2 | {
3 | function minimap_txd_loader()
4 | {
5 | super();
6 | }
7 | function SET_BITMAP_MAP_ON(txd, xpos, ypos)
8 | {
9 | this.TXDmc = this.createEmptyMovieClip(txd,this.getNextHighestDepth(),{_x:0,y:0});
10 | this.LOADCLIP(txd,this.TXDmc);
11 | }
12 | function LOADCLIP(textureDict, targetMC)
13 | {
14 | this.txd_loader = new MovieClipLoader();
15 | this.txd_loader.addListener(this);
16 | var _loc2_ = "img://" + textureDict + "/" + textureDict;
17 | this.txd_loader.loadClip(_loc2_,targetMC);
18 | }
19 | function onLoadInit(targetMC)
20 | {
21 | targetMC._width = 3834;
22 | targetMC._height = 3834;
23 | this.txd_loader.removeListener(this);
24 | this.txd_loader = null;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/PAUSE_MENU_CALIBRATION.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.PAUSE_MENU_CALIBRATION extends com.rockstargames.gtav.levelDesign.BaseScriptUI
2 | {
3 | function PAUSE_MENU_CALIBRATION()
4 | {
5 | super();
6 | }
7 | function INITIALISE(mc)
8 | {
9 | super.INITIALISE(mc);
10 | this.SET_BUTTONS();
11 | }
12 | function SET_ARROW_ALPHA(arrowID, a)
13 | {
14 | var _loc4_ = [this.CONTENT.lArrowMC,this.CONTENT.rArrowMC];
15 | var _loc2_ = _loc4_[arrowID];
16 | if(_loc2_ != undefined)
17 | {
18 | var _loc3_ = Math.max(0,Math.min(a,100));
19 | _loc2_._alpha = _loc3_;
20 | }
21 | }
22 | function SET_BUTTONS()
23 | {
24 | var _loc2_ = this.CONTENT.attachMovie("mouseButton","mouseButtonL",this.CONTENT.getNextHighestDepth(),{_x:445,_y:455,_width:34,_height:47});
25 | var _loc3_ = this.CONTENT.attachMovie("mouseButton","mouseButtonR",this.CONTENT.getNextHighestDepth(),{_x:798,_y:455,_width:34,_height:47});
26 | (com.rockstargames.ui.mouse.MouseBtn)_loc2_.setupGenericMouseInterface(0,0,this.onMouseEvent,[this.CONTENT.lArrowMC]);
27 | (com.rockstargames.ui.mouse.MouseBtn)_loc3_.setupGenericMouseInterface(1,0,this.onMouseEvent,[this.CONTENT.rArrowMC]);
28 | }
29 | function onMouseEvent(evtType, targetMC, args)
30 | {
31 | var _loc1_ = args[0];
32 | switch(evtType)
33 | {
34 | case com.rockstargames.ui.mouse.MOUSE_EVENTS.MOUSE_RELEASE:
35 | _loc1_._yscale = _loc0_ = 75;
36 | _loc1_._xscale = _loc0_;
37 | com.rockstargames.ui.tweenStar.TweenStarLite.to(_loc1_,0.05,{_xscale:100,_yscale:100});
38 | break;
39 | case com.rockstargames.ui.mouse.MOUSE_EVENTS.MOUSE_ROLL_OUT:
40 | _loc1_._yscale = _loc0_ = 100;
41 | _loc1_._xscale = _loc0_;
42 | break;
43 | case com.rockstargames.ui.mouse.MOUSE_EVENTS.MOUSE_ROLL_OVER:
44 | _loc1_._yscale = _loc0_ = 110;
45 | _loc1_._xscale = _loc0_;
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/PAUSE_MENU_SPCHAR_OVERLAYS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.PAUSE_MENU_SPCHAR_OVERLAYS extends com.rockstargames.gtav.levelDesign.BaseScriptUI
2 | {
3 | function PAUSE_MENU_SPCHAR_OVERLAYS()
4 | {
5 | super();
6 | }
7 | function INITIALISE(mc)
8 | {
9 | super.INITIALISE(mc);
10 | }
11 | function debug(id)
12 | {
13 | var _loc3_ = ["pause_menu_overlay_franklin","pause_menu_overlay_michael","pause_menu_overlay_trevor"];
14 | var _loc2_ = id != undefined?id:1;
15 | this.LOAD_IMAGE(_loc3_[_loc2_],200);
16 | }
17 | function LOAD_IMAGE(txd, xpos)
18 | {
19 | var _loc2_ = txd;
20 | this.createTexture(txd,_loc2_);
21 | this.imgLdr._x = xpos;
22 | }
23 | function createTexture(txD, txN, txX, txY, txW, txH)
24 | {
25 | if(this.imgLdr == undefined)
26 | {
27 | this.imgLdr = (com.rockstargames.ui.media.ImageLoaderMC)this.CONTENT.attachMovie("GenericImageLoader","imgLdr",this.CONTENT.getNextHighestDepth(),{_x:txX,_y:txY});
28 | }
29 | if(!this.imgLdr.isLoaded && this.imgLdr.textureDict != txD && this.imgLdr.textureFilename != txN)
30 | {
31 | if(this.imgLdr.isLoaded)
32 | {
33 | this.textureClear();
34 | }
35 | this.imgLdr.init("PAUSE_MENU_SPCHAR_OVERLAYS",txD,txN,!txW?512:txW,!txH?745:txH);
36 | (com.rockstargames.ui.media.ImageLoaderMC)this.imgLdr.requestTxdRef(txD,true,this.textureLoaded,this);
37 | }
38 | }
39 | function textureClear()
40 | {
41 | if(this.imgLdr == undefined)
42 | {
43 | this.imgLdr._alpha = 100;
44 | com.rockstargames.ui.tweenStar.TweenStarLite.endTweenOf(this.imgLdr);
45 | this.imgLdr.removeTxdRef();
46 | }
47 | }
48 | function textureLoaded()
49 | {
50 | this.imgLdr.isLoaded = false;
51 | this.imgLdr._alpha = 0;
52 | com.rockstargames.ui.tweenStar.TweenStarLite.to(this.imgLdr,0.1,{_alpha:100});
53 | }
54 | function TXD_HAS_LOADED(textureDict, success, uniqueID)
55 | {
56 | if(success == true)
57 | {
58 | if(this.imgLdr != undefined)
59 | {
60 | this.imgLdr.displayTxdResponse(textureDict,success);
61 | }
62 | }
63 | }
64 | function TXD_ALREADY_LOADED(textureDict, uniqueID)
65 | {
66 | if(this.imgLdr != undefined)
67 | {
68 | this.imgLdr.displayTxdResponse(textureDict,true);
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/ClickRepeat.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.ClickRepeat extends MovieClip
2 | {
3 | var tweenDelay = 0.4;
4 | function ClickRepeat(_container)
5 | {
6 | super();
7 | this.container = _container;
8 | }
9 | function repeatStart(obj, func, args)
10 | {
11 | this.repeatObj = obj;
12 | this.repeatFunc = func;
13 | this.repeatArgs = args;
14 | com.rockstargames.ui.tweenStar.TweenStarLite.removeTweenOf(this.container);
15 | com.rockstargames.ui.tweenStar.TweenStarLite.delayCall(this.container,this.tweenDelay,{onComplete:this.repeatAction,onCompleteScope:this});
16 | }
17 | function repeatStop()
18 | {
19 | com.rockstargames.ui.tweenStar.TweenStarLite.removeTweenOf(this.container);
20 | this.repeatObj = null;
21 | this.repeatFunc = null;
22 | this.repeatArgs = null;
23 | }
24 | function repeatAction()
25 | {
26 | if(this.repeatFunc != null)
27 | {
28 | this.repeatFunc.apply(this.repeatObj,this.repeatArgs);
29 | com.rockstargames.ui.tweenStar.TweenStarLite.removeTweenOf(this.container);
30 | com.rockstargames.ui.tweenStar.TweenStarLite.delayCall(this.container,this.tweenDelay,{onComplete:this.repeatAction,onCompleteScope:this});
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/MP_CORONA_PLAYER_INFO.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.MP_CORONA_PLAYER_INFO extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function MP_CORONA_PLAYER_INFO()
4 | {
5 | super();
6 | this.dbgID = "MP_CORONA_PLAYER_INFO";
7 | _global.gfxExtensions = true;
8 | }
9 | function INITIALISE(mc)
10 | {
11 | if(mc != undefined)
12 | {
13 | super.INITIALISE(mc);
14 | }
15 | else
16 | {
17 | this.CONTENT = this;
18 | }
19 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuCoronaPlayerInfoModel();
20 | this.model.createView(0,{id:0,x:0,y:0,container:this.CONTENT,linkage:["playerInfoItem"],visibleItems:16});
21 | }
22 | function SHOW_COLUMN(bool)
23 | {
24 | super.SHOW_COLUMN(true);
25 | }
26 | function setColumnDependent(columnMC)
27 | {
28 | this.dependentColumnMC = columnMC;
29 | }
30 | function DISPLAY_VIEW(viewIndex, itemIndex)
31 | {
32 | super.DISPLAY_VIEW.apply(this,arguments);
33 | this.checkForCollisions();
34 | }
35 | function UPDATE_SLOT(_viewIndex, _slotIndex)
36 | {
37 | super.UPDATE_SLOT.apply(this,arguments);
38 | this.checkCollisionAgainst(this.model.getCurrentView().itemList[_viewIndex]);
39 | }
40 | function onDisplayUpdate()
41 | {
42 | this.checkForCollisions();
43 | }
44 | function checkForCollisions()
45 | {
46 | var _loc3_ = this.model.getCurrentView().itemList;
47 | var _loc4_ = _loc3_.length;
48 | var _loc2_ = 0;
49 | while(_loc2_ < _loc4_)
50 | {
51 | this.checkCollisionAgainst(_loc3_[_loc2_]);
52 | _loc2_ = _loc2_ + 1;
53 | }
54 | }
55 | function checkCollisionAgainst(itemMC)
56 | {
57 | itemMC._visible = itemMC.getLeftPosition() >= 288 || itemMC._y >= this.dependentColumnMC.getVisibleHeight();
58 | if(!itemMC._visible)
59 | {
60 | com.rockstargames.ui.utils.Debug.log("Hiding Player Info Item: x:" + itemMC.getLeftPosition() + ", y:" + itemMC._y);
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_BODY_CONFIG_LIST.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_BODY_CONFIG_LIST extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_BODY_CONFIG_LIST()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_BODY_CONFIG_LIST";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuBodyConfigModel();
19 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,container:this.CONTENT,linkage:["bodyConfigListItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.SCROLL_SELECTSTYLE});
20 | }
21 | function SET_INPUT_EVENT(direction)
22 | {
23 | var _loc2_ = 0;
24 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
25 | {
26 | this.model.prevItem();
27 | }
28 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
29 | {
30 | this.model.nextItem();
31 | }
32 | }
33 | function SET_HIGHLIGHT(i)
34 | {
35 | var _loc2_ = (com.rockstargames.ui.components.GUIView)this.model.getCurrentView();
36 | _loc2_.__set__index(i);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_CONFIGURATION_LIST.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_CONFIGURATION_LIST extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_CONFIGURATION_LIST()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_CONFIGURATION_LIST";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuConfigurationModel();
19 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:0,columnSpacing:0,container:this.CONTENT,linkage:["configurationListItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.SCROLL_SELECTSTYLE});
20 | }
21 | function SET_HIGHLIGHT(i)
22 | {
23 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuConfigurationView)this.model.getCurrentView();
24 | _loc2_.__set__index(i);
25 | }
26 | function SET_INPUT_EVENT(direction)
27 | {
28 | var _loc2_ = 0;
29 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
30 | {
31 | this.model.prevItem();
32 | }
33 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
34 | {
35 | this.model.nextItem();
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_CREW_COMPARISON_CARD.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_CREW_COMPARISON_CARD extends com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_CREWS_CARD
2 | {
3 | function PAUSE_MENU_CREW_COMPARISON_CARD()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_CREW_COMPARISON_CARD";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | super.INITIALISE(mc,true);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_CREW_RANKS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_CREW_RANKS extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_CREW_RANKS()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_CREW_RANKS";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.scrollableContent = this.CONTENT.createEmptyMovieClip("scrollContent",0);
19 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewRanksModel();
20 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,maskHeight:430 - this.titleHeight,titleHeight:this.titleHeight,container:this.scrollableContent,linkage:["crewRankItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.FOCUS_SELECTSTYLE});
21 | }
22 | function SET_LINKED_LEADERBOARD(_crewsList)
23 | {
24 | this.crewsList = _crewsList;
25 | }
26 | function SHOW_COLUMN(bool)
27 | {
28 | super.SHOW_COLUMN(bool);
29 | if(this.crewsList != undefined)
30 | {
31 | this.crewsList.SET_HOVER_WIDTH(bool);
32 | this.crewsList.ADJUST_HOVER_WIDTH(bool);
33 | }
34 | }
35 | function SET_FOCUS(isFocused)
36 | {
37 | this.columnIsFocused = isFocused;
38 | this.SEND_COLUMN_PARAMS();
39 | if(isFocused)
40 | {
41 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewRanksModel)this.model.highlightNext();
42 | }
43 | else
44 | {
45 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewRanksModel)this.model.clearHighlight();
46 | }
47 | }
48 | function getKeys()
49 | {
50 | if(Key.isDown(38))
51 | {
52 | this.SET_INPUT_EVENT(com.rockstargames.ui.game.GamePadConstants.DPADUP);
53 | }
54 | else if(Key.isDown(40))
55 | {
56 | this.SET_INPUT_EVENT(com.rockstargames.ui.game.GamePadConstants.DPADDOWN);
57 | }
58 | }
59 | function SET_INPUT_EVENT(direction)
60 | {
61 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
62 | {
63 | this.model.prevItem();
64 | }
65 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
66 | {
67 | this.model.nextItem();
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_DIALOGUE_LIST.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_DIALOGUE_LIST extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_DIALOGUE_LIST()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_DIALOGUE_LIST";
7 | this.scrollMask._visible = false;
8 | }
9 | function INITIALISE(mc)
10 | {
11 | if(mc)
12 | {
13 | super.INITIALISE(mc);
14 | }
15 | else
16 | {
17 | this.CONTENT = this;
18 | }
19 | this.SET_FOCUS(false);
20 | this.containerMC = this.CONTENT.createEmptyMovieClip("containerMC",this.getNextHighestDepth());
21 | this.containerMC.setMask(this.scrollMask);
22 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuDialogueModel();
23 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,maskHeight:this.scrollMask._height,titleHeight:this.titleHeight,container:this.containerMC,linkage:["dialogueListItem"],visibleItems:8,selectstyle:com.rockstargames.ui.components.GUIView.SCROLLALL_SELECTSTYLE});
24 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.CONTENT.bgMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_PAUSE_BG);
25 | this.CONTENT.bgMC.onRollOver = this.rollOver;
26 | this.CONTENT.bgMC.onRollOut = this.rollOut;
27 | this.CONTENT.bgMC.onDragOut = this.rollOut;
28 | }
29 | function rollOver()
30 | {
31 | _level0.TIMELINE.MOUSE_COLUMN_SHIFT(1);
32 | }
33 | function rollOut()
34 | {
35 | _level0.TIMELINE.MOUSE_COLUMN_SHIFT(0);
36 | }
37 | function SET_DATA_SLOT_EMPTY(viewIndex, itemIndex)
38 | {
39 | this.ON_DESTROY();
40 | super.SET_DATA_SLOT_EMPTY(viewIndex,itemIndex);
41 | }
42 | function DISPLAY_VIEW(viewIndex, itemIndex)
43 | {
44 | super.DISPLAY_VIEW(viewIndex,itemIndex);
45 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuDialogueView)this.model.getCurrentView().scrollToBottom();
46 | if(this.containerMC._height > this.scrollMask._height)
47 | {
48 | this.SET_SCROLL_BAR(0,0);
49 | com.rockstargames.ui.game.GameInterface.call("COLUMN_CAN_SCROLL",com.rockstargames.ui.game.GameInterface.PAUSE_TYPE,true);
50 | }
51 | }
52 | function ON_DESTROY()
53 | {
54 | var _loc3_ = this.model.getCurrentView().itemList;
55 | var _loc2_ = 0;
56 | while(_loc2_ < _loc3_.length)
57 | {
58 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuDialogueItem)_loc3_[_loc2_].onDestroy();
59 | _loc2_ = _loc2_ + 1;
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_FEED.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_FEED extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_FEED()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_FEED";
7 | this.scrollMask._visible = false;
8 | }
9 | function INITIALISE(mc)
10 | {
11 | if(mc)
12 | {
13 | super.INITIALISE(mc);
14 | }
15 | else
16 | {
17 | this.CONTENT = this;
18 | }
19 | this.containerMC = this.CONTENT.createEmptyMovieClip("containerMC",this.getNextHighestDepth());
20 | this.containerMC.setMask(this.scrollMask);
21 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFeedModel();
22 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:11,columnSpacing:0,maskHeight:this.scrollMask._height,titleHeight:this.titleHeight,container:this.containerMC,linkage:["feedItem"],visibleItems:50,selectstyle:com.rockstargames.ui.components.GUIView.SCROLLALL_SELECTSTYLE});
23 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.CONTENT.bgMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_PAUSE_BG);
24 | this.CONTENT.bgMC.onRollOver = this.rollOver;
25 | this.CONTENT.bgMC.onRollOut = this.rollOut;
26 | this.CONTENT.bgMC.onDragOut = this.rollOut;
27 | }
28 | function rollOver()
29 | {
30 | _level0.TIMELINE.MOUSE_COLUMN_SHIFT(1);
31 | }
32 | function rollOut()
33 | {
34 | _level0.TIMELINE.MOUSE_COLUMN_SHIFT(0);
35 | }
36 | function DISPLAY_VIEW(viewIndex, itemIndex)
37 | {
38 | super.DISPLAY_VIEW.apply(this,arguments);
39 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFeedView)this.model.getCurrentView().scrollToBottom();
40 | if(this.containerMC._height > this.scrollMask._height)
41 | {
42 | this.SET_SCROLL_BAR(0,0);
43 | com.rockstargames.ui.game.GameInterface.call("COLUMN_CAN_SCROLL",com.rockstargames.ui.game.GameInterface.PAUSE_TYPE,true);
44 | }
45 | }
46 | function SET_FOCUS(isFocused)
47 | {
48 | this.columnIsFocused = isFocused;
49 | this.SEND_COLUMN_PARAMS();
50 | }
51 | function SET_DATA_SLOT_EMPTY(viewIndex, itemIndex)
52 | {
53 | this.ON_DESTROY();
54 | super.SET_DATA_SLOT_EMPTY(viewIndex,itemIndex);
55 | this.model.getCurrentView().viewContainer._y = 0;
56 | }
57 | function ON_DESTROY()
58 | {
59 | var _loc3_ = this.model.getCurrentView().itemList;
60 | var _loc2_ = 0;
61 | while(_loc2_ < _loc3_.length)
62 | {
63 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuFeedItem)_loc3_[_loc2_].onDestroy();
64 | _loc2_ = _loc2_ + 1;
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_FREEMODE_MAP.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_FREEMODE_MAP extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_FREEMODE_MAP()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_FREEMODE_MAP";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | var _loc4_ = new com.rockstargames.ui.utils.HudColour();
19 | com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_ORANGELIGHT,_loc4_);
20 | com.rockstargames.ui.utils.Colour.Colourise(this.CONTENT.detailsMC.titleMC.titleBGMC,_loc4_.r,_loc4_.g,_loc4_.b,_loc4_.a);
21 | var _loc3_ = new com.rockstargames.ui.utils.HudColour();
22 | com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_BLACK,_loc3_);
23 | com.rockstargames.ui.utils.Colour.Colourise(this.CONTENT.detailsMC.infoMC.infoBGMC,_loc3_.r,_loc3_.g,_loc3_.b,_loc3_.a);
24 | this.CONTENT.detailsMC._visible = false;
25 | }
26 | function SET_TITLE()
27 | {
28 | this.CONTENT.detailsMC._visible = true;
29 | var _loc6_ = arguments[0];
30 | var _loc4_ = arguments[1];
31 | var _loc5_ = arguments[2];
32 | var _loc3_ = this.CONTENT.detailsMC;
33 | com.rockstargames.ui.utils.UIText.setSizedText(_loc3_.titleMC.titleTF,_loc6_,true);
34 | com.rockstargames.ui.utils.UIText.setSizedText(_loc3_.infoMC.nameTF,_loc4_,true);
35 | com.rockstargames.ui.utils.UIText.setSizedText(_loc3_.infoMC.timeTF,_loc5_,true);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_FRIENDS_STATS_SP.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_FRIENDS_STATS_SP extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_FRIENDS_STATS_SP()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_FRIENDS_STATS_SP";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFriendsStatsModel();
19 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:0,columnSpacing:0,maskHeight:430,container:this.CONTENT,linkage:["mpFriendsStatsListItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.SCROLL_SELECTSTYLE});
20 | }
21 | function debug()
22 | {
23 | var _loc2_ = new Object();
24 | _loc2_.onKeyDown = mx.utils.Delegate.create(this,this.getKeys);
25 | Key.addListener(_loc2_);
26 | this.SET_DATA_SLOT(0,999,0,0,"Menu item 0 this is an example of text going way over the length");
27 | this.SET_DATA_SLOT(1,999,0,0,"Menu item 1 this is an example of text going way over the length and a little more here maybe going over 3 lines");
28 | this.SET_DATA_SLOT(2,999,0,0,"Menu item 2");
29 | this.SET_DATA_SLOT(3,999,0,0,"Menu item 3");
30 | this.SET_DATA_SLOT(4,999,0,0,"Menu item 4");
31 | this.DISPLAY_VIEW(0);
32 | }
33 | function SET_DATA_SLOT(_viewIndex, _slotIndex)
34 | {
35 | var _loc3_ = arguments;
36 | this.model.addDataToView(0,_viewIndex,_loc3_);
37 | }
38 | function DISPLAY_VIEW(viewIndex, itemIndex)
39 | {
40 | this.model.displayView(0);
41 | }
42 | function getKeys()
43 | {
44 | if(Key.isDown(38))
45 | {
46 | this.SET_INPUT_EVENT(com.rockstargames.ui.game.GamePadConstants.DPADUP);
47 | }
48 | else if(Key.isDown(40))
49 | {
50 | this.SET_INPUT_EVENT(com.rockstargames.ui.game.GamePadConstants.DPADDOWN);
51 | }
52 | }
53 | function SET_INPUT_EVENT(direction)
54 | {
55 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
56 | {
57 | this.model.prevItem();
58 | }
59 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
60 | {
61 | this.model.nextItem();
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_NEWSWIRE.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_NEWSWIRE extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_NEWSWIRE()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_NEWSWIRE";
7 | }
8 | function INITIALISE()
9 | {
10 | this.mouseWheelObj = new com.rockstargames.ui.mouse.MouseBtn();
11 | this.mouseWheelObj._name = "mouseWheelObj";
12 | this.mouseWheelObj.dispose();
13 | this.mouseWheelObj.setupGenericMouseInterface(0);
14 | this.CONTENT = this;
15 | this.CONTENT.bgMC.onRollOver = this.rollOver;
16 | this.CONTENT.bgMC.onRollOut = this.rollOut;
17 | this.CONTENT.bgMC.onDragOut = this.rollOut;
18 | }
19 | function rollOver()
20 | {
21 | _level0.TIMELINE.MOUSE_COLUMN_SHIFT(1);
22 | }
23 | function rollOut()
24 | {
25 | _level0.TIMELINE.MOUSE_COLUMN_SHIFT(0);
26 | }
27 | function SET_INPUT_EVENT(direction)
28 | {
29 | switch(direction)
30 | {
31 | case 8:
32 | this.mouseWheelObj.sendMouseEvent(com.rockstargames.ui.mouse.MOUSE_EVENTS.MOUSE_WHEEL_UP);
33 | break;
34 | case 9:
35 | this.mouseWheelObj.sendMouseEvent(com.rockstargames.ui.mouse.MOUSE_EVENTS.MOUSE_WHEEL_DOWN);
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_REPLAY_LIST.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_REPLAY_LIST extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_REPLAY_LIST()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_REPLAY_LIST";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalModel();
19 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,container:this.CONTENT,linkage:["replayMenuListItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.SCROLL_SELECTSTYLE});
20 | }
21 | function SET_HIGHLIGHT(i)
22 | {
23 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalView)this.model.getCurrentView();
24 | _loc2_.__set__index(i);
25 | }
26 | function SET_INPUT_EVENT(direction)
27 | {
28 | var _loc2_ = 0;
29 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
30 | {
31 | this.model.prevItem();
32 | }
33 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
34 | {
35 | this.model.nextItem();
36 | }
37 | }
38 | function SET_DATA_SLOT_EMPTY(viewIndex, itemIndex)
39 | {
40 | super.SET_DATA_SLOT_EMPTY(viewIndex,itemIndex);
41 | this.model.getCurrentView().__set__index(0);
42 | }
43 | function DISPLAY_VIEW(viewIndex, itemIndex)
44 | {
45 | super.DISPLAY_VIEW(viewIndex,itemIndex);
46 | if(this.canMouseNav)
47 | {
48 | this.SEND_COLUMN_PARAMS();
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_STATS_VERTICAL_LIST.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_STATS_VERTICAL_LIST extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_STATS_VERTICAL_LIST()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_STATS_VERTICAL_LIST";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalModel();
19 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,container:this.CONTENT,linkage:["statsVerticalMenuListItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.SCROLL_SELECTSTYLE});
20 | }
21 | function SET_HIGHLIGHT(i)
22 | {
23 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalView)this.model.getCurrentView();
24 | _loc2_.__set__index(i);
25 | }
26 | function SET_INPUT_EVENT(direction)
27 | {
28 | var _loc2_ = 0;
29 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
30 | {
31 | this.model.prevItem();
32 | }
33 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
34 | {
35 | this.model.nextItem();
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_STORE_NEWS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_STORE_NEWS extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_STORE_NEWS()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_STATS_LIST";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | this.CONTENT = this;
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_TEXT_LIST_DOUBLE.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_TEXT_LIST_DOUBLE extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_TEXT_LIST_DOUBLE()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_TEXT_LIST_DOUBLE";
7 | this.scrollMask._visible = false;
8 | var _loc3_ = new com.rockstargames.ui.utils.HudColour();
9 | com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_PAUSE_BG,_loc3_);
10 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc3_.r,_loc3_.g,_loc3_.b,_loc3_.a);
11 | }
12 | function INITIALISE(mc)
13 | {
14 | if(mc != undefined)
15 | {
16 | super.INITIALISE(mc);
17 | }
18 | else
19 | {
20 | this.CONTENT = this;
21 | }
22 | this.SET_FOCUS(false);
23 | this.scrollableContent = this.CONTENT.createEmptyMovieClip("scrollContent",0);
24 | this.scrollableContent.setMask(this.scrollMask);
25 | var _loc3_ = this.scrollableContent.createEmptyMovieClip("scrollContent",0);
26 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextModel();
27 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:-2,columnSpacing:0,maskHeight:430,titleHeight:this.titleHeight,container:_loc3_,linkage:["textListDoubleItem"],visibleItems:15,selectstyle:com.rockstargames.ui.components.GUIView.SCROLLALL_SELECTSTYLE});
28 | }
29 | function DISPLAY_VIEW(viewIndex, itemIndex)
30 | {
31 | super.DISPLAY_VIEW.apply(this,arguments);
32 | if(this.scrollableContent._height > 430)
33 | {
34 | com.rockstargames.ui.game.GameInterface.call("COLUMN_CAN_SCROLL",com.rockstargames.ui.game.GameInterface.PAUSE_TYPE,true);
35 | }
36 | }
37 | function SET_DATA_SLOT_EMPTY(viewIndex, itemIndex)
38 | {
39 | super.SET_DATA_SLOT_EMPTY(viewIndex,itemIndex);
40 | this.model.getCurrentView().viewContainer._y = 0;
41 | }
42 | function SET_FOCUS(isFocused)
43 | {
44 | this.columnIsFocused = isFocused;
45 | this.SEND_COLUMN_PARAMS();
46 | }
47 | function SET_INPUT_EVENT(direction)
48 | {
49 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
50 | {
51 | this.model.prevItem();
52 | }
53 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
54 | {
55 | this.model.nextItem();
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_TEXT_LIST_FULL.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_TEXT_LIST_FULL extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_TEXT_LIST_FULL()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_TEXT_LIST_FULL";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.SET_FOCUS(false);
19 | this.scrollableContent = this.CONTENT.createEmptyMovieClip("scrollContent",0);
20 | var _loc3_ = this.scrollableContent.createEmptyMovieClip("scrollContent",0);
21 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextFullModel();
22 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,maskHeight:430,titleHeight:this.titleHeight,container:_loc3_,linkage:["textListFullItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.FOCUS_SELECTSTYLE});
23 | }
24 | function SET_FOCUS(isFocused)
25 | {
26 | this.columnIsFocused = isFocused;
27 | this.SEND_COLUMN_PARAMS();
28 | if(isFocused)
29 | {
30 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextFullModel)this.model.highlightNext();
31 | }
32 | else
33 | {
34 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextFullModel)this.model.clearHighlight();
35 | }
36 | }
37 | function SET_HIGHLIGHT(i)
38 | {
39 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextFullView)this.model.getCurrentView();
40 | _loc2_.__set__index(i);
41 | }
42 | function getKeys()
43 | {
44 | if(Key.isDown(38))
45 | {
46 | this.SET_INPUT_EVENT(com.rockstargames.ui.game.GamePadConstants.DPADUP);
47 | }
48 | else if(Key.isDown(40))
49 | {
50 | this.SET_INPUT_EVENT(com.rockstargames.ui.game.GamePadConstants.DPADDOWN);
51 | }
52 | }
53 | function SET_INPUT_EVENT(direction)
54 | {
55 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
56 | {
57 | this.model.prevItem();
58 | }
59 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
60 | {
61 | this.model.nextItem();
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MENU_VERTICAL_LIST.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_VERTICAL_LIST extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | function PAUSE_MENU_VERTICAL_LIST()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MENU_VERTICAL_LIST";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | if(mc != undefined)
11 | {
12 | super.INITIALISE(mc);
13 | }
14 | else
15 | {
16 | this.CONTENT = this;
17 | }
18 | this.model = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalModel();
19 | this.model.createView(0,{id:0,x:0,y:0,rowSpacing:2,columnSpacing:0,container:this.CONTENT,linkage:["verticalMenuListItem"],visibleItems:16,selectstyle:com.rockstargames.ui.components.GUIView.SCROLL_SELECTSTYLE});
20 | }
21 | function SET_HIGHLIGHT(i)
22 | {
23 | var _loc2_ = com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalView(this.model.getCurrentView());
24 | _loc2_.__set__index(i);
25 | }
26 | function SET_INPUT_EVENT(direction)
27 | {
28 | var _loc2_ = 0;
29 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADUP)
30 | {
31 | this.model.prevItem();
32 | }
33 | if(direction == com.rockstargames.ui.game.GamePadConstants.DPADDOWN)
34 | {
35 | this.model.nextItem();
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PAUSE_MP_MENU_PLAYER_COMPARISON_CARD.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MP_MENU_PLAYER_COMPARISON_CARD extends com.rockstargames.gtav.pauseMenu.pauseComponents.MP_PLAYER_CARD
2 | {
3 | function PAUSE_MP_MENU_PLAYER_COMPARISON_CARD()
4 | {
5 | super();
6 | this.dbgID = "PAUSE_MP_MENU_PLAYER_COMPARISON_CARD";
7 | }
8 | function INITIALISE(mc)
9 | {
10 | super.INITIALISE(mc,true);
11 | }
12 | function SET_TITLE(title)
13 | {
14 | super.SET_TITLE.apply(this,arguments);
15 | com.rockstargames.ui.utils.UIText.setSizedText(this.CONTENT.titleTF,title,true,false,18,18);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/PauseMenuGalleryBase.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuGalleryBase extends com.rockstargames.gtav.pauseMenu.pauseComponents.PauseMenuComponentBase
2 | {
3 | var isBatchLoading = false;
4 | var batchIndex = 0;
5 | var batchList = new Array();
6 | var txdList = new Array();
7 | var maxGridItems = 9;
8 | function PauseMenuGalleryBase()
9 | {
10 | super();
11 | this.galleryLoadManager = new com.rockstargames.ui.media.ImageLoaderManager();
12 | }
13 | function removeAllTXDs()
14 | {
15 | this.txdList = [];
16 | this.batchList = [];
17 | this.batchIndex = 0;
18 | this.isBatchLoading = false;
19 | }
20 | function preloadAllTXDs()
21 | {
22 | }
23 | function SET_HIGHLIGHT(i)
24 | {
25 | var _loc3_ = (com.rockstargames.ui.components.GUIView)this.model.getCurrentView();
26 | if(i == -1)
27 | {
28 | i = 0;
29 | while(i < _loc3_.itemList.length)
30 | {
31 | (com.rockstargames.ui.components.GUIMenuItem)_loc3_.itemList[i].__set__highlighted(false);
32 | i = i + 1;
33 | }
34 | }
35 | else
36 | {
37 | i = Math.max(0,Math.min(i,this.maxGridItems - 1));
38 | _loc3_.__set__index(i);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseComponents/SP_PLAYER_COMPARISON_CARD.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseComponents.SP_PLAYER_COMPARISON_CARD extends com.rockstargames.gtav.pauseMenu.pauseComponents.SP_PLAYER_CARD
2 | {
3 | function SP_PLAYER_COMPARISON_CARD()
4 | {
5 | super();
6 | this.dbgID = "SP_PLAYER_COMPARISON_CARD";
7 | }
8 | function getMovieID()
9 | {
10 | return "spPlayerComparisonCardStatItem";
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/PauseMenuMissionHelpListItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuMissionHelpListItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListItem
2 | {
3 | function PauseMenuMissionHelpListItem()
4 | {
5 | super();
6 | }
7 | function mInit()
8 | {
9 | }
10 | function __set__data(_d)
11 | {
12 | this.index = _d[0];
13 | this.menuID = _d[1];
14 | this.uniqueID = _d[2];
15 | this.type = _d[3];
16 | this.initialIndex = _d[4];
17 | this.isSelectable = _d[5];
18 | if(_d.length >= 7)
19 | {
20 | this._data = _d.slice(6);
21 | }
22 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.labelMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE);
23 | this.bgMC._visible = false;
24 | if(this.blipLayer != undefined)
25 | {
26 | this.blipLayer.removeMovieClip();
27 | }
28 | this.blipLayer = this.labelMC.createEmptyMovieClip("blipLayer",1000);
29 | this.itemTextLeft.autoSize = true;
30 | var _loc3_ = new com.rockstargames.ui.utils.Text();
31 | _loc3_.setTextWithIcons(this._data[0],this.blipLayer,this.itemTextLeft,0,13,3,false);
32 | this.snapBGGrid(this.bgMC);
33 | return this.__get__data();
34 | }
35 | function snapBGGrid(bgMC)
36 | {
37 | var _loc2_ = this.labelMC._y + this.itemTextLeft.textHeight;
38 | bgMC._height = _loc2_;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/PauseMenuMissionHelpModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuMissionHelpModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuMissionHelpModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuMissionHelpView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/PauseMenuMissionHelpView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuMissionHelpView extends com.rockstargames.ui.components.GUIView
2 | {
3 | var SCROLL_DURATION = 0.2;
4 | var SCROLL_DY = 27;
5 | var titleHeight = 25;
6 | var scrollJumpVal = 25;
7 | var scrollYPos = 0;
8 | function PauseMenuMissionHelpView()
9 | {
10 | super();
11 | }
12 | function addDisplayItem(i, _dataArray)
13 | {
14 | var _loc3_ = this.viewLinkageList[0];
15 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
16 | _loc2_._y = this.itemY;
17 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuMissionHelpListItem)_loc2_;
18 | _loc4_.__set__data(_dataArray);
19 | this.itemList[i] = _loc4_;
20 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
21 | }
22 | function __set__params(_p)
23 | {
24 | super.__set__params(_p);
25 | if(_p.titleHeight != undefined)
26 | {
27 | this.titleHeight = _p.titleHeight;
28 | }
29 | this.scrollJumpVal = this.titleHeight;
30 | return this.__get__params();
31 | }
32 | function scrollToBottom()
33 | {
34 | var _loc2_ = 430;
35 | var _loc3_ = this.viewContainer._height;
36 | if(_loc3_ > _loc2_)
37 | {
38 | this.viewContainer._y = - _loc3_ - _loc2_;
39 | }
40 | }
41 | function destroy()
42 | {
43 | super.destroy();
44 | com.rockstargames.ui.tweenStar.TweenStarLite.removeTweenOf(this.viewContainer);
45 | }
46 | function scrollAllHighlightStyle(targetIndex, tween)
47 | {
48 | if(tween == undefined)
49 | {
50 | tween = true;
51 | }
52 | var _loc4_ = this.direction(targetIndex);
53 | var _loc3_ = this.viewContainer._height;
54 | if(_loc4_ != 0 && _loc3_ > this.viewMaskHeight)
55 | {
56 | var _loc2_ = this.viewContainer._y;
57 | _loc2_ = _loc2_ - this.SCROLL_DY * _loc4_;
58 | var _loc5_ = - _loc3_ + this.viewMaskHeight;
59 | if(_loc2_ < _loc5_)
60 | {
61 | _loc2_ = _loc5_;
62 | }
63 | else if(_loc2_ > 0)
64 | {
65 | _loc2_ = 0;
66 | }
67 | this.highlightedItem = targetIndex;
68 | if(tween)
69 | {
70 | com.rockstargames.ui.tweenStar.TweenStarLite.to(this.viewContainer,this.SCROLL_DURATION,{_y:_loc2_,ease:com.rockstargames.ui.tweenStar.Ease.QUADRATIC_INOUT});
71 | }
72 | else
73 | {
74 | this.viewContainer._y = _loc2_;
75 | }
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/PauseMenuSettingsAudio.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuSettingsAudio extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuSettingsAudio()
4 | {
5 | super();
6 | this.isAdjustable = true;
7 | }
8 | function __set__data(_d)
9 | {
10 | super.__set__data(_d);
11 | return this.__get__data();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/PauseMenuViewBase.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase extends com.rockstargames.ui.components.GUIView
2 | {
3 | var maxVisibleItems = 16;
4 | function PauseMenuViewBase()
5 | {
6 | super();
7 | }
8 | function __set__params(_p)
9 | {
10 | super.__set__params(_p);
11 | this.maxVisibleItems = this.visibleItems;
12 | return this.__get__params();
13 | }
14 | function displayView()
15 | {
16 | this.visibleItems = this.maxVisibleItems;
17 | super.displayView();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuAwardsModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuAwardsModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMPMenuAwardsModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuAwardsView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function onDestroy()
19 | {
20 | var _loc3_ = this.viewList[0];
21 | var _loc4_ = _loc3_.itemList.length;
22 | var _loc2_ = 0;
23 | _loc2_ = 0;
24 | while(_loc2_ < _loc4_)
25 | {
26 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuAwardsItem)_loc3_.itemList[_loc2_].ON_DESTROY();
27 | _loc2_ = _loc2_ + 1;
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuCoronaPlayerInfoModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuCoronaPlayerInfoModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMPMenuCoronaPlayerInfoModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuCoronaPlayerInfoView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuCoronaPlayerInfoView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuCoronaPlayerInfoView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | function PauseMPMenuCoronaPlayerInfoView()
4 | {
5 | super();
6 | }
7 | function addDisplayItem(i, _dataArray)
8 | {
9 | var _loc2_ = this.viewLinkageList[0];
10 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuCoronaPlayerInfoItem)this.viewContainer.attachMovie(_loc2_,_loc2_ + i + "MC",i);
11 | _loc3_.__set__data(_dataArray);
12 | this.itemList[i] = _loc3_;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuFriendsListModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuFriendsListModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMPMenuFriendsListModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuFriendsListView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuMatchmakingCardModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuMatchmakingCardModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMPMenuMatchmakingCardModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuMatchmakingCardView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuMatchmakingCardView)this.getCurrentView();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuMatchmakingCardView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuMatchmakingCardView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | var titleHeight = 25;
4 | var scrollJumpVal = 25;
5 | var scrollYPos = 0;
6 | var txdLevelOverride = false;
7 | var txdCallbackDepth = 0;
8 | function PauseMPMenuMatchmakingCardView()
9 | {
10 | super();
11 | }
12 | function overrideTxdLevel(isOverride, newDepth)
13 | {
14 | this.txdLevelOverride = isOverride;
15 | this.txdCallbackDepth = newDepth;
16 | }
17 | function addDisplayItem(i, _dataArray)
18 | {
19 | var _loc4_ = this.viewLinkageList[0];
20 | var _loc3_ = this.viewContainer.attachMovie(_loc4_,_loc4_ + i + "MC",i);
21 | _loc3_._y = this.itemY;
22 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuMatchmakingCardItem)_loc3_;
23 | var _loc6_ = this.__get__params().isStandalone;
24 | _loc2_.__set__isStandalone(_loc6_);
25 | if(this.txdLevelOverride)
26 | {
27 | _loc2_.txdCallbackDepth = this.txdCallbackDepth;
28 | }
29 | _loc2_.__set__data(_dataArray);
30 | this.itemList[i] = _loc2_;
31 | this.itemY = this.itemY + (_loc3_.bgMC._height + this.rowSpacing);
32 | }
33 | function scrollHighlightStyle(targetIndex)
34 | {
35 | targetIndex = Math.max(0,Math.min(targetIndex,this.dataList.length - 1));
36 | var _loc2_ = 0;
37 | var _loc4_ = 0;
38 | if(targetIndex > this.topEdge + this.visibleItems - 1)
39 | {
40 | _loc4_ = _loc4_ + (targetIndex - (this.visibleItems - 1));
41 | this.topEdge = _loc4_;
42 | targetIndex = this.visibleItems - 1;
43 | }
44 | else if(targetIndex < this.topEdge)
45 | {
46 | _loc4_ = targetIndex;
47 | this.topEdge = _loc4_;
48 | targetIndex = 0;
49 | }
50 | else
51 | {
52 | _loc4_ = this.topEdge;
53 | targetIndex = targetIndex - this.topEdge;
54 | }
55 | _loc2_ = 0;
56 | while(_loc2_ < this.itemList.length)
57 | {
58 | this.itemList[_loc2_].data = this.dataList[_loc4_ + _loc2_];
59 | this.itemList[_loc2_].highlighted = targetIndex == _loc2_;
60 | _loc2_ = _loc2_ + 1;
61 | }
62 | this.highlightedItem = targetIndex;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuNextJobListItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuNextJobListItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuFriendsListItem
2 | {
3 | function PauseMPMenuNextJobListItem()
4 | {
5 | super();
6 | this.IS_NEXT_JOB_LIST = true;
7 | }
8 | function __set__data(_d)
9 | {
10 | super.__set__data(_d);
11 | this.setAvatarImg(this.__get__data()[10],this.__get__data()[11]);
12 | return this.__get__data();
13 | }
14 | function setIcon(frameStr, fMC)
15 | {
16 | super.setIcon(frameStr,fMC);
17 | var _loc3_ = this.__get__data()[3];
18 | this.labelMC.icon2MC.gotoAndStop(_loc3_);
19 | if(this.labelMC.icon2MC.animIcon)
20 | {
21 | this.labelMC.icon2MC.animIcon.play();
22 | }
23 | }
24 | function setAvatarImg(txd, txn)
25 | {
26 | if(txd && txn)
27 | {
28 | if(!this.avatarImgMC)
29 | {
30 | this.avatarImgMC = (com.rockstargames.ui.media.ImageLoaderMC)this.attachMovie("GenericImageLoader","avatarImgMC",this.getNextHighestDepth());
31 | }
32 | this.avatarImgMC.loadWithValidation("MP_NEXT_JOB_SELECTION",txd,txn,5,25,25);
33 | this.itemTextLeft._x = 30;
34 | this.tabMC._x = 27;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/multiplayer/PauseMPMenuWeaponsModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuWeaponsModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMPMenuWeaponsModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.multiplayer.PauseMPMenuWeaponsView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuBodyConfigModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuBodyConfigModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuBodyConfigModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuBodyConfigView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | _loc2_.topEdge = 0;
23 | this.viewIndex = 0;
24 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuBodyConfigView)this.getCurrentView();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuBodyConfigView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuBodyConfigView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | var initialValueIndex = 4;
4 | function PauseMenuBodyConfigView()
5 | {
6 | super();
7 | }
8 | function addDisplayItem(i, _dataArray)
9 | {
10 | var _loc3_ = this.viewLinkageList[0];
11 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
12 | _loc2_._y = this.itemY;
13 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuBodyConfigItem)_loc2_;
14 | _loc4_.__set__data(_dataArray);
15 | this.itemList[i] = _loc4_;
16 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
17 | }
18 | function storeDataChange(dataIndex, value)
19 | {
20 | this.dataList[dataIndex][this.initialValueIndex] = value;
21 | }
22 | function scrollHighlightStyle(targetIndex)
23 | {
24 | targetIndex = Math.max(0,Math.min(targetIndex,this.dataList.length - 1));
25 | var _loc2_ = 0;
26 | var _loc4_ = 0;
27 | if(targetIndex > this.topEdge + this.visibleItems - 1)
28 | {
29 | _loc4_ = _loc4_ + (targetIndex - (this.visibleItems - 1));
30 | this.topEdge = _loc4_;
31 | targetIndex = this.visibleItems - 1;
32 | }
33 | else if(targetIndex < this.topEdge)
34 | {
35 | _loc4_ = targetIndex;
36 | this.topEdge = _loc4_;
37 | targetIndex = 0;
38 | }
39 | else
40 | {
41 | _loc4_ = this.topEdge;
42 | targetIndex = targetIndex - this.topEdge;
43 | }
44 | _loc2_ = 0;
45 | while(_loc2_ < this.itemList.length)
46 | {
47 | this.itemList[_loc2_].data = this.dataList[_loc4_ + _loc2_];
48 | this.itemList[_loc2_].highlighted = targetIndex == _loc2_;
49 | _loc2_ = _loc2_ + 1;
50 | }
51 | this.highlightedItem = targetIndex;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuCharacterStatsModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | var menuItemStateIndex = 5;
4 | function PauseMenuCharacterStatsModel()
5 | {
6 | super();
7 | }
8 | function createView(_viewIndex, _params)
9 | {
10 | var _loc2_ = this.viewList[_viewIndex];
11 | if(_loc2_ == undefined)
12 | {
13 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsView();
14 | }
15 | _loc2_.viewIndex = _viewIndex;
16 | _loc2_.__set__params(_params);
17 | this.viewList[_viewIndex] = _loc2_;
18 | }
19 | function removeDataFromSlot(_viewIndex, _slotIndex)
20 | {
21 | var _loc2_ = this.viewList[_viewIndex];
22 | _loc2_.destroy();
23 | _loc2_.topEdge = 0;
24 | this.viewIndex = 0;
25 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsView)this.getCurrentView();
26 | }
27 | function nextItem()
28 | {
29 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsView)this.getCurrentView();
30 | var _loc7_ = 0;
31 | var _loc4_ = 0;
32 | while(_loc4_ < _loc3_.dataList.length)
33 | {
34 | var _loc2_ = _loc3_.__get__index() + 1 + _loc4_;
35 | if(_loc2_ > _loc3_.dataList.length - 1)
36 | {
37 | _loc2_ = _loc2_ - _loc3_.dataList.length;
38 | }
39 | var _loc6_ = _loc3_.dataList[_loc2_];
40 | var _loc5_ = _loc6_[this.menuItemStateIndex];
41 | if(_loc5_ != 0)
42 | {
43 | _loc7_ = _loc2_;
44 | break;
45 | }
46 | _loc4_ = _loc4_ + 1;
47 | }
48 | this.setItem(_loc3_,_loc7_);
49 | }
50 | function prevItem()
51 | {
52 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsView)this.getCurrentView();
53 | var _loc7_ = 0;
54 | var _loc3_ = 0;
55 | while(_loc3_ < _loc4_.dataList.length)
56 | {
57 | var _loc2_ = _loc4_.__get__index() - 1 - _loc3_;
58 | if(_loc2_ < 0)
59 | {
60 | _loc2_ = _loc4_.dataList.length + _loc2_;
61 | }
62 | var _loc6_ = _loc4_.dataList[_loc2_];
63 | var _loc5_ = _loc6_[this.menuItemStateIndex];
64 | if(_loc5_ != 0)
65 | {
66 | _loc7_ = _loc2_;
67 | break;
68 | }
69 | _loc3_ = _loc3_ + 1;
70 | }
71 | this.setItem(_loc4_,_loc7_);
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuCharacterStatsView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | function PauseMenuCharacterStatsView()
4 | {
5 | super();
6 | }
7 | function addDisplayItem(i, _dataArray)
8 | {
9 | var _loc3_ = this.viewLinkageList[0];
10 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
11 | _loc2_._y = this.itemY;
12 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCharacterStatsItem)_loc2_;
13 | _loc4_.__set__data(_dataArray);
14 | this.itemList[i] = _loc4_;
15 | this.itemY = this.itemY + (_loc2_._height + this.rowSpacing);
16 | }
17 | function scrollHighlightStyle(targetIndex)
18 | {
19 | targetIndex = Math.max(0,Math.min(targetIndex,this.dataList.length - 1));
20 | var _loc2_ = 0;
21 | var _loc4_ = 0;
22 | if(targetIndex > this.topEdge + this.visibleItems - 1)
23 | {
24 | _loc4_ = _loc4_ + (targetIndex - (this.visibleItems - 1));
25 | this.topEdge = _loc4_;
26 | targetIndex = this.visibleItems - 1;
27 | }
28 | else if(targetIndex < this.topEdge)
29 | {
30 | _loc4_ = targetIndex;
31 | this.topEdge = _loc4_;
32 | targetIndex = 0;
33 | }
34 | else
35 | {
36 | _loc4_ = this.topEdge;
37 | targetIndex = targetIndex - this.topEdge;
38 | }
39 | _loc2_ = 0;
40 | while(_loc2_ < this.itemList.length)
41 | {
42 | this.itemList[_loc2_].data = this.dataList[_loc4_ + _loc2_];
43 | this.itemList[_loc2_].highlighted = targetIndex == _loc2_;
44 | _loc2_ = _loc2_ + 1;
45 | }
46 | this.highlightedItem = targetIndex;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuConfigurationView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuConfigurationView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | function PauseMenuConfigurationView()
4 | {
5 | super();
6 | }
7 | function __set__params(_p)
8 | {
9 | super.__set__params(_p);
10 | if(this.bgMC == undefined)
11 | {
12 | this.bgMC = this.viewContainer.attachMovie("settingsBg","settingsBgMC",-1);
13 | var _loc3_ = new com.rockstargames.ui.utils.HudColour();
14 | com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_PAUSE_BG,_loc3_);
15 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc3_.r,_loc3_.g,_loc3_.b,_loc3_.a);
16 | this.bgMC._visible = false;
17 | }
18 | return this.__get__params();
19 | }
20 | function displayView()
21 | {
22 | super.displayView();
23 | this.bgMC._height = this.itemY - this.rowSpacing;
24 | this.bgMC._visible = true;
25 | }
26 | function addDisplayItem(i, _dataArray)
27 | {
28 | var _loc4_ = this.viewLinkageList[0];
29 | var _loc2_ = this.viewContainer.attachMovie(_loc4_,_loc4_ + i + "MC",i);
30 | _loc2_._y = this.itemY;
31 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuConfigurationItem)_loc2_;
32 | _loc3_.isLastItem = i + 1 == this.visibleItems;
33 | _loc3_.__set__data(_dataArray);
34 | this.itemList[i] = _loc3_;
35 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
36 | }
37 | function scrollHighlightStyle(targetIndex)
38 | {
39 | targetIndex = Math.max(0,Math.min(targetIndex,this.dataList.length - 1));
40 | var _loc2_ = 0;
41 | var _loc4_ = 0;
42 | if(targetIndex > this.topEdge + this.visibleItems - 1)
43 | {
44 | _loc4_ = _loc4_ + (targetIndex - (this.visibleItems - 1));
45 | this.topEdge = _loc4_;
46 | targetIndex = this.visibleItems - 1;
47 | }
48 | else if(targetIndex < this.topEdge)
49 | {
50 | _loc4_ = targetIndex;
51 | this.topEdge = _loc4_;
52 | targetIndex = 0;
53 | }
54 | else
55 | {
56 | _loc4_ = this.topEdge;
57 | targetIndex = targetIndex - this.topEdge;
58 | }
59 | _loc2_ = 0;
60 | while(_loc2_ < this.itemList.length)
61 | {
62 | this.itemList[_loc2_].data = this.dataList[_loc4_ + _loc2_];
63 | this.itemList[_loc2_].highlighted = targetIndex == _loc2_;
64 | _loc2_ = _loc2_ + 1;
65 | }
66 | this.highlightedItem = targetIndex;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuCrewRankItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewRankItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuCrewRankItem()
4 | {
5 | super();
6 | _global.gfxExtensions = true;
7 | this.itemTextLeft = this.labelMC.rankTF;
8 | this.itemTextRight = this.labelMC.xpTF;
9 | this.itemTextRight.textAutoSize = "shrink";
10 | }
11 | function __set__data(_d)
12 | {
13 | super.__set__data(_d);
14 | this.itemTextLeft.text = this._data[0];
15 | this.itemTextLeft.autoSize = "right";
16 | this.itemTextRight.text = this.__get__data()[2];
17 | this.rpMC._visible = this.labelMC._visible = this.itemTextLeft.text != "" || this.itemTextRight.text != "";
18 | this.snapBGGrid(this.bgMC);
19 | this.__set__highlighted(this._highlighted);
20 | return this.__get__data();
21 | }
22 | function __set__highlighted(_h)
23 | {
24 | super.__set__highlighted(_h);
25 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.rpMC.bgMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_FREEMODE);
26 | if(this.bgMC)
27 | {
28 | var _loc3_ = new com.rockstargames.ui.utils.HudColour();
29 | if(_h)
30 | {
31 | com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE,_loc3_);
32 | }
33 | else
34 | {
35 | com.rockstargames.ui.utils.Colour.setHudColour(com.rockstargames.ui.utils.HudColour.HUD_COLOUR_PAUSE_BG,_loc3_);
36 | }
37 | if(this.type == 3)
38 | {
39 | _loc3_.a = 20;
40 | }
41 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc3_.r,_loc3_.g,_loc3_.b,_loc3_.a);
42 | }
43 | return this.__get__highlighted();
44 | }
45 | function snapBGGrid(bgMC)
46 | {
47 | bgMC._width = 290;
48 | bgMC._x = -2;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuCrewRanksView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewRanksView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | var titleHeight = 25;
4 | function PauseMenuCrewRanksView()
5 | {
6 | super();
7 | }
8 | function addDisplayItem(i, _dataArray)
9 | {
10 | var _loc4_ = this.viewLinkageList[0];
11 | var _loc3_ = this.viewContainer.attachMovie(_loc4_,_loc4_ + i + "MC",i);
12 | _loc3_._y = this.itemY;
13 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewRankItem)_loc3_;
14 | _loc2_.__set__data(_dataArray);
15 | this.itemList[i] = _loc2_;
16 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
17 | }
18 | function __set__params(_p)
19 | {
20 | super.__set__params(_p);
21 | if(_p.titleHeight != undefined)
22 | {
23 | this.titleHeight = _p.titleHeight;
24 | }
25 | return this.__get__params();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuCrewsCardItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewsCardItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | var TYPE_WORLD_RANKING = 1;
4 | function PauseMenuCrewsCardItem()
5 | {
6 | super();
7 | this.itemTextRight = this.labelMC.valueTF;
8 | this.colourIconMC._visible = false;
9 | this.rankIconMC._visible = false;
10 | }
11 | function __set__data(_d)
12 | {
13 | super.__set__data(_d);
14 | if(this.__get__data()[1] != undefined)
15 | {
16 | com.rockstargames.ui.utils.UIText.setSizedText(this.itemTextRight,this.__get__data()[1],true);
17 | }
18 | if(this.__get__data()[2] != undefined)
19 | {
20 | com.rockstargames.ui.utils.Colour.Colourise(this.colourIconMC,this.__get__data()[2],this.__get__data()[3],this.__get__data()[4],100);
21 | this.colourIconMC._visible = true;
22 | }
23 | if(this.type == this.TYPE_WORLD_RANKING)
24 | {
25 | this.rankIconMC._visible = true;
26 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.rankIconMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE);
27 | }
28 | return this.__get__data();
29 | }
30 | function collapse(isCollapsed)
31 | {
32 | if(isCollapsed)
33 | {
34 | this.colourIconMC._x = 143 - this.colourIconMC._width - 6;
35 | this.itemTextRight._x = 143 - this.itemTextRight._width - 6;
36 | }
37 | else
38 | {
39 | this.colourIconMC._x = 288 - this.colourIconMC._width - 6;
40 | this.itemTextRight._x = 288 - this.itemTextRight._width - 6;
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuCrewsCardModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewsCardModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuCrewsCardModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewsCardView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuCrewsCardView)this.getCurrentView();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuDialogueModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuDialogueModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuDialogueModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuDialogueView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFeedModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFeedModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuFeedModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFeedView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFeedView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFeedView extends com.rockstargames.ui.components.GUIView
2 | {
3 | var SCROLL_DURATION = 0.2;
4 | var SCROLL_DY = 27;
5 | function PauseMenuFeedView()
6 | {
7 | super();
8 | }
9 | function displayView()
10 | {
11 | this.viewHeight = 0;
12 | super.displayView();
13 | }
14 | function addDisplayItem(i, _dataArray)
15 | {
16 | var _loc3_ = this.viewLinkageList[0];
17 | var _loc2_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuFeedItem)this.viewContainer.attachMovie(_loc3_,"feedItem" + i + "MC",i);
18 | _loc2_._y = this.itemY;
19 | _loc2_.__set__data(_dataArray);
20 | this.itemList[i] = _loc2_;
21 | this.itemY = this.itemY + (_loc2_.getHeight() + this.rowSpacing);
22 | this.viewHeight = this.itemY;
23 | }
24 | function scrollToBottom()
25 | {
26 | if(this.viewHeight > this.viewMaskHeight)
27 | {
28 | this.viewContainer._y = - this.viewHeight - this.viewMaskHeight;
29 | }
30 | }
31 | function destroy()
32 | {
33 | super.destroy();
34 | com.rockstargames.ui.tweenStar.TweenStarLite.removeTweenOf(this.viewContainer);
35 | }
36 | function scrollAllHighlightStyle(targetIndex, tween)
37 | {
38 | if(tween == undefined)
39 | {
40 | tween = true;
41 | }
42 | var _loc3_ = this.direction(targetIndex);
43 | if(_loc3_ != 0 && this.viewHeight > this.viewMaskHeight)
44 | {
45 | var _loc2_ = this.viewContainer._y;
46 | _loc2_ = _loc2_ - this.SCROLL_DY * _loc3_;
47 | var _loc4_ = this.viewMaskHeight - this.viewHeight;
48 | if(_loc2_ < _loc4_)
49 | {
50 | _loc2_ = _loc4_;
51 | }
52 | else if(_loc2_ > 0)
53 | {
54 | _loc2_ = 0;
55 | }
56 | this.highlightedItem = targetIndex;
57 | if(tween)
58 | {
59 | com.rockstargames.ui.tweenStar.TweenStarLite.to(this.viewContainer,this.SCROLL_DURATION,{_y:_loc2_,ease:com.rockstargames.ui.tweenStar.Ease.QUADRATIC_INOUT});
60 | }
61 | else
62 | {
63 | this.viewContainer._y = _loc2_;
64 | }
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFreemodeDetailsModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFreemodeDetailsModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuFreemodeDetailsModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFreemodeDetailsView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFreemodeDetailsView)this.getCurrentView();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFreemodeDetailsTitleItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFreemodeDetailsTitleItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | var height = 28;
4 | function PauseMenuFreemodeDetailsTitleItem()
5 | {
6 | super();
7 | _global.gfxExtensions = true;
8 | }
9 | function set data(_d)
10 | {
11 | super.data = _d;
12 | com.rockstargames.ui.utils.UIText.setSizedText(this.itemTextLeft,this.data[0],true,false,0,23);
13 | com.rockstargames.ui.utils.UIText.setSizedText(this.labelMC.titleshadowTF,this.data[0],true,false,0,23);
14 | this.snapBGGrid(this.bgMC);
15 | }
16 | function get data()
17 | {
18 | return data;
19 | }
20 | function snapBGGrid(bgMC)
21 | {
22 | bgMC._height = this.height;
23 | }
24 | function getHeight()
25 | {
26 | return this.height;
27 | }
28 | function highlightTitle(_h)
29 | {
30 | if (_h)
31 | {
32 | this.bgMC._visible = true;
33 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.labelMC.titleTF,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_BLACK);
34 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.bgMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE);
35 | }
36 | else
37 | {
38 | this.bgMC._visible = true;
39 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.labelMC.titleTF,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE);
40 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.bgMC,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_BLACK);
41 | this.bgMC._alpha = 50;
42 | }
43 | this._highlighted = _h;
44 | }
45 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFriendsStatsItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFriendsStatsItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuFriendsStatsItem()
4 | {
5 | super();
6 | this.medalMC._visible = false;
7 | this.itemTextRight = this.labelMC.valueTF;
8 | }
9 | function __set__data(_d)
10 | {
11 | super.__set__data(_d);
12 | if(this.__get__data()[1] != undefined && this.__get__data()[1] != "")
13 | {
14 | com.rockstargames.ui.utils.UIText.setSizedText(this.itemTextRight,this.__get__data()[1],true);
15 | }
16 | if(this.initialIndex == 0)
17 | {
18 | this.bgMC._visible = false;
19 | }
20 | this.snapBGGrid(this.bgMC);
21 | var _loc3_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK_ALPHA_30;
22 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc3_[1],_loc3_[2],_loc3_[3],_loc3_[4]);
23 | return this.__get__data();
24 | }
25 | function __set__highlighted(_h)
26 | {
27 | var _loc2_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.WHITE;
28 | if(_h)
29 | {
30 | var _loc3_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK;
31 | com.rockstargames.ui.utils.Colour.Colourise(this.labelMC,_loc3_[1],_loc3_[2],_loc3_[3],_loc3_[4]);
32 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc2_[1],_loc2_[2],_loc2_[3],_loc2_[4]);
33 | }
34 | else
35 | {
36 | com.rockstargames.ui.utils.Colour.Colourise(this.labelMC,_loc2_[1],_loc2_[2],_loc2_[3],_loc2_[4]);
37 | var _loc4_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK_ALPHA_30;
38 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc4_[1],_loc4_[2],_loc4_[3],_loc4_[4]);
39 | }
40 | this._highlighted = _h;
41 | return this.__get__highlighted();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFriendsStatsModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFriendsStatsModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuFriendsStatsModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFriendsStatsView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuFriendsStatsView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFriendsStatsView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | function PauseMenuFriendsStatsView()
4 | {
5 | super();
6 | }
7 | function addDisplayItem(i, _dataArray)
8 | {
9 | var _loc3_ = this.viewLinkageList[0];
10 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
11 | _loc2_._y = this.itemY;
12 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuFriendsStatsItem)_loc2_;
13 | _loc4_.__set__data(_dataArray);
14 | this.itemList[i] = _loc4_;
15 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuGalleryModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuGalleryModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuGalleryModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuGalleryView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function initMaxGalleryItems(max)
19 | {
20 | var _loc2_ = this.viewList[0];
21 | _loc2_.maxGalleryItems = max;
22 | }
23 | function onDestroy()
24 | {
25 | var _loc3_ = this.viewList[0];
26 | var _loc4_ = _loc3_.itemList.length;
27 | var _loc2_ = 0;
28 | while(_loc2_ < _loc4_)
29 | {
30 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuGalleryItem)_loc3_.itemList[_loc2_].ON_DESTROY();
31 | _loc2_ = _loc2_ + 1;
32 | }
33 | }
34 | function removeTxdFromSlot(_index)
35 | {
36 | var _loc2_ = this.viewList[0];
37 | (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuGalleryItem)_loc2_.itemList[_index].ON_DESTROY();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuHeritageCardModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuHeritageCardModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuHeritageCardModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuHeritageCardView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | _loc2_.topEdge = 0;
23 | this.viewIndex = 0;
24 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuHeritageCardView)this.getCurrentView();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuKeymapCategoryItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuKeymapCategoryItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuKeymapCategoryItem()
4 | {
5 | super();
6 | }
7 | function __set__data(_d)
8 | {
9 | super.__set__data(_d);
10 | this.warningMC._visible = this.initialIndex == 1;
11 | return this.__get__data();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuMapModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuMapModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuMapModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuMapView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | _loc2_.topEdge = 0;
23 | this.viewIndex = 0;
24 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuMapView)this.getCurrentView();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuReplayListItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuReplayListItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalListItem
2 | {
3 | function PauseMenuReplayListItem()
4 | {
5 | super();
6 | this.iconMC._visible = false;
7 | }
8 | function __set__data(_d)
9 | {
10 | super.__set__data(_d);
11 | switch(this.type)
12 | {
13 | case 1:
14 | this.multiListItems = this.__get__data().slice(1);
15 | com.rockstargames.ui.utils.UIText.setSizedText(this.itemTextLeft,this._data[0]);
16 | this.__set__textIndex(this.initialIndex);
17 | this.iconMC._visible = false;
18 | break;
19 | case 3:
20 | var _loc3_ = new com.rockstargames.ui.utils.HudColour();
21 | com.rockstargames.ui.utils.Colour.setHudColour(this.__get__data()[1],_loc3_);
22 | if(this.iconMC != undefined)
23 | {
24 | com.rockstargames.ui.utils.Colour.Colourise(this.iconMC,_loc3_.r,_loc3_.g,_loc3_.b,_loc3_.a);
25 | this.iconMC._visible = true;
26 | }
27 | break;
28 | default:
29 | this.iconMC._visible = false;
30 | }
31 | return this.__get__data();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuSPCardItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuSPCardItem extends MovieClip
2 | {
3 | function PauseMenuSPCardItem()
4 | {
5 | super();
6 | _global.gfxExtensions = true;
7 | this.progBarMC = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuColourBar(this.progBarMC);
8 | this.bgMC._visible = false;
9 | }
10 | function init(_data)
11 | {
12 | var _loc2_ = _data.slice(6);
13 | this.nameTF.textAutoSize = "shrink";
14 | var _loc3_ = _loc2_[0];
15 | var _loc4_ = 8;
16 | if(_loc3_.length > _loc4_ && this.bgMC._width < 200)
17 | {
18 | _loc3_ = _loc3_.substr(0,_loc4_) + "...";
19 | }
20 | com.rockstargames.ui.utils.UIText.setSizedText(this.nameTF,_loc3_,true);
21 | com.rockstargames.ui.utils.UIText.setSizedText(this.valueTF,_loc2_[1],true);
22 | com.rockstargames.ui.utils.Colour.ApplyHudColourToTF(this.nameTF,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE);
23 | com.rockstargames.ui.utils.Colour.ApplyHudColourToTF(this.valueTF,com.rockstargames.ui.utils.HudColour.HUD_COLOUR_WHITE);
24 | this.progBarMC.init(_loc2_[3]);
25 | this.progBarMC.percentDecimal(_loc2_[2]);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuStatsModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuStatsModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuStatsModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuStatsView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuStatsView)this.getCurrentView();
24 | }
25 | function nextItem()
26 | {
27 | var _loc2_ = this.getCurrentView();
28 | var _loc3_ = _loc2_.__get__index() + 1;
29 | var _loc4_ = _loc2_.dataList.length - _loc2_.itemList.length;
30 | if(_loc3_ >= _loc4_)
31 | {
32 | _loc3_ = _loc4_;
33 | }
34 | this.setItem(_loc2_,_loc3_);
35 | }
36 | function prevItem()
37 | {
38 | var _loc3_ = this.getCurrentView();
39 | var _loc2_ = _loc3_.__get__index() - 1;
40 | if(_loc2_ < 0)
41 | {
42 | _loc2_ = 0;
43 | }
44 | this.setItem(_loc3_,_loc2_);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuStatsView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuStatsView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | var titleHeight = 25;
4 | var scrollJumpVal = 25;
5 | var scrollYPos = 0;
6 | function PauseMenuStatsView()
7 | {
8 | super();
9 | }
10 | function addDisplayItem(i, _dataArray)
11 | {
12 | var _loc3_ = this.viewLinkageList[0];
13 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
14 | _loc2_._y = this.itemY;
15 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuStatsListItem)_loc2_;
16 | _loc4_.__set__data(_dataArray);
17 | this.itemList[i] = _loc4_;
18 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
19 | }
20 | function __set__params(_p)
21 | {
22 | super.__set__params(_p);
23 | if(_p.titleHeight != undefined)
24 | {
25 | this.titleHeight = _p.titleHeight;
26 | }
27 | this.scrollJumpVal = this.titleHeight;
28 | return this.__get__params();
29 | }
30 | function lockedHighlightStyle(targetIndex)
31 | {
32 | var _loc6_ = this.direction(targetIndex);
33 | if(_loc6_ != 0)
34 | {
35 | var _loc3_ = undefined;
36 | var _loc2_ = undefined;
37 | var _loc4_ = Math.min(targetIndex,this.dataList.length - this.itemList.length);
38 | _loc2_ = 0;
39 | while(_loc2_ < targetIndex + this.itemList.length)
40 | {
41 | _loc3_ = this.itemList[_loc2_];
42 | _loc3_.__set__data(this.dataList[_loc2_ + _loc4_]);
43 | _loc2_ = _loc2_ + 1;
44 | }
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTextFullView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextFullView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | var initialValueIndex = 4;
4 | function PauseMenuTextFullView()
5 | {
6 | super();
7 | }
8 | function PauseMenuSettingsView()
9 | {
10 | }
11 | function addDisplayItem(i, _dataArray)
12 | {
13 | var _loc3_ = this.viewLinkageList[0];
14 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
15 | _loc2_._y = this.itemY;
16 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListFullItem)_loc2_;
17 | _loc4_.__set__data(_dataArray);
18 | this.itemList[i] = _loc4_;
19 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
20 | }
21 | function storeDataChange(dataIndex, value)
22 | {
23 | this.dataList[dataIndex][this.initialValueIndex] = value;
24 | }
25 | function scrollHighlightStyle(targetIndex)
26 | {
27 | targetIndex = Math.max(0,Math.min(targetIndex,this.dataList.length - 1));
28 | var _loc2_ = 0;
29 | var _loc4_ = 0;
30 | if(targetIndex > this.topEdge + this.visibleItems - 1)
31 | {
32 | _loc4_ = _loc4_ + (targetIndex - (this.visibleItems - 1));
33 | this.topEdge = _loc4_;
34 | targetIndex = this.visibleItems - 1;
35 | }
36 | else if(targetIndex < this.topEdge)
37 | {
38 | _loc4_ = targetIndex;
39 | this.topEdge = _loc4_;
40 | targetIndex = 0;
41 | }
42 | else
43 | {
44 | _loc4_ = this.topEdge;
45 | targetIndex = targetIndex - this.topEdge;
46 | }
47 | _loc2_ = 0;
48 | while(_loc2_ < this.itemList.length)
49 | {
50 | this.itemList[_loc2_].data = this.dataList[_loc4_ + _loc2_];
51 | this.itemList[_loc2_].highlighted = targetIndex == _loc2_;
52 | _loc2_ = _loc2_ + 1;
53 | }
54 | this.highlightedItem = targetIndex;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTextListDoubleItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListDoubleItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListItem
2 | {
3 | function PauseMenuTextListDoubleItem()
4 | {
5 | super();
6 | }
7 | function PauseMenuTextListItem()
8 | {
9 | super();
10 | }
11 | function __set__data(_d)
12 | {
13 | this.index = _d[0];
14 | this.menuID = _d[1];
15 | this.__set__uniqueID(_d[2]);
16 | this.type = _d[3];
17 | this.initialIndex = _d[4];
18 | this.isSelectable = _d[5];
19 | if(_d.length >= 7)
20 | {
21 | this._data = _d.slice(6);
22 | }
23 | this.bgMC._visible = false;
24 | if(this.blipLayer != undefined)
25 | {
26 | this.blipLayer.removeMovieClip();
27 | }
28 | this.blipLayer = this.labelMC.createEmptyMovieClip("blipLayer",1000);
29 | this.itemTextLeft.autoSize = true;
30 | var _loc3_ = new com.rockstargames.ui.utils.Text();
31 | _loc3_.setTextWithIcons(this._data[0],this.blipLayer,this.itemTextLeft,0,13,4.5,false);
32 | this.snapBGGrid(this.bgMC);
33 | return this.__get__data();
34 | }
35 | function snapBGGrid(bgMC)
36 | {
37 | var _loc4_ = Math.ceil(this.itemTextLeft.textHeight / 27);
38 | var _loc3_ = this.itemTextLeft._height;
39 | var _loc2_ = this.itemTextLeft._y * 2 + _loc3_;
40 | bgMC._height = _loc2_;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTextListFullItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListFullItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuTextListFullItem()
4 | {
5 | super();
6 | this.mInit();
7 | this.itemTextLeft = this.labelMC.titleTF;
8 | this.itemTextRight = this.labelMC.valueTF;
9 | this.solidMC = this.bgMC.solidMC;
10 | this.gradMC = this.bgMC.gradMC;
11 | this.gradMC._visible = false;
12 | }
13 | function __set__data(_d)
14 | {
15 | super.__set__data(_d);
16 | if(this.__get__data()[1] != undefined && this.__get__data()[1] != "")
17 | {
18 | com.rockstargames.ui.utils.UIText.setSizedText(this.itemTextRight,this.__get__data()[1]);
19 | }
20 | switch(this.type)
21 | {
22 | case 1:
23 | this.gradMC._visible = true;
24 | this.solidMC._visible = false;
25 | this.itemTextLeft._x = (this.bgMC._width - this.itemTextLeft._width) / 2 - this.labelMC._x;
26 | break;
27 | case 0:
28 | default:
29 | this.gradMC._visible = false;
30 | this.solidMC._visible = true;
31 | this.itemTextLeft._x = 10;
32 | }
33 | return this.__get__data();
34 | }
35 | function __set__highlighted(_h)
36 | {
37 | var _loc3_ = undefined;
38 | var _loc2_ = undefined;
39 | if(_h)
40 | {
41 | _loc3_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.WHITE;
42 | _loc2_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK;
43 | }
44 | else
45 | {
46 | _loc3_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.BLACK_ALPHA_50;
47 | if(this.isSelectable == 1)
48 | {
49 | _loc2_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.WHITE;
50 | }
51 | else
52 | {
53 | _loc2_ = com.rockstargames.gtav.constants.PauseMenuColoursLUT.GREYED;
54 | }
55 | }
56 | com.rockstargames.ui.utils.Colour.Colourise(this.bgMC,_loc3_[1],_loc3_[2],_loc3_[3],_loc3_[4]);
57 | com.rockstargames.ui.utils.Colour.Colourise(this.labelMC,_loc2_[1],_loc2_[2],_loc2_[3],_loc2_[4]);
58 | this._highlighted = _h;
59 | return this.__get__highlighted();
60 | }
61 | function snapBGGrid(bgMC)
62 | {
63 | var _loc2_ = Math.ceil(this.itemTextLeft.textHeight / 27);
64 | bgMC._height = _loc2_ * 27 - 2;
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTextListItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuTextListItem()
4 | {
5 | super();
6 | }
7 | function __set__data(_d)
8 | {
9 | super.__set__data(_d);
10 | this.snapBGGrid(this.bgMC);
11 | this.bgMC._visible = false;
12 | return this.__get__data();
13 | }
14 | function snapBGGrid(bgMC)
15 | {
16 | var _loc2_ = Math.ceil(this.itemTextLeft.textHeight / 27);
17 | bgMC._height = _loc2_ * 27 - 2;
18 | }
19 | function __set__highlighted(_h)
20 | {
21 | this._highlighted = _h;
22 | return this.__get__highlighted();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTextModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuTextModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | var _loc3_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextView)this.getCurrentView();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTextView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextView extends com.rockstargames.ui.components.GUIView
2 | {
3 | var titleHeight = 25;
4 | var scrollJumpVal = 25;
5 | var scrollYPos = 0;
6 | function PauseMenuTextView()
7 | {
8 | super();
9 | }
10 | function addDisplayItem(i, _dataArray)
11 | {
12 | var _loc3_ = this.viewLinkageList[0];
13 | var _loc2_ = this.viewContainer.attachMovie(_loc3_,_loc3_ + i + "MC",i);
14 | _loc2_._y = this.itemY;
15 | var _loc4_ = (com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTextListItem)_loc2_;
16 | _loc4_.__set__data(_dataArray);
17 | this.itemList[i] = _loc4_;
18 | this.itemY = this.itemY + (_loc2_.bgMC._height + this.rowSpacing);
19 | }
20 | function __set__params(_p)
21 | {
22 | super.__set__params(_p);
23 | if(_p.titleHeight != undefined)
24 | {
25 | this.titleHeight = _p.titleHeight;
26 | }
27 | this.scrollJumpVal = this.titleHeight;
28 | return this.__get__params();
29 | }
30 | function scrollAllHighlightStyle(targetIndex)
31 | {
32 | var _loc3_ = this.direction(targetIndex);
33 | var _loc2_ = 0;
34 | if(this.viewContainer._height > this.viewMaskHeight)
35 | {
36 | if(_loc3_ != 0)
37 | {
38 | if(_loc3_ > 0)
39 | {
40 | this.scrollYPos = this.scrollYPos - this.scrollJumpVal;
41 | _loc2_ = - this.viewContainer._height - this.viewMaskHeight - 7;
42 | if(this.scrollYPos < _loc2_)
43 | {
44 | this.scrollYPos = _loc2_;
45 | }
46 | this.viewContainer._y = this.scrollYPos;
47 | }
48 | else
49 | {
50 | this.scrollYPos = this.scrollYPos + this.scrollJumpVal;
51 | if(this.scrollYPos > _loc2_)
52 | {
53 | this.scrollYPos = _loc2_;
54 | }
55 | this.viewContainer._y = this.scrollYPos;
56 | }
57 | this.highlightedItem = targetIndex;
58 | }
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuTitleItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuTitleItem extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem
2 | {
3 | function PauseMenuTitleItem()
4 | {
5 | super();
6 | }
7 | function __set__data(_d)
8 | {
9 | super.__set__data(_d);
10 | this.snapBGGrid(this.bgMC);
11 | return this.__get__data();
12 | }
13 | function snapBGGrid(bgMC)
14 | {
15 | var _loc2_ = Math.ceil(this.itemTextLeft.textHeight / 27);
16 | bgMC._height = _loc2_ * 27 - 2;
17 | }
18 | function highlightTitle(_h)
19 | {
20 | super.__set__highlighted(_h);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuVerticalModel.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalModel extends com.rockstargames.ui.components.GUIModel
2 | {
3 | function PauseMenuVerticalModel()
4 | {
5 | super();
6 | }
7 | function createView(_viewIndex, _params)
8 | {
9 | var _loc2_ = this.viewList[_viewIndex];
10 | if(_loc2_ == undefined)
11 | {
12 | _loc2_ = new com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalView();
13 | }
14 | _loc2_.viewIndex = _viewIndex;
15 | _loc2_.__set__params(_params);
16 | this.viewList[_viewIndex] = _loc2_;
17 | }
18 | function removeDataFromSlot(_viewIndex, _slotIndex)
19 | {
20 | var _loc2_ = this.viewList[_viewIndex];
21 | _loc2_.destroy();
22 | this.viewIndex = 0;
23 | var _loc3_ = com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalView(this.getCurrentView());
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenu/pauseMenuItems/singleplayer/PauseMenuVerticalView.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalView extends com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuViewBase
2 | {
3 | function PauseMenuVerticalView()
4 | {
5 | super();
6 | }
7 | function addDisplayItem(i, _dataArray)
8 | {
9 | var _loc4_ = this.viewLinkageList[0];
10 | var _loc2_ = this.viewContainer.attachMovie(_loc4_,_loc4_ + i + "MC",i);
11 | _loc2_._y = this.itemY;
12 | var _loc3_ = com.rockstargames.gtav.pauseMenu.pauseMenuItems.singleplayer.PauseMenuVerticalListItem(_loc2_);
13 | _loc3_.initStoreMethod(this.storeDataChange,this);
14 | _loc3_.__set__data(_dataArray);
15 | this.itemList[i] = _loc3_;
16 | this.itemY = this.itemY + (_loc2_._height + this.rowSpacing);
17 | }
18 | function storeDataChange(dataIndex, value)
19 | {
20 | var _loc2_ = 3;
21 | this.dataList[dataIndex][_loc2_] = value;
22 | }
23 | function scrollHighlightStyle(targetIndex)
24 | {
25 | targetIndex = Math.max(0,Math.min(targetIndex,this.dataList.length - 1));
26 | var _loc2_ = 0;
27 | var _loc4_ = 0;
28 | if(targetIndex > this.topEdge + this.visibleItems - 1)
29 | {
30 | _loc4_ = _loc4_ + (targetIndex - (this.visibleItems - 1));
31 | this.topEdge = _loc4_;
32 | targetIndex = this.visibleItems - 1;
33 | }
34 | else if(targetIndex < this.topEdge)
35 | {
36 | _loc4_ = targetIndex;
37 | this.topEdge = _loc4_;
38 | targetIndex = 0;
39 | }
40 | else
41 | {
42 | _loc4_ = this.topEdge;
43 | targetIndex = targetIndex - this.topEdge;
44 | }
45 | _loc2_ = 0;
46 | while(_loc2_ < this.itemList.length)
47 | {
48 | this.itemList[_loc2_].data = this.dataList[_loc4_ + _loc2_];
49 | this.itemList[_loc2_].highlighted = targetIndex == _loc2_;
50 | _loc2_ = _loc2_ + 1;
51 | }
52 | this.highlightedItem = targetIndex;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_AWARDS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_AWARDS extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_AWARDS()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("verticalMenuList",1,0);
11 | this.column2 = this.addColumn("mpAwards",2,290);
12 | this.setupColumns(this.column1,this.column2);
13 | this.setupColMouseNav([this.column1,this.column2],[true,true]);
14 | }
15 | function stateChanged(id)
16 | {
17 | super.stateChanged(id);
18 | this.columnList = [this.column1,this.column2];
19 | this.showColumns();
20 | }
21 | function onPageExit()
22 | {
23 | this.column2.ON_DESTROY();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_CHAR_MOM_DAD.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_CHAR_MOM_DAD extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_CHAR_MOM_DAD()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("freemodeList",1,0);
11 | this.column2 = this.addColumn("freemodeList",2,0);
12 | this.column3 = this.addColumn("heritageCard",3,0);
13 | this.column4 = this.addColumn("bodyConfigList",4,0);
14 | this.column5 = this.addColumn("characterStatsCard",5,0);
15 | this.column6 = this.addColumn("mpPlayerCard",6,0);
16 | this.column7 = this.addColumn("freemodeList",7,0);
17 | this.column8 = this.addColumn("hairColourList",8,0);
18 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5,this.column6,this.column7,this.column8);
19 | this.column1.SET_STATE(1);
20 | this.column2.SET_STATE(2,this.column4);
21 | this.column7.SET_STATE(2,this.column8);
22 | this.showColumns();
23 | }
24 | function setupColumns()
25 | {
26 | var _loc3_ = 0;
27 | while(_loc3_ < arguments.length)
28 | {
29 | var _loc4_ = arguments[_loc3_];
30 | _loc4_.INITIALISE();
31 | this.columnList[_loc3_] = _loc4_;
32 | _loc3_ = _loc3_ + 1;
33 | }
34 | }
35 | function stateChanged(id)
36 | {
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_CHAR_SELECT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_CHAR_SELECT extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_CHAR_SELECT()
4 | {
5 | super();
6 | }
7 | function INITIALISE(mc)
8 | {
9 | this.timelineMC = mc;
10 | this.columnList = new Array();
11 | }
12 | function setupPage()
13 | {
14 | super.setupPage();
15 | this.column1 = this.addColumn("characterSelect",1,0);
16 | this.column2 = this.addColumn("playerComparisonCard",2,0);
17 | this.column1.SET_STATE(0,this.column2);
18 | this.setupColumns(this.column1,this.column2);
19 | }
20 | function stateChanged(id)
21 | {
22 | super.stateChanged(id);
23 | this.columnList = [this.column1,this.column2];
24 | this.showColumns();
25 | this.column2.SHOW_COLUMN(false);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_CORONA.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_CORONA extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_CORONA()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("freemodeList",1,0);
11 | this.column2 = this.addColumn("freemodeDetails",2,580);
12 | this.column3 = this.addColumn("freemodeMap",3,580);
13 | this.column4 = this.addColumn("mpFriendsList",4,290);
14 | this.setupColumns(this.column1,this.column2,this.column3,this.column4);
15 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4],[true,false,false,false]);
16 | }
17 | function stateChanged(id)
18 | {
19 | super.stateChanged(id);
20 | this.columnList = [this.column1,this.column2,this.column3,this.column4];
21 | this.showColumns();
22 | }
23 | function onPageExit()
24 | {
25 | this.column2.ON_DESTROY();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_CORONA_LOBBY.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_CORONA_LOBBY extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | var firstRun = false;
4 | function PAUSE_MENU_PAGES_CORONA_LOBBY()
5 | {
6 | super();
7 | }
8 | function setupPage()
9 | {
10 | super.setupPage();
11 | this.column1 = this.addColumn("freemodeList",1,0);
12 | this.column2 = this.addColumn("mpFriendsList",2,290);
13 | this.column3 = this.addColumn("characterCard",3,580);
14 | this.column4 = this.addColumn("playerComparisonCard",4,725);
15 | this.setupColumns(this.column1,this.column2,this.column3,this.column4);
16 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4],[true,false,false,false]);
17 | }
18 | function stateChanged(id)
19 | {
20 | if(!this.firstRun)
21 | {
22 | super.stateChanged(id);
23 | this.columnList = [this.column1,this.column2,this.column3,this.column4];
24 | this.showColumns();
25 | this.column4.SHOW_COLUMN(false);
26 | this.firstRun = true;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_CORONA_PLAYERS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_CORONA_PLAYERS extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_CORONA_PLAYERS()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("mpFriendsList",1,0);
11 | this.column2 = this.addColumn("mpPlayerModel",2,290);
12 | this.column3 = this.addColumn("mpPlayerCard",3,580);
13 | this.column4 = this.addColumn("playerComparisonCard",4,580);
14 | this.column5 = this.addColumn("playerComparisonCard",5,725);
15 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5);
16 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4,this.column5],[false,false,false,false,false]);
17 | this.setupColMouseNav([this.column1,this.column2,this.column3,this.column4,this.column5],[true,false,false,false,false]);
18 | }
19 | function stateChanged(id)
20 | {
21 | super.stateChanged(id);
22 | this.columnList = [this.column1,this.column2,this.column3,this.column4,this.column5];
23 | this.showColumns();
24 | this.column4.SHOW_COLUMN(false);
25 | this.column5.SHOW_COLUMN(false);
26 | }
27 | function onPageExit()
28 | {
29 | this.column3.ON_DESTROY();
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_CORONA_RACE.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_CORONA_RACE extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | var firstRun = false;
4 | function PAUSE_MENU_PAGES_CORONA_RACE()
5 | {
6 | super();
7 | }
8 | function setupPage()
9 | {
10 | super.setupPage();
11 | this.column1 = (com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_FREE_MODE)this.addColumn("freemodeList",1,0);
12 | this.column2 = this.addColumn("mpMMCard",2,554);
13 | this.column3 = this.addColumn("mpPlayerCard",3,580);
14 | this.column4 = this.addColumn("mpMMVehicleInfo",4,290);
15 | this.column5 = this.addColumn("playerComparisonCard",5,580);
16 | this.column6 = this.addColumn("playerComparisonCard",6,725);
17 | this.column7 = this.addColumn("freemodeList",7,290);
18 | this.column8 = (com.rockstargames.gtav.pauseMenu.pauseComponents.MP_CORONA_PLAYER_INFO)this.addColumn("playerInfo",0,0);
19 | this.column9 = this.addColumn("freemodeMap",9,580);
20 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5,this.column6,this.column7,this.column8,this.column9);
21 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4,this.column5,this.column6,this.column7,this.column8,this.column9],[true,false,false,false,false,false,true,false,false]);
22 | this.setupColMouseNav([this.column1,this.column2,this.column3,this.column4,this.column5,this.column6,this.column7,this.column8,this.column9],[true,false,false,false,false,false,false,false,false]);
23 | this.column2.SET_STATE(5,true);
24 | this.column8.setColumnDependent(this.column1);
25 | this.column1.setColumnDependent(this.column8);
26 | }
27 | function stateChanged(id)
28 | {
29 | if(!this.firstRun)
30 | {
31 | super.stateChanged(id);
32 | this.columnList = [this.column1,this.column2,this.column3,this.column4,this.column5,this.column6,this.column7,this.column8,this.column9];
33 | this.showColumns();
34 | this.column3.SHOW_COLUMN(false);
35 | this.column5.SHOW_COLUMN(false);
36 | this.column6.SHOW_COLUMN(false);
37 | this.column8.SHOW_COLUMN(false);
38 | this.column9.SHOW_COLUMN(false);
39 | this.firstRun = true;
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_FRIENDS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_FRIENDS extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_FRIENDS()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("mpFriendsList",1,0);
11 | this.column2 = this.addColumn("mpPlayerModel",2,290);
12 | this.column3 = this.addColumn("spPlayerCard",3,580);
13 | this.column4 = this.addColumn("spPlayerComparisonCard",4,580);
14 | this.column5 = this.addColumn("spPlayerComparisonCard",5,725);
15 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5);
16 | }
17 | function stateChanged(id)
18 | {
19 | super.stateChanged(id);
20 | this.columnList = [this.column1,this.column2,this.column3,this.column4,this.column5];
21 | this.showColumns();
22 | this.column3.SHOW_COLUMN(false);
23 | this.column4.SHOW_COLUMN(false);
24 | this.column5.SHOW_COLUMN(false);
25 | }
26 | function onPageExit()
27 | {
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_FRIENDS_MP.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_FRIENDS_MP extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_FRIENDS_MP()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("mpFriendsList",1,0);
11 | this.column2 = this.addColumn("mpPlayerModel",2,290);
12 | this.column3 = this.addColumn("mpPlayerCard",3,580);
13 | this.column4 = this.addColumn("playerComparisonCard",4,580);
14 | this.column5 = this.addColumn("playerComparisonCard",5,725);
15 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5);
16 | }
17 | function stateChanged(id)
18 | {
19 | super.stateChanged(id);
20 | this.columnList = [this.column1,this.column2,this.column3,this.column4,this.column5];
21 | this.showColumns();
22 | this.column3.SHOW_COLUMN(false);
23 | this.column4.SHOW_COLUMN(false);
24 | this.column5.SHOW_COLUMN(false);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_GALLERY.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_GALLERY extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_GALLERY()
4 | {
5 | super();
6 | }
7 | function INITIALISE(mc)
8 | {
9 | this.timelineMC = mc;
10 | this.columnList = new Array();
11 | this.setupPage();
12 | this.stateChanged(0);
13 | }
14 | function setupPage()
15 | {
16 | super.setupPage();
17 | this.column1 = this.addColumn("spGallery",1,0);
18 | this.setupColumns(this.column1);
19 | this.setupColFooterScroll([this.column1],[this.footerScrollOverride]);
20 | }
21 | function stateChanged(id)
22 | {
23 | super.stateChanged(id);
24 | this.columnList = [this.column1];
25 | this.showColumns();
26 | }
27 | function onPageExit()
28 | {
29 | this.column1.ON_DESTROY();
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_GAME.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_GAME extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_GAME()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("replayMenuList",1,0);
11 | this.column2 = this.addColumn("settingsList",2,290);
12 | this.column3 = this.addColumn("replayMenuList",3,290);
13 | this.column4 = this.addColumn("missionReplayCard",4,580);
14 | this.setupColumns(this.column1,this.column2,this.column3,this.column4);
15 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4],[true,true,true,true]);
16 | this.setupColMouseNav([this.column1,this.column2,this.column3,this.column4],[true,true,true,false]);
17 | }
18 | function stateChanged(id)
19 | {
20 | super.stateChanged(id);
21 | switch(id)
22 | {
23 | case com.rockstargames.gtav.constants.PauseMenuLUT.GAME:
24 | case com.rockstargames.gtav.constants.PauseMenuLUT.NEW_GAME:
25 | this.columnList = [this.column1];
26 | break;
27 | case com.rockstargames.gtav.constants.PauseMenuLUT.LOAD_GAME:
28 | case com.rockstargames.gtav.constants.PauseMenuLUT.SAVE_GAME_LIST:
29 | this.columnList = [this.column1,this.column2];
30 | break;
31 | case com.rockstargames.gtav.constants.PauseMenuLUT.REPLAY_RANDOM:
32 | default:
33 | case com.rockstargames.gtav.constants.PauseMenuLUT.REPLAY_MISSION:
34 | default:
35 | case com.rockstargames.gtav.constants.PauseMenuLUT.REPLAY_MISSION_LIST:
36 | default:
37 | case com.rockstargames.gtav.constants.PauseMenuLUT.REPLAY_MISSION_ACTIVITY:
38 | default:
39 | this.columnList = [this.column1,this.column3,this.column4];
40 | }
41 | this.showColumns();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_INFO.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_INFO extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_INFO()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("verticalMenuList",1,0);
11 | this.column2 = this.addColumn("missionHelpList",2,290);
12 | this.column3 = this.addColumn("rockstarNewswire",3,290);
13 | this.column4 = this.addColumn("dialogueList",4,290);
14 | this.column5 = this.addColumn("feedList",5,290);
15 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5);
16 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4,this.column5],[true,true,true,true,true]);
17 | this.setupColFooterScroll([this.column1,this.column2,this.column3,this.column4,this.column5],[-1,this.footerScrollOverride,this.footerScrollOverride,this.footerScrollOverride,this.footerScrollOverride]);
18 | }
19 | function stateChanged(id)
20 | {
21 | super.stateChanged(id);
22 | switch(id)
23 | {
24 | case com.rockstargames.gtav.constants.PauseMenuLUT.HOME_BRIEF:
25 | this.columnList = [this.column1,this.column4];
26 | this.column5.ON_DESTROY();
27 | break;
28 | case com.rockstargames.gtav.constants.PauseMenuLUT.HOME_FEED:
29 | this.columnList = [this.column1,this.column5];
30 | break;
31 | case com.rockstargames.gtav.constants.PauseMenuLUT.HOME_NEWSWIRE:
32 | this.columnList = [this.column1,this.column3];
33 | this.column5.ON_DESTROY();
34 | break;
35 | case com.rockstargames.gtav.constants.PauseMenuLUT.HOME_MISSION:
36 | default:
37 | case com.rockstargames.gtav.constants.PauseMenuLUT.HOME_HELP:
38 | default:
39 | case com.rockstargames.gtav.constants.PauseMenuLUT.INFO:
40 | default:
41 | this.columnList = [this.column1,this.column2];
42 | this.column5.ON_DESTROY();
43 | }
44 | this.showColumns();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_KEYMAP.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_KEYMAP extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_KEYMAP()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.itemList = this.addColumn("categoryList",1,0);
11 | this.bindingList = this.addColumn("configurationList",2,290);
12 | this.setupColumns(this.itemList,this.bindingList);
13 | this.setupColScroll([this.itemList,this.bindingList],[true,true]);
14 | this.setupColMouseNav([this.itemList,this.bindingList],[true,true]);
15 | }
16 | function stateChanged(id)
17 | {
18 | super.stateChanged(id);
19 | this.columnList = [this.itemList,this.bindingList];
20 | this.showColumns();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_MISSIONCREATOR.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_MISSIONCREATOR extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_MISSIONCREATOR()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("freemodeList",1,0);
11 | this.column2 = this.addColumn("freemodeList",2,290);
12 | this.column3 = this.addColumn("freemodeDetails",3,580);
13 | this.column4 = this.addColumn("freemodeList",4,580);
14 | this.column5 = this.addColumn("settingsList",5,290);
15 | this.setupColumns(this.column1,this.column2,this.column3,this.column4,this.column5);
16 | this.setupColScroll([this.column1,this.column2,this.column3,this.column4,this.column5],[true,true,false,true,true]);
17 | this.setupColMouseNav([this.column1,this.column2,this.column3,this.column4,this.column5],[true,false,false,false,true]);
18 | }
19 | function stateChanged(id)
20 | {
21 | super.stateChanged(id);
22 | this.columnList = [this.column1,this.column2,this.column3,this.column4,this.column5];
23 | this.showColumns();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_SAVE.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_SAVE extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_SAVE()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("textListFull",1,0);
11 | this.setupColumns(this.column1);
12 | }
13 | function stateChanged(id)
14 | {
15 | super.stateChanged(id);
16 | this.columnList = [this.column1];
17 | this.showColumns();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_SETTINGS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_SETTINGS extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_SETTINGS()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("freemodeList",1,0);
11 | this.column2 = this.addColumn("settingsList",2,290);
12 | this.setupColumns(this.column1,this.column2);
13 | this.setupColScroll([this.column1,this.column2],[true,true]);
14 | this.setupColMouseNav([this.column1,this.column2],[true,true]);
15 | }
16 | function stateChanged(id)
17 | {
18 | super.stateChanged(id);
19 | this.columnList = [this.column1,this.column2];
20 | switch(id)
21 | {
22 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS:
23 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_CONTROLS:
24 | this.column2.SET_STATE(com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_SETTINGS.CUSTOM_ITEM_CONTROLS);
25 | break;
26 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_FACEBOOK:
27 | this.column2.SET_STATE(com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_SETTINGS.CUSTOM_ITEM_SOCIAL);
28 | break;
29 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_AUDIO:
30 | this.column2.SET_STATE(com.rockstargames.gtav.pauseMenu.pauseComponents.PAUSE_MENU_SETTINGS.CUSTOM_ITEM_AUDIO);
31 | break;
32 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_MISC_CONTROLS:
33 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_DISPLAY:
34 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_CAMERA:
35 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_VIDEO:
36 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_GRAPHICS:
37 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_VOICE_CHAT:
38 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_FEED:
39 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_REPLAY:
40 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_SAVEGAME:
41 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_SIXAXIS:
42 | case com.rockstargames.gtav.constants.PauseMenuLUT.SETTINGS_FIRST_PERSON:
43 | this.column2.SET_STATE(0);
44 | }
45 | this.showColumns();
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_STATS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_STATS extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_STATS()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("statsVerticalMenuList",1,0);
11 | this.column2 = this.addColumn("statsList",2,290);
12 | this.column3 = this.addColumn("spPlayerStatsList",3,290);
13 | this.setupColumns(this.column1,this.column2,this.column3);
14 | this.setupColScroll([this.column1,this.column2,this.column3],[true,true,false]);
15 | this.setupColFooterScroll([this.column1,this.column2,this.column3],[-1,this.footerScrollOverride,2]);
16 | }
17 | function stateChanged(id)
18 | {
19 | super.stateChanged(id);
20 | this.columnList = [this.column1,this.column2,this.column3];
21 | this.showColumns();
22 | this.column3.SHOW_COLUMN(false);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_STORE.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_STORE extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_STORE()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.storeNewsColumn = this.addColumn("storeNews",1,0);
11 | this.setupColumns(this.storeNewsColumn);
12 | }
13 | function stateChanged(id)
14 | {
15 | this.columnList = [this.storeNewsColumn];
16 | this.showColumns();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/pauseMenuPages/PAUSE_MENU_PAGES_WEAPONS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.pauseMenuPages.PAUSE_MENU_PAGES_WEAPONS extends com.rockstargames.gtav.pauseMenuPages.PauseMenuBasePage
2 | {
3 | function PAUSE_MENU_PAGES_WEAPONS()
4 | {
5 | super();
6 | }
7 | function setupPage()
8 | {
9 | super.setupPage();
10 | this.column1 = this.addColumn("mpWeapons",1,0);
11 | this.setupColumns(this.column1);
12 | this.setupColMouseNav([this.column1],[true]);
13 | }
14 | function stateChanged(id)
15 | {
16 | super.stateChanged(id);
17 | this.columnList = [this.column1];
18 | this.showColumns();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/utils/GRID_LAYOUT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.utils.GRID_LAYOUT extends com.rockstargames.ui.core.UICanvas
2 | {
3 | var CANVAS;
4 | function GRID_LAYOUT(mc)
5 | {
6 | super();
7 | _global.gfxExtensions = true;
8 | }
9 | function INITIALISE(mc)
10 | {
11 | super.INITIALISE(mc);
12 | this.CANVAS.addCanvasItem(this.CONTENT.detailsMC,4,4);
13 | }
14 | function SET_INFO(b)
15 | {
16 | this.CONTENT.detailsMC._visible = b;
17 | }
18 | function SET_SAFE(i)
19 | {
20 | this.CANVAS.setSafePercent(i);
21 | this.onStageResize();
22 | }
23 | function SET_SCALE(i)
24 | {
25 | this.CANVAS.setScale(i);
26 | }
27 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/utils/GTAVUIConfig.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.utils.GTAVUIConfig
2 | {
3 | static var DEFAULT_FONT = "$Font2";
4 | static var CONDENSED_FONT = "$Font2_cond";
5 | static var PONCY_FONT = "$Font5";
6 | static var CONDENSED_FONT_NOT_GAMERNAME = "$Font2_cond_NOT_GAMERNAME";
7 | static var DEFAULT_IMG_FADE_DURATION = 0.25;
8 | function GTAVUIConfig()
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/project/com/rockstargames/gtav/utils/ROUND_DECIMAL_PLACES.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.gtav.utils.ROUND_DECIMAL_PLACES
2 | {
3 | function ROUND_DECIMAL_PLACES()
4 | {
5 | }
6 | static function roundDecimals(numIn, decimalPlaces)
7 | {
8 | if (decimalPlaces == undefined)
9 | {
10 | decimalPlaces = 2;
11 | }
12 | var _loc1_ = numIn.toString();
13 | var _loc2_ = _loc1_.lastIndexOf(".");
14 | if (_loc2_ == -1)
15 | {
16 | return parseFloat(_loc1_);
17 | }
18 | return parseFloat(_loc1_.substring(0, _loc2_ + decimalPlaces + 1));
19 | }
20 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/components/GUIController.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.components.GUIController extends com.rockstargames.gtav.levelDesign.BaseScriptUI implements com.rockstargames.ui.components.IController
2 | {
3 | var model;
4 | function GUIController()
5 | {
6 | super();
7 | }
8 | function GET_CURRENT_SELECTION()
9 | {
10 | return this.model.getCurrentSelection();
11 | }
12 | function SET_DATA_SLOT(_viewIndex, _slotIndex)
13 | {
14 | var _loc3_ = arguments.slice(2);
15 | this.model.addDataToView(_viewIndex,_slotIndex,_loc3_);
16 | }
17 | function UPDATE_DATA_SLOT(_viewIndex, _slotIndex)
18 | {
19 | var _loc3_ = arguments.slice(2);
20 | this.model.updateSlot(_viewIndex,_slotIndex,_loc3_);
21 | }
22 | function ADD_SLOT(_viewIndex, _slotIndex)
23 | {
24 | var _loc3_ = arguments.slice(2);
25 | this.model.addSlot(_viewIndex,_slotIndex,_loc3_);
26 | }
27 | function SET_DATA_SLOT_EMPTY(viewIndex, itemIndex)
28 | {
29 | this.model.removeDataFromSlot(viewIndex,itemIndex);
30 | }
31 | function DISPLAY_VIEW(viewIndex, itemIndex)
32 | {
33 | if (itemIndex == undefined)
34 | {
35 | itemIndex = 0;
36 | }
37 | this.model.displayView(viewIndex,itemIndex);
38 | }
39 | function FOCUS_VIEW(viewIndex, clearOtherViews)
40 | {
41 | if (clearOtherViews == undefined)
42 | {
43 | clearOtherViews = 1;
44 | }
45 | this.model.focusView(viewIndex,clearOtherViews);
46 | }
47 | function SET_INPUT_EVENT(direction)
48 | {
49 | switch (direction)
50 | {
51 | case com.rockstargames.ui.game.GamePadConstants.DPADUP :
52 | this.model.prevItem();
53 | break;
54 | case com.rockstargames.ui.game.GamePadConstants.DPADRIGHT :
55 | this.model.nextView();
56 | break;
57 | case com.rockstargames.ui.game.GamePadConstants.DPADDOWN :
58 | this.model.nextItem();
59 | break;
60 | case com.rockstargames.ui.game.GamePadConstants.DPADLEFT :
61 | this.model.prevView();
62 | }
63 | }
64 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/components/GUIMenuItem.as:
--------------------------------------------------------------------------------
1 | dynamic class com.rockstargames.ui.components.GUIMenuItem extends MovieClip
2 | {
3 | var _data = new Array();
4 | var _highlighted:Boolean = false;
5 | var _labels = new Array();
6 | var _height;
7 | var gotoAndStop;
8 |
9 | function GUIMenuItem()
10 | {
11 | super();
12 | this._data = new Array();
13 | this._labels = new Array();
14 | }
15 |
16 | function set data(_d)
17 | {
18 | this._data = _d;
19 | }
20 |
21 | function get data()
22 | {
23 | return this._data;
24 | }
25 |
26 | function set labels(_l)
27 | {
28 | this._labels = _l;
29 | }
30 |
31 | function get labels()
32 | {
33 | return this._labels;
34 | }
35 |
36 | function set highlighted(_h)
37 | {
38 | if (_h)
39 | {
40 | this.gotoAndStop(2);
41 | }
42 | else
43 | {
44 | this.gotoAndStop(1);
45 | }
46 | this._highlighted = _h;
47 | }
48 |
49 | function get highlighted()
50 | {
51 | return this._highlighted;
52 | }
53 |
54 | function getHeight()
55 | {
56 | return this._height;
57 | }
58 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/components/GUIScroll.as:
--------------------------------------------------------------------------------
1 | dynamic class com.rockstargames.ui.components.GUIScroll extends MovieClip
2 | {
3 | var _scrollpercent:Number = 0;
4 | var Height:Number = 0;
5 | var _x;
6 | var _y;
7 | var gutter;
8 | var scrubber;
9 |
10 | function GUIScroll()
11 | {
12 | super();
13 | }
14 |
15 | function init(newX, newY, height)
16 | {
17 | this._x = newX;
18 | this._y = newY;
19 | this.Height = height;
20 | if (this.Height != undefined)
21 | {
22 | this.gutter._height = this.Height;
23 | }
24 | }
25 |
26 | function setGutterHeight(_visibleItems, _maxlItems)
27 | {
28 | this.scrubber._height = _visibleItems * (this.Height / _maxlItems);
29 | }
30 |
31 | function set scrollpercent(_s)
32 | {
33 | this._scrollpercent = Math.max(0, Math.min(_s, 100));
34 | this.scrubber._y = this.Height / 100 * this._scrollpercent;
35 | }
36 |
37 | function get scrollpercent()
38 | {
39 | return this._scrollpercent;
40 | }
41 |
42 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/components/IController.as:
--------------------------------------------------------------------------------
1 | interface com.rockstargames.ui.components.IController
2 | {
3 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/components/UITextField.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.components.UITextField extends MovieClip
2 | {
3 | static var PT_TO_PADDING = 0.18;
4 | var _visible;
5 | var attachMovie;
6 | var createTextField;
7 | var getNextHighestDepth;
8 | var m_bShowBG;
9 | var m_bgMC;
10 | var m_fPadding;
11 | var m_tf;
12 |
13 | function UITextField(ptSize)
14 | {
15 | super();
16 | this.m_bShowBG = false;
17 | }
18 | function init(size, font, eHudColour, bShowBG)
19 | {
20 | if (!this.m_tf)
21 | {
22 | this.m_tf = this.createTextField("m_tf", this.getNextHighestDepth(), 0, 0, 10, 10);
23 | this.m_tf.embedFonts = true;
24 | this.m_tf.autoSize = true;
25 | }
26 | var _loc2_ = new TextFormat();
27 | _loc2_.font = font;
28 | _loc2_.size = size;
29 | this.m_tf.setNewTextFormat(_loc2_);
30 | this.m_fPadding = size * com.rockstargames.ui.components.UITextField.PT_TO_PADDING;
31 | this.setTextColour(eHudColour);
32 | this.showBG(bShowBG);
33 | }
34 | function showBG(bShowBG)
35 | {
36 | this.m_bShowBG = bShowBG;
37 | if (this.m_bShowBG)
38 | {
39 | if (!this.m_bgMC)
40 | {
41 | this.m_bgMC = this.attachMovie("textBG", "m_bgMC", this.getNextHighestDepth(), {_y:2});
42 | if (this.m_tf)
43 | {
44 | this.m_bgMC.swapDepths(this.m_tf);
45 | }
46 | }
47 | this.resizeBG();
48 | }
49 | else if (this.m_bgMC)
50 | {
51 | this.m_bgMC._visible = false;
52 | }
53 | }
54 | function setText(text)
55 | {
56 | if (text == "")
57 | {
58 | this._visible = false;
59 | }
60 | else
61 | {
62 | this._visible = true;
63 | this.m_tf.text = text;
64 | if (this.m_bShowBG)
65 | {
66 | this.resizeBG();
67 | }
68 | }
69 | }
70 | function setTextColour(eHudColour)
71 | {
72 | com.rockstargames.ui.utils.Colour.ApplyHudColourToTF(this.m_tf,eHudColour);
73 | }
74 | function setBgColour(eHudColour)
75 | {
76 | com.rockstargames.ui.utils.Colour.ApplyHudColour(this.m_bgMC,eHudColour);
77 | }
78 | function resizeBG()
79 | {
80 | this.m_tf._x = this.m_fPadding * 0.5;
81 | this.m_bgMC._width = this.m_tf.textWidth + this.m_fPadding * 2 + 1;
82 | this.m_bgMC._height = this.m_tf.textHeight;
83 | }
84 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/controls/ScrollBar.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.controls.ScrollBar extends MovieClip
2 | {
3 | var fadeOutDuration = 2.5;
4 | function ScrollBar()
5 | {
6 | super();
7 | gfx.motion.Tween.init();
8 | }
9 | function construct(container, scrubberID, gutterID, newX, newY, Height)
10 | {
11 | this.originX = newX;
12 | this.originY = newY;
13 | this.scrollBarContainer.removeMovieClip();
14 | this.scrollBarContainer = container.createEmptyMovieClip("scrollBarContainer",container.getNextHighestDepth());
15 | this.gutter = this.scrollBarContainer.attachMovie(gutterID,"gutter",this.scrollBarContainer.getNextHighestDepth(),{_x:this.originX,_y:this.originY});
16 | if(Height != undefined)
17 | {
18 | this.gutter._height = Height;
19 | }
20 | this.scrubber = this.scrollBarContainer.attachMovie(scrubberID,"scrubber",this.scrollBarContainer.getNextHighestDepth(),{_x:this.gutter._x,_y:this.gutter._y});
21 | }
22 | function scrollToPercentage(percentage)
23 | {
24 | var _loc2_ = (this.gutter._height - this.scrubber._height) / 100;
25 | var _loc3_ = percentage * _loc2_;
26 | this.scrubber._y = this.originY + _loc3_;
27 | }
28 | function SHOW()
29 | {
30 | this.scrollBarContainer.tweenEnd(true);
31 | this.scrollBarContainer._alpha = 100;
32 | }
33 | function HIDE()
34 | {
35 | this.scrollBarContainer.tweenTo(this.fadeOutDuration,{_alpha:0},mx.transitions.easing.Strong.easeIn);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/controls/WebCursor.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.controls.WebCursor extends MovieClip
2 | {
3 | var xMove = 0;
4 | var yMove = 0;
5 | var yScroll = 0;
6 | var safeArea = 0;
7 | function WebCursor()
8 | {
9 | super();
10 | this.browser = _level0.TIMELINE;
11 | }
12 | function CursorMove(xval, yval)
13 | {
14 | this.xMove = xval;
15 | this.yMove = yval;
16 | }
17 | function ScrollPage(yval)
18 | {
19 | if(yval != NaN)
20 | {
21 | this.yScroll = yval;
22 | }
23 | }
24 | function onEnterFrame()
25 | {
26 | var _loc5_ = 1280;
27 | var _loc4_ = 720;
28 | var _loc6_ = this._width;
29 | var _loc7_ = this._height;
30 | if(this.browser.keyboardFocus == "")
31 | {
32 | if(this.browser.MOUSE_MODE == false)
33 | {
34 | var _loc2_ = this._x + this.xMove;
35 | if(_loc2_ < this.safeArea)
36 | {
37 | _loc2_ = this.safeArea;
38 | }
39 | if(_loc2_ > _loc5_ - this.safeArea - _loc6_)
40 | {
41 | _loc2_ = _loc5_ - this.safeArea - _loc6_;
42 | }
43 | this._x = _loc2_;
44 | var _loc3_ = this._y + this.yMove;
45 | if(_loc3_ < this.browser.safeFrameY)
46 | {
47 | _loc3_ = this.browser.safeFrameY;
48 | }
49 | if(_loc3_ > _loc4_ - this.browser.safeFrameY - 8)
50 | {
51 | _loc3_ = _loc4_ - this.browser.safeFrameY - 8;
52 | }
53 | this._y = _loc3_;
54 | }
55 | if(this.yScroll != 0)
56 | {
57 | this.browser.SCROLL_WEBPAGE_PIXELS(this.yScroll);
58 | }
59 | this.browser.hitTestButtons(this._x,this._y);
60 | }
61 | else if(this.browser.MOUSE_MODE == true)
62 | {
63 | this.browser.hitTestKeyboardButtons(this._x,this._y);
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/core/BaseComponentInfo.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.core.BaseComponentInfo
2 | {
3 | var _enumId;
4 | var _status;
5 | var _listener;
6 | var _functionCache;
7 | var _intendedVisibleState;
8 | var _displayList;
9 | var _displayListPriority;
10 | var _mc;
11 | var _hasGfx;
12 | var _position;
13 | var _size;
14 | var _colour;
15 | var _loader;
16 |
17 | function BaseComponentInfo(newID)
18 | {
19 | this._enumId = newID;
20 | this._status = 0;
21 | this._listener = {};
22 | this._functionCache = [];
23 | this._position = [];
24 | this._size = [];
25 | this._colour = [];
26 | this._intendedVisibleState = true;
27 | this._displayList = -1;
28 | this._displayListPriority = -1;
29 | this._mc = new MovieClip();
30 | this._loader = new MovieClipLoader();
31 | this._hasGfx = true;
32 | }
33 | function sanitise()
34 | {
35 | this._mc = new MovieClip();
36 | this._status = 0;
37 | this._listener = {};
38 | this._displayList = -1;
39 | this._displayListPriority = -1;
40 | this._position = [];
41 | this._size = [];
42 | this._colour = [];
43 | this._functionCache = [];
44 | this._hasGfx = true;
45 | }
46 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/core/BaseScriptUI.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.core.BaseScriptUI extends MovieClip
2 | {
3 |
4 | var BOUNDING_BOX;
5 | var CONTENT;
6 | var TIMELINE;
7 | var _isWideScreen;
8 |
9 | function BaseScriptUI()
10 | {
11 | super();
12 | }
13 | function INITIALISE(mc)
14 | {
15 | this.TIMELINE = mc;
16 | this.CONTENT = this.TIMELINE.attachMovie("CONTENT", "CONTENT", this.TIMELINE.getNextHighestDepth());
17 | this.BOUNDING_BOX = this.TIMELINE.attachMovie("BOUNDING_BOX", "BOUNDING_BOX", this.TIMELINE.getNextHighestDepth());
18 | this.BOUNDING_BOX._visible = false;
19 | }
20 | function SET_WIDESCREEN(isWideScreen)
21 | {
22 | this._isWideScreen = isWideScreen;
23 | }
24 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/core/BaseWebsite.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.core.BaseWebsite extends MovieClip
2 | {
3 | var IS_SITE_DYNAMIC = 0;
4 | var resetScroll = true;
5 | function BaseWebsite()
6 | {
7 | super();
8 | this.dataProviderUI = new Array();
9 | this.dataTextScope = new Array();
10 | this.PAGE_NAMES = new Array();
11 | this.PAGE_NAMES[1] = "PAGE1";
12 | this.CAN_STORE_PAGE = new Array();
13 | this.CAN_STORE_PAGE[1] = true;
14 | }
15 | function INITIALISE(mc)
16 | {
17 | this.TIMELINE = mc;
18 | this.CONTENT = this.TIMELINE.attachMovie("CONTENT","CONTENT",this.TIMELINE.getNextHighestDepth());
19 | this.BOUNDING_BOX = this.TIMELINE.attachMovie("BOUNDING_BOX","BOUNDING_BOX",this.TIMELINE.getNextHighestDepth());
20 | this.BOUNDING_BOX._visible = false;
21 | this.READY();
22 | }
23 | function READY()
24 | {
25 | }
26 | function SET_PRICES()
27 | {
28 | }
29 | function DISABLE_VIDEO()
30 | {
31 | }
32 | function SET_MOVIECLIP_VISIBILITY(isVisible, instanceEnum)
33 | {
34 | }
35 | function PROXY_FUNCTION()
36 | {
37 | }
38 | function showMovieClip(targetMC, xPos)
39 | {
40 | targetMC._visible = true;
41 | targetMC._x = xPos;
42 | }
43 | function hideMovieClip(targetMC)
44 | {
45 | targetMC._visible = false;
46 | targetMC._x = 1300;
47 | }
48 | function TXD_HAS_LOADED()
49 | {
50 | }
51 | function CLEANUP()
52 | {
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/core/ScreenLayoutUI.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.core.ScreenLayoutUI extends com.rockstargames.ui.core.BaseScriptUI
2 | {
3 | function ScreenLayoutUI()
4 | {
5 | super();
6 | }
7 | function INITIALISE(mc)
8 | {
9 | super.INITIALISE(mc);
10 | this.screenManager = new com.rockstargames.ui.core.ScreenLayoutManager();
11 | }
12 | function SET_SAFE(value)
13 | {
14 | this.screenManager.setSafeZone(arguments);
15 | }
16 | function SET_RATIO(r)
17 | {
18 | this.screenManager.setRatio(r);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/core/UICanvas.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.core.UICanvas extends com.rockstargames.ui.core.BaseScriptUI
2 | {
3 | var CANVAS = null;
4 | var stageResizeListener = new Object();
5 | function UICanvas()
6 | {
7 | super();
8 | }
9 | function INITIALISE(mc)
10 | {
11 | super.INITIALISE(mc);
12 | var _loc3_ = this.CONTENT.createEmptyMovieClip("canvas",this.CONTENT.getNextHighestDepth());
13 | this.CANVAS = new com.rockstargames.ui.core.UICanvasBounds(_loc3_);
14 | this.addStageResizeListener();
15 | }
16 | function addStageResizeListener()
17 | {
18 | this.stageResizeListener = new Object();
19 | this.stageResizeListener.onResize = com.rockstargames.ui.utils.DelegateStar.create(this,this.onStageResize);
20 | Stage.addListener(this.stageResizeListener);
21 | }
22 | function removeStageResizeListener()
23 | {
24 | Stage.removeListener(this.stageResizeListener);
25 | }
26 | function onStageResize()
27 | {
28 | var _loc2_ = Stage.visibleRect;
29 | var _loc3_ = Stage.safeRect;
30 | this.CANVAS.update(_loc2_,_loc3_);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/core/UICanvasItem.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.core.UICanvasItem
2 | {
3 | var mc;
4 | var originalBounds;
5 | var scaledBounds;
6 | var gridPos;
7 | var anchor;
8 | var offset;
9 | function UICanvasItem()
10 | {
11 | }
12 | function init(_mc, _gridPos, _anchor, _offset)
13 | {
14 | this.mc = _mc;
15 | this.originalBounds = new flash.geom.Rectangle(0, 0, this.mc._width, this.mc._height);
16 | this.scaledBounds = new flash.geom.Rectangle(0, 0, this.mc._width, this.mc._height);
17 | this.gridPos = _gridPos;
18 | this.anchor = _anchor;
19 | this.offset = _offset;
20 | }
21 | function setScale(scale)
22 | {
23 | this.mc._xscale = this.mc._yscale = scale * 100;
24 | var _loc4_ = this.originalBounds.width * scale;
25 | var _loc3_ = this.originalBounds.height * scale;
26 | this.scaledBounds = new flash.geom.Rectangle(0, 0, _loc4_, _loc3_);
27 | }
28 | function setPosition(gridList)
29 | {
30 | var _loc2_ = gridList[this.gridPos];
31 | var _loc4_ = this.offset.x;
32 | var _loc3_ = this.offset.y;
33 | switch (this.anchor)
34 | {
35 | case 0 :
36 | default :
37 | _loc4_ = _loc4_ + _loc2_.x;
38 | _loc3_ = _loc3_ + _loc2_.y;
39 | break;
40 | case 1 :
41 | _loc4_ = _loc4_ + (_loc2_.x + _loc2_.width * 0.5 - this.scaledBounds.width * 0.5);
42 | _loc3_ = _loc3_ + _loc2_.y;
43 | break;
44 | case 2 :
45 | _loc4_ = _loc4_ + (_loc2_.x + _loc2_.width - this.scaledBounds.width);
46 | _loc3_ = _loc3_ + _loc2_.y;
47 | break;
48 | case 3 :
49 | _loc4_ = _loc4_ + _loc2_.x;
50 | _loc3_ = _loc3_ + (_loc2_.y + _loc2_.height * 0.5 - this.scaledBounds.height * 0.5);
51 | break;
52 | case 4 :
53 | _loc4_ = _loc4_ + (_loc2_.x + _loc2_.width * 0.5 - this.scaledBounds.width * 0.5);
54 | _loc3_ = _loc3_ + (_loc2_.y + _loc2_.height * 0.5 - this.scaledBounds.height * 0.5);
55 | break;
56 | case 5 :
57 | _loc4_ = _loc4_ + (_loc2_.x + _loc2_.width - this.scaledBounds.width);
58 | _loc3_ = _loc3_ + (_loc2_.y + _loc2_.height * 0.5 - this.scaledBounds.height * 0.5);
59 | break;
60 | case 6 :
61 | _loc4_ = _loc4_ + _loc2_.x;
62 | _loc3_ = _loc3_ + (_loc2_.y + _loc2_.height - this.scaledBounds.height);
63 | break;
64 | case 7 :
65 | _loc4_ = _loc4_ + (_loc2_.x + _loc2_.width * 0.5 - this.scaledBounds.width * 0.5);
66 | _loc3_ = _loc3_ + (_loc2_.y + _loc2_.height - this.scaledBounds.height);
67 | break;
68 | case 8 :
69 | _loc4_ = _loc4_ + (_loc2_.x + _loc2_.width - this.scaledBounds.width);
70 | _loc3_ = _loc3_ + (_loc2_.y + _loc2_.height - this.scaledBounds.height);
71 | }
72 | this.mc._x = _loc4_;
73 | this.mc._y = _loc3_;
74 | }
75 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/game/GameCom.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.game.GameCom
2 | {
3 | function GameCom()
4 | {
5 | }
6 | static function REQUEST_RESTART_MOVIE(movieName)
7 | {
8 | com.rockstargames.ui.game.GameInterface.call("FORCE_RESTART_MOVIE",com.rockstargames.ui.game.GameInterface.GENERIC_TYPE,movieName);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/game/GameGlobals.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.game.GameGlobals
2 | {
3 | static var CELEBRATION_SCREEN = 10;
4 | static var YACHT = 11;
5 | static var OFFICE = 12;
6 | static var CLUBHOUSE = 13;
7 | static var GARAGE_1 = 14;
8 | static var GARAGE_2 = 15;
9 | static var VEHICLE_SALE = 16;
10 | static var TRUCK = 17;
11 | static var CHOPPER = 18;
12 | function GameGlobals()
13 | {
14 | }
15 | static function setGlobalFlag(globalFlagID, value)
16 | {
17 | com.rockstargames.ui.game.GameInterface.call("SET_GLOBAL_ACTIONSCRIPT_FLAG",com.rockstargames.ui.game.GameInterface.SCRIPT_TYPE,globalFlagID,value);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/game/GameInterface.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.game.GameInterface
2 | {
3 | static var GENERIC_TYPE = 0;
4 | static var SCRIPT_TYPE = 1;
5 | static var HUD_TYPE = 2;
6 | static var MINIMAP_TYPE = 3;
7 | static var WEB_TYPE = 4;
8 | static var CUTSCENE_TYPE = 5;
9 | static var PAUSE_TYPE = 6;
10 | static var STORE = 7;
11 | static var GAMESTREAM = 8;
12 | static var SF_BASE_CLASS_VIDEO_EDITOR = 9;
13 | static var SF_BASE_CLASS_MOUSE = 10;
14 | function GameInterface()
15 | {
16 | }
17 | static function call()
18 | {
19 | flash.external.ExternalInterface.call.apply(null,arguments);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/game/GamePadConstants.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.game.GamePadConstants
2 | {
3 | static var DPADUP = 8;
4 | static var DPADDOWN = 9;
5 | static var DPADLEFT = 10;
6 | static var DPADRIGHT = 11;
7 | static var FRONTEND_CONTEXT_BUTTON = 20;
8 | static var FRONTEND_OPTIONS_BUTTON = 21;
9 | static var NO_BUTTON_PRESSED = 9999;
10 | static var LEFTSHOULDER1 = 4;
11 | static var LEFTSHOULDER2 = 5;
12 | static var RIGHTSHOULDER1 = 6;
13 | static var RIGHTSHOULDER2 = 7;
14 | static var START = 12;
15 | static var SELECT = 13;
16 | static var SQUARE = 14;
17 | static var TRIANGLE = 15;
18 | static var CROSS = 16;
19 | static var CIRCLE = 17;
20 | static var LEFTSHOCK = 18;
21 | static var RIGHTSHOCK = 19;
22 | function GamePadConstants()
23 | {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/game/InstructionalButtonEnums.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.game.InstructionalButtonEnums
2 | {
3 | static var UP = 0;
4 | static var DOWN = 1;
5 | static var LEFT = 2;
6 | static var RIGHT = 3;
7 | static var DPAD_UP = 4;
8 | static var DPAD_DOWN = 5;
9 | static var DPAD_LEFT = 6;
10 | static var DPAD_RIGHT = 7;
11 | static var DPAD_NONE = 8;
12 | static var DPAD_ALL = 9;
13 | static var DPAD_UPDOWN = 10;
14 | static var DPAD_LEFTRIGHT = 11;
15 | static var LSTICK_UP = 12;
16 | static var LSTICK_DOWN = 13;
17 | static var LSTICK_LEFT = 14;
18 | static var LSTICK_RIGHT = 15;
19 | static var LSTICK_NONE = 16;
20 | static var LSTICK_ALL1 = 17;
21 | static var LSTICK_UPDOWN = 18;
22 | static var LSTICK_LEFTRIGHT = 19;
23 | static var LSTICK_ROTATE = 20;
24 | static var RSTICK_UP = 21;
25 | static var RSTICK_DOWN = 22;
26 | static var RSTICK_LEFT = 23;
27 | static var RSTICK_RIGHT = 24;
28 | static var RSTICK_NONE = 25;
29 | static var RSTICK_ALL = 26;
30 | static var RSTICK_UPDOWN = 27;
31 | static var RSTICK_LEFTRIGHT = 28;
32 | static var RSTICK_ROTATE = 29;
33 | static var BUTTON_A = 30;
34 | static var BUTTON_B = 31;
35 | static var BUTTON_X = 32;
36 | static var BUTTON_Y = 33;
37 | static var BUTTON_LB = 34;
38 | static var BUTTON_LT = 35;
39 | static var BUTTON_RB = 36;
40 | static var BUTTON_RT = 37;
41 | static var BUTTON_START = 38;
42 | static var BUTTON_BACK = 39;
43 | static var SIXAXIS_DRIVE = 40;
44 | static var SIXAXIS_PITCH = 41;
45 | static var SIXAXIS_RELOAD = 42;
46 | static var SIXAXIS_ROLL = 43;
47 | static var ICON_SPINNER = 44;
48 | function InstructionalButtonEnums()
49 | {
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/hud/HUD_COMPONENT.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.hud.HUD_COMPONENT extends MovieClip
2 | {
3 | var IS_PAUSED = false;
4 | var FADE_DURATION = 100;
5 | var ON_SCREEN_DURATION = 5000;
6 | var firstRunFlag = true;
7 | var MP_IS_ACTIVE = false;
8 | function HUD_COMPONENT()
9 | {
10 | super();
11 | }
12 | function INITIALISE(mc)
13 | {
14 | this.TIMELINE = mc;
15 | this.CONTENT = this.TIMELINE.attachMovie("CONTENT","CONTENT",this.TIMELINE.getNextHighestDepth());
16 | this.BOUNDING_BOX = this.TIMELINE.attachMovie("BOUNDING_BOX","BOUNDING_BOX",this.TIMELINE.getNextHighestDepth());
17 | this.BOUNDING_BOX._visible = false;
18 | }
19 | function READY(id)
20 | {
21 | this._enumID = id;
22 | }
23 | function getTopCompOffset()
24 | {
25 | return 0;
26 | }
27 | function getBottomCompOffset()
28 | {
29 | return 0;
30 | }
31 | function SET_HUD(hud)
32 | {
33 | this._HUD = hud;
34 | }
35 | function destroy()
36 | {
37 | this._HUD = null;
38 | delete this._HUD;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/media/ImageLoader.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.media.ImageLoader
2 | {
3 | var gfxFileName = "";
4 | var textureDict = "";
5 | var textureFilename = "";
6 | var textureMethod = 0;
7 | var isLoaded = false;
8 | var textureContainer;
9 |
10 | function ImageLoader()
11 | {
12 | }
13 | function init(_gfxName, _texDict, _texFilename, _texContainer, _texMethod)
14 | {
15 | this.gfxFileName = _gfxName;
16 | this.textureDict = _texDict;
17 | this.textureFilename = _texFilename;
18 | if (_texContainer != undefined)
19 | {
20 | this.textureContainer = _texContainer;
21 | }
22 | if (_texMethod != undefined)
23 | {
24 | this.textureMethod = _texMethod;
25 | }
26 | }
27 | function loadImage()
28 | {
29 | this.isLoaded = false;
30 | if (this.gfxFileName != "" && this.textureDict != "")
31 | {
32 | com.rockstargames.ui.game.GameInterface.call("REQUEST_TXD",com.rockstargames.ui.game.GameInterface.GENERIC_TYPE,this.gfxFileName,this.textureDict,this.textureFilename);
33 | }
34 | }
35 | function getImage(imageTextField)
36 | {
37 | this.isLoaded = false;
38 | if (this.gfxFileName != "" && this.textureDict != "")
39 | {
40 | com.rockstargames.ui.game.GameInterface.call("GET_TXD",com.rockstargames.ui.game.GameInterface.GENERIC_TYPE,this.gfxFileName,this.textureDict);
41 | this.setImage(imageTextField);
42 | }
43 | }
44 | function setImage(imageTextField, w, h)
45 | {
46 | var _loc4_ = "%d";
47 | var _loc2_ = "%d";
48 | if (w != undefined)
49 | {
50 | _loc4_ = w.toString();
51 | }
52 | if (h != undefined)
53 | {
54 | _loc2_ = h.toString();
55 | }
56 | if (this.textureContainer != undefined)
57 | {
58 | imageTextField = this.textureContainer;
59 | }
60 | if (imageTextField != undefined)
61 | {
62 | var _loc5_ = "img://" + this.textureDict + "/" + this.textureFilename;
63 | var _loc6_ = "
";
64 | imageTextField.htmlText = _loc6_;
65 | imageTextField.autoSize = true;
66 | }
67 | }
68 | function setImageInMemory(imageTextField, w, h)
69 | {
70 | var _loc3_ = "%d";
71 | var _loc2_ = "%d";
72 | if (w != undefined)
73 | {
74 | _loc3_ = w.toString();
75 | }
76 | if (h != undefined)
77 | {
78 | _loc2_ = h.toString();
79 | }
80 | var _loc4_ = this.textureFilename;
81 | var _loc5_ = "
";
82 | imageTextField.htmlText = _loc5_;
83 | imageTextField.autoSize = true;
84 | }
85 | function deleteImage()
86 | {
87 | if (this.gfxFileName != "" && this.textureDict != "")
88 | {
89 | com.rockstargames.ui.game.GameInterface.call("REMOVE_TXD",com.rockstargames.ui.game.GameInterface.GENERIC_TYPE,this.gfxFileName,this.textureDict);
90 | }
91 | }
92 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/mouse/MOUSE_EVENTS.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.mouse.MOUSE_EVENTS
2 | {
3 | static var MOUSE_DRAG_OUT = 0;
4 | static var MOUSE_DRAG_OVER = 1;
5 | static var MOUSE_DOWN = 2;
6 | static var MOUSE_MOVE = 3;
7 | static var MOUSE_UP = 4;
8 | static var MOUSE_PRESS = 5;
9 | static var MOUSE_RELEASE = 6;
10 | static var MOUSE_RELEASE_OUTSIDE = 7;
11 | static var MOUSE_ROLL_OUT = 8;
12 | static var MOUSE_ROLL_OVER = 9;
13 | static var MOUSE_WHEEL_UP = 10;
14 | static var MOUSE_WHEEL_DOWN = 11;
15 | static var UI_MOVIE_VIDEO_EDITOR = 0;
16 | static var UI_MOVIE_ONLINE_POLICY = 1;
17 | static var UI_MOVIE_INSTRUCTIONAL_BUTTONS = 2;
18 | static var UI_MOVIE_REPORT_MENU = 3;
19 | static var UI_MOVIE_GENERIC = 4;
20 | var SF_BASE_CLASS_MOUSE = 10;
21 | var DEFAULT_BUTTON_TYPE = 0;
22 | var _ui_movie = -1;
23 | var _interfaceType = -1;
24 |
25 | function MOUSE_EVENTS()
26 | {
27 | this.INTERFACE_TYPE = this.SF_BASE_CLASS_MOUSE;
28 | }
29 |
30 | function set UI_MOVIE(uiMovie)
31 | {
32 | this._ui_movie = uiMovie;
33 | }
34 |
35 | function get UI_MOVIE()
36 | {
37 | return this._ui_movie;
38 | }
39 |
40 | function set INTERFACE_TYPE(iType)
41 | {
42 | this._interfaceType = iType;
43 | }
44 |
45 | function get INTERFACE_TYPE()
46 | {
47 | return this._interfaceType;
48 | }
49 |
50 | function triggerEvent(params)
51 | {
52 | params.unshift("MOUSE_EVENT",this.INTERFACE_TYPE,this.UI_MOVIE);
53 | flash.external.ExternalInterface.call.apply(null,params);
54 | }
55 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/mouse/MouseBtnInterface.as:
--------------------------------------------------------------------------------
1 | interface com.rockstargames.ui.mouse.MouseBtnInterface
2 | {
3 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/Ease.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.Ease
2 | {
3 | static var LINEAR = 0;
4 | static var QUADRATIC_IN = 1;
5 | static var QUADRATIC_OUT = 2;
6 | static var QUADRATIC_INOUT = 3;
7 | static var CUBIC_IN = 4;
8 | static var CUBIC_OUT = 5;
9 | static var CUBIC_INOUT = 6;
10 | static var QUARTIC_IN = 7;
11 | static var QUARTIC_OUT = 8;
12 | static var QUARTIC_INOUT = 9;
13 | static var SINE_IN = 10;
14 | static var SINE_OUT = 11;
15 | static var SINE_INOUT = 12;
16 | static var BACK_IN = 13;
17 | static var BACK_OUT = 14;
18 | static var BACK_INOUT = 15;
19 | static var CIRCULAR_IN = 16;
20 | static var CIRCULAR_OUT = 17;
21 | static var CIRCULAR_INOUT = 18;
22 | static var EaseTable = [com.rockstargames.ui.tweenStar.easing.Linear.easeNone,com.rockstargames.ui.tweenStar.easing.Quad.easeIn,com.rockstargames.ui.tweenStar.easing.Quad.easeOut,com.rockstargames.ui.tweenStar.easing.Quad.easeInOut,com.rockstargames.ui.tweenStar.easing.Cubic.easeIn,com.rockstargames.ui.tweenStar.easing.Cubic.easeOut,com.rockstargames.ui.tweenStar.easing.Cubic.easeInOut,com.rockstargames.ui.tweenStar.easing.Quart.easeIn,com.rockstargames.ui.tweenStar.easing.Quart.easeOut,com.rockstargames.ui.tweenStar.easing.Quart.easeInOut,com.rockstargames.ui.tweenStar.easing.Sine.easeIn,com.rockstargames.ui.tweenStar.easing.Sine.easeOut,com.rockstargames.ui.tweenStar.easing.Sine.easeInOut,com.rockstargames.ui.tweenStar.easing.Back.easeIn,com.rockstargames.ui.tweenStar.easing.Back.easeOut,com.rockstargames.ui.tweenStar.easing.Back.easeInOut,com.rockstargames.ui.tweenStar.easing.Circ.easeIn,com.rockstargames.ui.tweenStar.easing.Circ.easeOut,com.rockstargames.ui.tweenStar.easing.Circ.easeInOut];
23 | function Ease()
24 | {
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/TweenStarLiteRef.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.TweenStarLiteRef
2 | {
3 | var props;
4 | var updateMC;
5 | var vars;
6 |
7 | function TweenStarLiteRef(_updateMC, _props, _vars)
8 | {
9 | this.updateMC = _updateMC;
10 | this.props = _props;
11 | this.vars = _vars;
12 | }
13 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Back.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Back
2 | {
3 | function Back()
4 | {
5 | }
6 | static function easeIn(t, b, c, d, s)
7 | {
8 | if(s == undefined)
9 | {
10 | s = 1.70158;
11 | }
12 | return c * (t = t / d) * t * ((s + 1) * t - s) + b;
13 | }
14 | static function easeOut(t, b, c, d, s)
15 | {
16 | if(s == undefined)
17 | {
18 | s = 1.70158;
19 | }
20 | return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
21 | }
22 | static function easeInOut(t, b, c, d, s)
23 | {
24 | if(s == undefined)
25 | {
26 | s = 1.70158;
27 | }
28 | if((t = t / (d * 0.5)) < 1)
29 | {
30 | return c * 0.5 * (t * t * (((s = s * 1.525) + 1) * t - s)) + b;
31 | }
32 | return c * 0.5 * ((t = t - 2) * t * (((s = s * 1.525) + 1) * t + s) + 2) + b;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Circ.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Circ
2 | {
3 | function Circ()
4 | {
5 | }
6 | static function easeIn(t, b, c, d)
7 | {
8 | return (- c) * (Math.sqrt(1 - (t = t / d) * t) - 1) + b;
9 | }
10 | static function easeOut(t, b, c, d)
11 | {
12 | return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
13 | }
14 | static function easeInOut(t, b, c, d)
15 | {
16 | if((t = t / (d / 2)) < 1)
17 | {
18 | return (- c) / 2 * (Math.sqrt(1 - t * t) - 1) + b;
19 | }
20 | return c / 2 * (Math.sqrt(1 - (t = t - 2) * t) + 1) + b;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Cubic.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Cubic
2 | {
3 | function Cubic()
4 | {
5 | }
6 | static function easeIn(t, b, c, d)
7 | {
8 | return c * (t = t / d) * t * t + b;
9 | }
10 | static function easeOut(t, b, c, d)
11 | {
12 | return c * ((t = t / d - 1) * t * t + 1) + b;
13 | }
14 | static function easeInOut(t, b, c, d)
15 | {
16 | if((t = t / (d / 2)) < 1)
17 | {
18 | return c / 2 * t * t * t + b;
19 | }
20 | return c / 2 * ((t = t - 2) * t * t + 2) + b;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Linear.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Linear
2 | {
3 | function Linear()
4 | {
5 | }
6 | static function easeNone(t, b, c, d)
7 | {
8 | return c * t / d + b;
9 | }
10 | static function easeIn(t, b, c, d)
11 | {
12 | return c * t / d + b;
13 | }
14 | static function easeOut(t, b, c, d)
15 | {
16 | return c * t / d + b;
17 | }
18 | static function easeInOut(t, b, c, d)
19 | {
20 | return c * t / d + b;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Quad.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Quad
2 | {
3 | function Quad()
4 | {
5 | }
6 | static function easeIn(t, b, c, d)
7 | {
8 | return c * (t = t / d) * t + b;
9 | }
10 | static function easeOut(t, b, c, d)
11 | {
12 | return (- c) * (t = t / d) * (t - 2) + b;
13 | }
14 | static function easeInOut(t, b, c, d)
15 | {
16 | if((t = t / (d / 2)) < 1)
17 | {
18 | return c / 2 * t * t + b;
19 | }
20 | return (- c) / 2 * ((t = t - 1) * (t - 2) - 1) + b;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Quart.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Quart
2 | {
3 | function Quart()
4 | {
5 | }
6 | static function easeIn(t, b, c, d)
7 | {
8 | return c * (t = t / d) * t * t * t + b;
9 | }
10 | static function easeOut(t, b, c, d)
11 | {
12 | return (- c) * ((t = t / d - 1) * t * t * t - 1) + b;
13 | }
14 | static function easeInOut(t, b, c, d)
15 | {
16 | if((t = t / (d / 2)) < 1)
17 | {
18 | return c / 2 * t * t * t * t + b;
19 | }
20 | return (- c) / 2 * ((t = t - 2) * t * t * t - 2) + b;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/tweenStar/easing/Sine.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.tweenStar.easing.Sine
2 | {
3 | function Sine()
4 | {
5 | }
6 | static function easeIn(t, b, c, d)
7 | {
8 | return (- c) * Math.cos(t / d * 1.5707963267948966) + c + b;
9 | }
10 | static function easeOut(t, b, c, d)
11 | {
12 | return c * Math.sin(t / d * 1.5707963267948966) + b;
13 | }
14 | static function easeInOut(t, b, c, d)
15 | {
16 | return (- c) / 2 * (Math.cos(3.141592653589793 * t / d) - 1) + b;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/BitMask.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.BitMask
2 | {
3 | function BitMask(value)
4 | {
5 | if(value != undefined)
6 | {
7 | this._bitField = value;
8 | }
9 | else
10 | {
11 | this._bitField = 0;
12 | }
13 | }
14 | function __set__bitfield(value)
15 | {
16 | this._bitField = value;
17 | return this.__get__bitfield();
18 | }
19 | function __get__bitfield()
20 | {
21 | return this._bitField;
22 | }
23 | function setBit(bitmask)
24 | {
25 | this._bitField = this._bitField | bitmask;
26 | }
27 | function clearBit(bitmask)
28 | {
29 | this._bitField = this._bitField - (this._bitField & bitmask);
30 | }
31 | function isBitSet(bitmask)
32 | {
33 | return (this._bitField & bitmask) != 0;
34 | }
35 | function isBitSetAt(i)
36 | {
37 | return this.isBitSet(com.rockstargames.ui.utils.BitMask.BIT(i));
38 | }
39 | static function BIT(value)
40 | {
41 | return Math.pow(2,value);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/BitMonger.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.BitMonger extends Number
2 | {
3 | function BitMonger(value)
4 | {
5 | super();
6 | this._bitfield = value == undefined?0:value;
7 | }
8 | function __set__bitfield(value)
9 | {
10 | this._bitfield = value;
11 | return this.__get__bitfield();
12 | }
13 | function __get__bitfield()
14 | {
15 | return this._bitfield;
16 | }
17 | function setBit(bit)
18 | {
19 | this._bitfield = com.rockstargames.ui.utils.BitMonger.SET_BIT(this._bitfield,bit);
20 | }
21 | function clearBit(bit)
22 | {
23 | this._bitfield = com.rockstargames.ui.utils.BitMonger.CLEAR_BIT(this._bitfield,bit);
24 | }
25 | function isBitSet(bit)
26 | {
27 | return com.rockstargames.ui.utils.BitMonger.IS_BIT_SET(this._bitfield,bit);
28 | }
29 | function unpackInt(index, width)
30 | {
31 | return com.rockstargames.ui.utils.BitMonger.UNPACK_INT(this._bitfield,index,width);
32 | }
33 | function packInt(index, width, value)
34 | {
35 | this._bitfield = com.rockstargames.ui.utils.BitMonger.PACK_INT(this._bitfield,index,width,value);
36 | }
37 | static function BIT(value)
38 | {
39 | var _loc3_ = 0;
40 | var _loc2_ = 0;
41 | while(_loc2_ < arguments.length)
42 | {
43 | _loc3_ = _loc3_ | 1 << arguments[_loc2_];
44 | _loc2_ = _loc2_ + 1;
45 | }
46 | return _loc3_;
47 | }
48 | static function SET_BIT(bitfield, bit)
49 | {
50 | return bitfield = bitfield | com.rockstargames.ui.utils.BitMonger.BIT(bit);
51 | }
52 | static function CLEAR_BIT(bitfield, bit)
53 | {
54 | return bitfield = bitfield & (~com.rockstargames.ui.utils.BitMonger.BIT(bit));
55 | }
56 | static function IS_BIT_SET(bitfield, bit)
57 | {
58 | return (bitfield & com.rockstargames.ui.utils.BitMonger.BIT(bit)) == com.rockstargames.ui.utils.BitMonger.BIT(bit);
59 | }
60 | static function UNPACK_INT(bitfield, index, width)
61 | {
62 | var _loc1_ = com.rockstargames.ui.utils.BitMonger.BIT(width) - 1;
63 | return bitfield >> index & _loc1_;
64 | }
65 | static function PACK_INT(bitfield, index, width, value)
66 | {
67 | var _loc1_ = com.rockstargames.ui.utils.BitMonger.BIT(width) - 1;
68 | return bitfield = bitfield | (value & _loc1_) << index;
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/Debug.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.Debug
2 | {
3 | function Debug()
4 | {
5 | }
6 | static function log(str, scriptType)
7 | {
8 | if(scriptType == undefined)
9 | {
10 | com.rockstargames.ui.game.GameInterface.call("DEBUG_LOG",com.rockstargames.ui.game.GameInterface.HUD_TYPE,str);
11 | }
12 | else
13 | {
14 | com.rockstargames.ui.game.GameInterface.call("DEBUG_LOG",scriptType,str);
15 | }
16 | return str;
17 | }
18 | static function ObjectTrace(object, recursive)
19 | {
20 | var _loc2_ = "";
21 | for(var _loc4_ in object)
22 | {
23 | _loc2_ = _loc2_ + ("Name:" + object[_loc4_]._name + " [Type]: " + typeof object[_loc4_] + " [Value]: " + object[_loc4_] + "\n");
24 | if(recursive)
25 | {
26 | _loc2_ = _loc2_ + "RECURSE\n";
27 | com.rockstargames.ui.utils.Debug.ObjectTrace(object[_loc4_]);
28 | }
29 | }
30 | com.rockstargames.ui.utils.Debug.log(_loc2_);
31 | }
32 | static function printStats(movieName)
33 | {
34 | com.rockstargames.ui.game.GameInterface.call("DEBUG_PRINT_MEMORY_STATS",com.rockstargames.ui.game.GameInterface.GENERIC_TYPE,movieName);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/DelegateStar.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.DelegateStar
2 | {
3 | function DelegateStar()
4 | {
5 | }
6 | static function create(obj, func)
7 | {
8 | var potentialArguments = arguments.slice(2);
9 | var _loc2_ = function()
10 | {
11 | var _loc2_ = arguments.callee.target;
12 | var _loc3_ = arguments.callee.func;
13 | return _loc3_.apply(_loc2_,potentialArguments);
14 | };
15 | _loc2_.target = obj;
16 | _loc2_.func = func;
17 | return _loc2_;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/DisplayConfig.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.DisplayConfig
2 | {
3 | var isAsian;
4 | var isCircleAccept;
5 | var isHiDef;
6 | var isWideScreen;
7 | var safeBottom;
8 | var safeLeft;
9 | var safeRight;
10 | var safeTop;
11 | var screenHeight;
12 | var screenWidth;
13 | var actualWidth;
14 | var actualHeight;
15 |
16 | function DisplayConfig()
17 | {
18 | this.screenWidth = 1280;
19 | this.screenHeight = 720;
20 | this.safeTop = 0.05;
21 | this.safeBottom = 0.95;
22 | this.safeLeft = 0.05;
23 | this.safeRight = 0.95;
24 | this.isWideScreen = true;
25 | this.isCircleAccept = false;
26 | this.isHiDef = true;
27 | this.isAsian = false;
28 | this.actualWidth = 1280;
29 | this.actualHeight = 720;
30 | }
31 | }
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/FitToTextfield.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.FitToTextfield
2 | {
3 | function FitToTextfield()
4 | {
5 | }
6 | static function capText()
7 | {
8 | var _loc10_ = arguments[0];
9 | var _loc11_ = arguments[1];
10 | var _loc4_ = _loc11_;
11 | var _loc6_ = _loc10_.getNewTextFormat();
12 | var _loc3_ = _loc6_.getTextExtent(_loc4_);
13 | var _loc5_ = _loc3_.textFieldWidth;
14 | var _loc7_ = _loc10_._width;
15 | if(_loc5_ < _loc7_)
16 | {
17 | return _loc4_;
18 | }
19 | var _loc9_ = _loc4_.length;
20 | _loc3_ = _loc6_.getTextExtent("...");
21 | var _loc8_ = _loc3_.textFieldWidth;
22 | var _loc2_ = 0;
23 | while(_loc2_ < _loc9_)
24 | {
25 | _loc3_ = _loc6_.getTextExtent(_loc4_.slice(0,_loc2_));
26 | _loc5_ = _loc3_.textFieldWidth;
27 | if(_loc5_ > _loc7_ - _loc8_)
28 | {
29 | return _loc4_.slice(0,_loc2_ - 1) + "...";
30 | }
31 | _loc2_ = _loc2_ + 1;
32 | }
33 | }
34 | static function scaleText()
35 | {
36 | var _loc7_ = arguments[0];
37 | var _loc2_ = arguments[1];
38 | var _loc12_ = _loc2_;
39 | var _loc11_ = arguments[2];
40 | var _loc9_ = arguments[3];
41 | if(_loc9_ == undefined)
42 | {
43 | _loc9_ = "left";
44 | }
45 | var _loc15_ = arguments[4];
46 | var _loc8_ = false;
47 | var _loc5_ = 0;
48 | while(_loc5_ < 3)
49 | {
50 | var _loc4_ = _loc2_.indexOf("<");
51 | if(_loc4_ == -1)
52 | {
53 | break;
54 | }
55 | var _loc3_ = _loc2_.indexOf(">");
56 | if(_loc3_ == -1)
57 | {
58 | break;
59 | }
60 | _loc8_ = true;
61 | var _loc6_ = _loc2_.substr(0,_loc4_) + _loc2_.substr(_loc3_ + 1);
62 | _loc2_ = _loc6_;
63 | _loc5_ = _loc5_ + 1;
64 | }
65 | var _loc13_ = _loc7_.getNewTextFormat();
66 | var _loc14_ = _loc13_.getTextExtent(_loc2_);
67 | var _loc10_ = _loc14_.textFieldWidth;
68 | _loc7_.autoSize = _loc9_;
69 | _loc7_.wordWrap = false;
70 | if(_loc10_ > _loc11_)
71 | {
72 | _loc7_._xscale = _loc11_ / _loc10_ * 100;
73 | }
74 | else
75 | {
76 | _loc7_._xscale = 100;
77 | }
78 | if(_loc8_ == true)
79 | {
80 | _loc7_.htmlText = _loc12_;
81 | }
82 | else
83 | {
84 | _loc7_.text = _loc2_;
85 | }
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/HudColourLite.as:
--------------------------------------------------------------------------------
1 | dynamic class com.rockstargames.ui.utils.HudColourLite
2 | {
3 | static var HUD_COLOUR_PURE_WHITE: Number = 0;
4 | static var HUD_COLOUR_WHITE: Number = 1;
5 | static var HUD_COLOUR_BLACK: Number = 2;
6 | static var HUD_COLOUR_FREEMODE: Number = 116;
7 | static var HUD_COLOUR_PAUSE_BG: Number = 117;
8 | static var HUD_COLOUR_BLUE: Number = 9;
9 | static var HUD_COLOUR_RED: Number = 6;
10 | static var HUD_COLOUR_NORTH_BLUE: Number = 134;
11 | var a;
12 | var b;
13 | var g;
14 | var r;
15 |
16 | function HudColourLite()
17 | {
18 | this.r = 255;
19 | this.g = 255;
20 | this.b = 255;
21 | this.a = 100;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/Localisation.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.Localisation
2 | {
3 | function Localisation()
4 | {
5 | }
6 | static function setTextWithTranslation(txtField, textLabel, scriptType, isHTML)
7 | {
8 | if(isHTML == undefined)
9 | {
10 | isHTML = false;
11 | }
12 | if(scriptType == undefined)
13 | {
14 | com.rockstargames.ui.game.GameInterface.call("SET_TEXT_WITH_TRANSLATION",com.rockstargames.ui.game.GameInterface.GENERIC_TYPE,textLabel,txtField,isHTML);
15 | }
16 | else
17 | {
18 | com.rockstargames.ui.game.GameInterface.call("SET_TEXT_WITH_TRANSLATION",scriptType,textLabel,txtField,isHTML);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/MathStar.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.MathStar
2 | {
3 | static var PI_OVER_180 = 0.017453292519943295;
4 | function MathStar()
5 | {
6 | }
7 | static function getRandomNumber(min, max)
8 | {
9 | var _loc1_ = Math.floor(Math.random() * (max - min + 1)) + min;
10 | return _loc1_;
11 | }
12 | static function toFixedRound(num, fractionDigits)
13 | {
14 | return com.rockstargames.ui.utils.MathStar.toFixed(num,fractionDigits,true);
15 | }
16 | static function toFixed(num, fractionDigits, round)
17 | {
18 | var _loc2_ = 1;
19 | var _loc1_ = 0;
20 | while(_loc1_ < fractionDigits)
21 | {
22 | _loc2_ = _loc2_ * 10;
23 | _loc1_ = _loc1_ + 1;
24 | }
25 | return (!round?Math.floor(num * _loc2_):Math.round(num * _loc2_)) / _loc2_;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/Perlin1D.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.Perlin1D
2 | {
3 | static var SIZE = 256;
4 | static var MASK = 255;
5 | function Perlin1D()
6 | {
7 | this.perm = new Array(com.rockstargames.ui.utils.Perlin1D.SIZE);
8 | var _loc2_ = 0;
9 | while(_loc2_ <= com.rockstargames.ui.utils.Perlin1D.SIZE)
10 | {
11 | this.perm[_loc2_] = _loc2_;
12 | _loc2_ = _loc2_ + 1;
13 | }
14 | this.reset();
15 | }
16 | function getValue(x)
17 | {
18 | var _loc3_ = 1;
19 | var _loc4_ = 1;
20 | var _loc5_ = 0;
21 | var _loc6_ = 0.5;
22 | var _loc2_ = 0;
23 | while(_loc2_ < this._numOctaves)
24 | {
25 | _loc3_ = _loc3_ * _loc6_;
26 | _loc5_ = _loc5_ + _loc3_ * (1 + this.noise(_loc4_ * x));
27 | _loc4_ = _loc4_ << 1;
28 | _loc2_ = _loc2_ + 1;
29 | }
30 | return _loc5_ + _loc3_ - 1;
31 | }
32 | function reset()
33 | {
34 | this.shuffleArray();
35 | this._numOctaves = 4;
36 | }
37 | function __set__numOctaves(_numOctaves)
38 | {
39 | this._numOctaves = _numOctaves;
40 | return this.__get__numOctaves();
41 | }
42 | function noise(x)
43 | {
44 | var _loc3_ = x & com.rockstargames.ui.utils.Perlin1D.MASK;
45 | x = x % 1;
46 | var _loc4_ = (3 - 2 * x) * x * x;
47 | return this.lerp(_loc4_,this.grad(this.perm[_loc3_],x),this.grad(this.perm[_loc3_ + 1],x - 1));
48 | }
49 | function grad(i, x)
50 | {
51 | return !(i & 1)?- x:x;
52 | }
53 | function lerp(t, a, b)
54 | {
55 | return a + t * (b - a);
56 | }
57 | function shuffleArray()
58 | {
59 | var _loc2_ = 0;
60 | while(_loc2_ < com.rockstargames.ui.utils.Perlin1D.MASK)
61 | {
62 | var _loc4_ = Math.random() * (com.rockstargames.ui.utils.Perlin1D.MASK - _loc2_) + _loc2_ + 1;
63 | var _loc3_ = this.perm.splice(_loc4_,1)[0];
64 | this.perm.splice(_loc2_,0,_loc3_);
65 | _loc2_ = _loc2_ + 1;
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/UIText.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.UIText
2 | {
3 | static var SIZE = 13;
4 | static var SIZE_GTAG = 18;
5 | function UIText()
6 | {
7 | }
8 | static function setSizedText(tf, str, autoShrink, autoSize, sizeOffset, sizeOverride)
9 | {
10 | tf.wordWrap = false;
11 | tf.multiline = false;
12 | tf.html = true;
13 | var _loc3_ = 0;
14 | if(sizeOffset != undefined)
15 | {
16 | _loc3_ = sizeOffset;
17 | }
18 | var _loc2_ = com.rockstargames.ui.utils.UIText.SIZE - _loc3_;
19 | if(sizeOverride != undefined)
20 | {
21 | _loc2_ = sizeOverride;
22 | }
23 | tf.htmlText = "" + str + "";
24 | tf.verticalAlign = "center";
25 | if(autoShrink)
26 | {
27 | tf.textAutoSize = "shrink";
28 | }
29 | else if(autoSize)
30 | {
31 | tf.autoSize = true;
32 | }
33 | }
34 | static function setDescText(tf, str, autoSize)
35 | {
36 | tf.wordWrap = true;
37 | tf.multiline = true;
38 | tf.html = true;
39 | tf.htmlText = "" + str + "";
40 | if(autoSize != undefined && autoSize == true)
41 | {
42 | tf.autoSize = true;
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/project/com/rockstargames/ui/utils/textfieldAutoScroll.as:
--------------------------------------------------------------------------------
1 | class com.rockstargames.ui.utils.textfieldAutoScroll extends MovieClip
2 | {
3 | var targetTF;
4 | var prevMaxscr;
5 | var maxscr;
6 | var direction = -1;
7 | var delay = 0;
8 | var delayTimeout = 150;
9 | function textfieldAutoScroll()
10 | {
11 | super();
12 | var _loc3_ = this;
13 | this.targetTF = _loc3_.txtString;
14 | this.prevMaxscr = this.targetTF.maxhscroll;
15 | }
16 | function updateDims()
17 | {
18 | var _loc3_ = this;
19 | this.resetDelay();
20 | this.targetTF = _loc3_.txtString;
21 | this.prevMaxscr = this.targetTF.maxhscroll;
22 | }
23 | function onEnterFrame()
24 | {
25 | this.maxscr = this.targetTF.maxhscroll;
26 | if (this.prevMaxscr != this.maxscr)
27 | {
28 | this.targetTF.hscroll = 0;
29 | this.direction = -1;
30 | this.delay = 0;
31 | this.prevMaxscr = this.maxscr;
32 | }
33 | if (this.maxscr > 4)
34 | {
35 | this.targetTF.hscroll = this.targetTF.hscroll + this.direction;
36 | var _loc2_ = this.targetTF.hscroll;
37 | if (_loc2_ == this.maxscr || _loc2_ == 0)
38 | {
39 | this.delay = this.delay + 1;
40 | }
41 | if (this.delay > this.delayTimeout)
42 | {
43 | this.direction = -this.direction;
44 | this.delay = 0;
45 | }
46 | }
47 | }
48 | function resetDelay()
49 | {
50 | this.delay = 0;
51 | }
52 | function setDelayTimeout(newDelayTimeout)
53 | {
54 | this.delayTimeout = newDelayTimeout;
55 | }
56 | }
--------------------------------------------------------------------------------
/project/gfx/utils/Delegate.as:
--------------------------------------------------------------------------------
1 | class gfx.utils.Delegate extends Object
2 | {
3 | function Delegate()
4 | {
5 | super();
6 | }
7 | static function create(obj, func)
8 | {
9 | var _loc2_ = function()
10 | {
11 | var _loc2_ = arguments.callee.target;
12 | var _loc3_ = arguments.callee.func;
13 | return _loc3_.apply(_loc2_,arguments);
14 | };
15 | _loc2_.target = obj;
16 | _loc2_.func = func;
17 | return _loc2_;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/project/mx/transitions/easing/Strong.as:
--------------------------------------------------------------------------------
1 | class mx.transitions.easing.Strong
2 | {
3 | static var version = "1.1.0.52";
4 | function Strong()
5 | {
6 | }
7 | static function easeIn(t, b, c, d)
8 | {
9 | return c * (t = t / d) * t * t * t * t + b;
10 | }
11 | static function easeOut(t, b, c, d)
12 | {
13 | return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
14 | }
15 | static function easeInOut(t, b, c, d)
16 | {
17 | if((t = t / (d / 2)) < 1)
18 | {
19 | return c / 2 * t * t * t * t * t + b;
20 | }
21 | return c / 2 * ((t = t - 2) * t * t * t * t + 2) + b;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/project/mx/utils/Delegate.as:
--------------------------------------------------------------------------------
1 | class mx.utils.Delegate extends Object
2 | {
3 | var func;
4 |
5 | function Delegate(f)
6 | {
7 | super();
8 | this.func = f;
9 | }
10 | function createDelegate(obj)
11 | {
12 | return mx.utils.Delegate.create(obj, this.func);
13 | }
14 | static function create(obj, func)
15 | {
16 | var _loc2_ = function ()
17 | {
18 | var _loc2_ = arguments.callee.target;
19 | var _loc3_ = arguments.callee.func;
20 | return _loc3_.apply(_loc2_, arguments);
21 | };
22 | _loc2_.target = obj;
23 | _loc2_.func = func;
24 | return _loc2_;
25 | }
26 | }
--------------------------------------------------------------------------------