// Token: 0x06000C33 RID: 3123 RVA: 0x00051D8C File Offset: 0x0004FF8C private void DoDropDownList(Rect position) { Rect rect = new Rect(position.x, position.y, position.width - position.height, position.height); Rect position2 = new Rect(position.x + position.width - position.height - 2f, position.y - 1f, position.height, position.height); if (GUI.Button(position2, GUIContent.none, BlueStonez.dropdown_button)) { this._isFilterDropDownOpen = !this._isFilterDropDownOpen; } if (this._isFilterDropDownOpen) { Rect position3 = new Rect(position.x, position.y + position.height, position.width - position.height, (float)(this._selectionsToShow.Length * 20 + 1)); GUI.Box(position3, string.Empty, BlueStonez.window_standard_grey38); this._filterScroll = GUITools.BeginScrollView(position3, this._filterScroll, new Rect(0f, 0f, position3.width - 20f, (float)(this._selectionsToShow.Length * 20)), false, false, true); for (int i = 0; i < this._selectionsToShow.Length; i++) { GUI.Label(new Rect(4f, (float)(i * 20), position3.width, 20f), this._selectionsToShow[i], BlueStonez.label_interparkbold_11pt_left); if (GUI.Button(new Rect(2f, (float)(i * 20), position3.width, 20f), string.Empty, BlueStonez.dropdown_list)) { this._isFilterDropDownOpen = false; this._selectedFilterIndex = i; this.UpdateWeaponStatList(); } } GUITools.EndScrollView(); } else if (GUITools.Button(rect, new GUIContent(this._selectionsToShow[this._selectedFilterIndex]), BlueStonez.label_dropdown)) { this._isFilterDropDownOpen = !this._isFilterDropDownOpen; } }
// Token: 0x060008DE RID: 2270 RVA: 0x00038D70 File Offset: 0x00036F70 public static Vector2 DoScrollArea(Rect position, GUIContent[] buttons, int buttonHeight, Vector2 listScroller) { float num = 0f; if (buttons.Length > 0) { num = (float)((buttons.Length - 1) * buttonHeight); } listScroller = GUITools.BeginScrollView(position, listScroller, new Rect(0f, 0f, position.width - 20f, num + (float)buttonHeight), false, false, true); int i; for (i = 0; i < buttons.Length; i++) { if ((float)((i + 1) * buttonHeight) > listScroller.y) { break; } } while (i < buttons.Length && (float)(i * buttonHeight) < listScroller.y + position.height) { GUI.Button(new Rect(0f, (float)(i * buttonHeight), position.width - 16f, (float)buttonHeight), buttons[i]); i++; } GUITools.EndScrollView(); return(listScroller); }
// Token: 0x06000ACE RID: 2766 RVA: 0x000452D0 File Offset: 0x000434D0 private void DrawMembersView(Rect rect) { GUI.BeginGroup(rect, BlueStonez.box_grey38); this.UpdateColumnWidth(); int num = 0; GUI.Box(new Rect((float)num, 0f, 25f, 25f), string.Empty, BlueStonez.box_grey50); num = 24; GUI.Box(new Rect((float)num, 0f, 200f, 25f), string.Empty, BlueStonez.box_grey50); GUI.Label(new Rect((float)(num + 5), 5f, 200f, 25f), LocalizedStrings.Player, BlueStonez.label_interparkmed_11pt_left); num = 223; GUI.Box(new Rect((float)num, 0f, 70f, 25f), string.Empty, BlueStonez.box_grey50); GUI.Label(new Rect((float)(num + 5), 5f, 70f, 25f), LocalizedStrings.Position, BlueStonez.label_interparkmed_11pt_left); num = 292; GUI.Box(new Rect((float)num, 0f, 80f, 25f), string.Empty, BlueStonez.box_grey50); GUI.Label(new Rect((float)(num + 5), 5f, 80f, 25f), LocalizedStrings.JoinDate, BlueStonez.label_interparkmed_11pt_left); num = 371; GUI.Box(new Rect((float)num, 0f, (float)this._statusWidth, 25f), string.Empty, BlueStonez.box_grey50); int num2 = 0; int num3 = Singleton <PlayerDataManager> .Instance.ClanMembersCount * 50; this._clanMembersScrollView = GUITools.BeginScrollView(new Rect(0f, 25f, rect.width, rect.height - 25f), this._clanMembersScrollView, new Rect(0f, 0f, rect.width - 20f, (float)num3), false, false, true); this._onlineMemberCount = 0; foreach (ClanMemberView member in Singleton <PlayerDataManager> .Instance.ClanMembers) { this.DrawClanMembers(new Rect(0f, (float)(50 * num2++ - 1), rect.width - 20f, 50f), member); } GUITools.EndScrollView(); GUI.EndGroup(); }
// Token: 0x06000C31 RID: 3121 RVA: 0x000519D8 File Offset: 0x0004FBD8 private void DrawPersonalStatsTab(Rect rect) { this._scrollGeneral = GUITools.BeginScrollView(rect, this._scrollGeneral, new Rect(0f, 0f, 340f, 915f), false, false, true); int num = Mathf.RoundToInt((rect.width - 80f) * 0.5f); PlayerPersonalRecordStatisticsView personalRecord = Singleton <PlayerDataManager> .Instance.ServerLocalPlayerStatisticsView.PersonalRecord; this.DrawGroupControl(new Rect(14f, 16f, rect.width - 40f, 100f), LocalizedStrings.LevelAndXP, BlueStonez.label_group_interparkbold_18pt); this.DrawXPMeter(new Rect(24f, 32f, rect.width - 60f, 64f)); this.DrawGroupControl(new Rect(14f, 142f, rect.width - 40f, 405f), LocalizedStrings.PersonalRecordsPerLife, BlueStonez.label_group_interparkbold_18pt); this.DrawPersonalStat(36, 158, num, LocalizedStrings.MostKills, personalRecord.MostSplats.ToString(), this._mostSplatsIcon); this.DrawPersonalStat(36, 234, num, LocalizedStrings.MostDamageDealt, personalRecord.MostDamageDealt.ToString(), this._mostDamageDealtIcon); this.DrawPersonalStat(36, 310, num, LocalizedStrings.MostHealthPickedUp, personalRecord.MostHealthPickedUp.ToString(), this._mostHealthPickedUpIcon); this.DrawPersonalStat(36, 386, num, LocalizedStrings.MostHeadshots, personalRecord.MostHeadshots.ToString(), this._mostHeadshotsIcon); this.DrawPersonalStat(36, 462, num, LocalizedStrings.MostConsecutiveSnipes, personalRecord.MostConsecutiveSnipes.ToString(), this._mostConsecutiveSnipesIcon); this.DrawPersonalStat(36 + num, 158, num, LocalizedStrings.MostXPEarned, personalRecord.MostXPEarned.ToString(), this._mostXPEarnedIcon); this.DrawPersonalStat(36 + num, 234, num, LocalizedStrings.MostDamageReceived, personalRecord.MostDamageReceived.ToString(), this._mostDamageReceivedIcon); this.DrawPersonalStat(36 + num, 310, num, LocalizedStrings.MostArmorPickedUp, personalRecord.MostArmorPickedUp.ToString(), this._mostArmorPickedUpIcon); this.DrawPersonalStat(36 + num, 386, num, LocalizedStrings.MostNutshots, personalRecord.MostNutshots.ToString(), this._mostNutshotsIcon); this.DrawGroupControl(new Rect(14f, 575f, this.statsPage.width - 40f, 328f), "Weapon Records (per Life)", BlueStonez.label_group_interparkbold_18pt); this.DrawPersonalStat(36, 593, num, LocalizedStrings.MostMeleeKills, personalRecord.MostMeleeSplats.ToString(), this._mostMeleeSplatsIcon); this.DrawPersonalStat(36, 669, num, LocalizedStrings.MostMachinegunKills, personalRecord.MostMachinegunSplats.ToString(), this._mostMachinegunSplatsIcon); this.DrawPersonalStat(36, 745, num, LocalizedStrings.MostShotgunKills, personalRecord.MostShotgunSplats.ToString(), this._mostShotgunSplatsIcon); this.DrawPersonalStat(36, 821, num, LocalizedStrings.MostSplattergunKills, personalRecord.MostSplattergunSplats.ToString(), this._mostSplattergunSplatsIcon); this.DrawPersonalStat(36 + num, 669, num, LocalizedStrings.MostCannonKills, personalRecord.MostCannonSplats.ToString(), this._mostCannonSplatsIcon); this.DrawPersonalStat(36 + num, 745, num, LocalizedStrings.MostSniperRifleKills, personalRecord.MostSniperSplats.ToString(), this._mostSniperSplatsIcon); this.DrawPersonalStat(36 + num, 821, num, LocalizedStrings.MostLauncherKills, personalRecord.MostLauncherSplats.ToString(), this._mostLauncherSplatsIcon); GUITools.EndScrollView(); }
// Token: 0x06000CDD RID: 3293 RVA: 0x0005856C File Offset: 0x0005676C private void DrawGameplayGroup() { GUI.skin = BlueStonez.Skin; int num = 950; this._scrollGameplay = GUITools.BeginScrollView(new Rect(1f, 2f, this._rect.width - 33f, this._rect.height - 54f - 50f), this._scrollGameplay, new Rect(0f, 0f, 560f, (float)num), false, false, true); Rect rect = new Rect(14f, 16f, 530f, (float)(num - 30)); this.DrawGroupControl(rect, LocalizedStrings.Gameplay, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(rect); float yOffset = 10f; yOffset = this.DrawGroupLabel(yOffset, "Character Level", "Your character level in UberStrike determines what items you have access to in the Shop. The higher your level, the more items you are able to get. Your character levels up by earning XP in the game.", false); yOffset = this.DrawGroupLabel(yOffset, "Earning XP", "There are several ways to gain XP in UberStrike. You'll be given the XP at the end of each round depending on how well you did in terms of kills and time spent in game.", false); yOffset = this.DrawGroupLabel(yOffset, "Splatting an Enemy", "When you deal the final blow to an enemy you get " + XpPointsUtil.Config.XpKill + " XP.", false); yOffset = this.DrawGroupLabel(yOffset, "Headshot Splats", "When you take down an enemy with a headshot you get " + XpPointsUtil.Config.XpHeadshot + " XP.", false); yOffset = this.DrawGroupLabel(yOffset, "Nutshot Splats", "When you take down an enemy with a nutshot you get " + XpPointsUtil.Config.XpNutshot + " XP.", false); yOffset = this.DrawGroupLabel(yOffset, "Melee Splats", "When you splat an enemy with a melee weapon you get " + XpPointsUtil.Config.XpSmackdown + " XP.", false); yOffset = this.DrawGroupLabel(yOffset, "Bonus", "You will also get bonus XP for time spent in game, and whether or not your team wins (in Team Deathmatch mode).", false); yOffset = this.DrawGroupLabel(yOffset, "Health", "Health is what you need to survive. You start every life with 100 health, and if it reaches zero, you are splatted and have to respawn. If you take damage, you can replenish your health by picking up health packs in game.", false); yOffset = this.DrawGroupLabel(yOffset, "Armor Points", "Armor Points are picked up in the game. They absorb a percentage of the damage you receive.", false); yOffset = this.DrawGroupLabel(yOffset, "Looking Around", "UberStrike is a 3D environment, which means you need to be able to look around. To make your character do this you need to move the mouse.", false); yOffset = this.DrawGroupLabel(yOffset, "Moving Around", "In UberStrike you use the WASD keys to control the movement of your character. This means that pressing the W key on your keyboard will cause your character to walk forwards. With just the W key and the mouse you can navigate your character to almost every location in the game environment. Pressing the S key will cause you to walk backwards, and pressing the A and D keys will cause you to move left and right (called 'strafing').The final key you'll need to know to get around in UberStrike is the spacebar. Pressing this key will cause your character to jump, which is essential for quickly getting around certain obstacles in the game. If you can get the hang of using the WASD keys to move, the spacebar to jump over obstacles, and the mouse to look around all at the same time, then you have mastered the basics of navigating a first person 3D environment. The use of these keys is common throughout many first person games, so practice them in UberStrike and you'll be a pro in no time.", false); yOffset = this.DrawGroupLabel(yOffset, "Selecting Different Weapons", "By scrolling the mouse wheel you can cycle through all of your available weapons. You can also choose specific weapons by pressing the number keys 1 through 4.", false); yOffset = this.DrawGroupLabel(yOffset, "Combat", "In UberStrike your character carries weapons that you can use to splat other players. You use your weapons by clicking the mouse buttons. Pressing the left mouse button will cause the weapon to shoot, called 'Primary Fire' and pressing the right mouse button will use the weapon's special functions, called 'Alternate Fire' Be aware that not all weapons have an Alternate Fire function, and for those that do, it is often a different function for each weapon. An example of an Alternate Fire function would be the zoom, which is the Alternate Fire for Sniper Rifle class weapons.", false); GUI.EndGroup(); GUITools.EndScrollView(); }
// Token: 0x06000AA0 RID: 2720 RVA: 0x00043D90 File Offset: 0x00041F90 public void DrawCommPane(Rect rect, ChatGroupPanel pane) { GUI.BeginGroup(rect); pane.WindowHeight = rect.height; float height = Mathf.Max(pane.WindowHeight, pane.ContentHeight); float num = 0f; pane.Scroll = GUITools.BeginScrollView(new Rect(0f, 0f, rect.width, pane.WindowHeight), pane.Scroll, new Rect(0f, 0f, rect.width - 17f, height), false, true, true); GUI.BeginGroup(new Rect(0f, 0f, rect.width, pane.WindowHeight + pane.Scroll.y)); int num2 = 0; string value = pane.SearchText.ToLower(); GUI.BeginGroup(new Rect(0f, num, rect.width - 17f, (float)(GameState.Current.Players.Count * 24))); foreach (GameActorInfo gameActorInfo in GameState.Current.Players.Values) { if (string.IsNullOrEmpty(value) || gameActorInfo.PlayerName.ToLower().Contains(value)) { this.GroupDrawUser((float)(num2++ *24), rect.width - 17f, gameActorInfo, true); } } GUI.EndGroup(); num += 24f + (float)(GameState.Current.Players.Count * 24); GUI.EndGroup(); GUITools.EndScrollView(); pane.ContentHeight = num; GUI.EndGroup(); }
// Token: 0x06000CC3 RID: 3267 RVA: 0x00056474 File Offset: 0x00054674 private void DrawMapSelection(Rect rect) { float width = (Singleton <MapManager> .Instance.Count <= 8) ? rect.width : (rect.width - 18f); int num = 0; foreach (UberstrikeMap uberstrikeMap in Singleton <MapManager> .Instance.AllMaps) { if (uberstrikeMap.IsVisible) { num++; } } this._scroll = GUITools.BeginScrollView(rect, this._scroll, new Rect(0f, 0f, rect.width - 18f, (float)(10 + num * 35)), false, false, true); int num2 = 0; foreach (UberstrikeMap uberstrikeMap2 in Singleton <MapManager> .Instance.AllMaps) { if (uberstrikeMap2.IsVisible) { if (this._mapSelected == null) { this.SelectMap(uberstrikeMap2); } GUIContent content = new GUIContent(uberstrikeMap2.Name); if (GUI.Toggle(new Rect(0f, (float)(num2 * 35), width, 35f), uberstrikeMap2 == this._mapSelected, content, BlueStonez.tab_large_left) && this._mapSelected != uberstrikeMap2) { AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.CreateGame, 0UL, 1f, 1f); this.SelectMap(uberstrikeMap2); } num2++; } } GUITools.EndScrollView(); }
// Token: 0x06000B5A RID: 2906 RVA: 0x00048508 File Offset: 0x00046708 private void DoMessages(Rect rect) { InboxThread inboxThread = InboxThread.Current; bool flag = inboxThread != null && inboxThread.IsAdmin; Rect position = new Rect(rect.x + 8f, rect.y + 2f, rect.width - 16f, rect.height - 8f); GUI.Box(position, GUIContent.none, BlueStonez.box_grey50); string text = LocalizedStrings.NoConversationSelected; if (inboxThread != null) { text = string.Format(LocalizedStrings.BetweenYouAndN, inboxThread.Name); if (GUI.Button(new Rect(position.x + 10f, position.y + 10f, 150f, 20f), "Delete Conversation", BlueStonez.buttondark_medium)) { InboxThread.Current = null; Singleton <InboxManager> .Instance.DeleteThread(inboxThread.ThreadId); } } GUI.contentColor = new Color(1f, 1f, 1f, 0.75f); GUI.Label(new Rect(position.x + 10f, position.y, position.width - 20f, 40f), text, BlueStonez.label_interparkmed_11pt_right); GUI.contentColor = Color.white; GUI.Label(new Rect(position.x + 4f, position.y + 40f, position.width - 8f, 1f), GUIContent.none, BlueStonez.horizontal_line_grey95); int num = 8; Rect position2 = new Rect(position.x + 8f, position.y + 48f, position.width - 8f, position.height - (float)((!flag) ? 90 : 49)); if (InboxThread.Current != null) { inboxThread.Scroll = GUITools.BeginScrollView(position2, inboxThread.Scroll, new Rect(0f, 0f, (float)this._messageViewWidth, (float)this._messageViewHeight), false, false, true); num = inboxThread.DrawMessageList(num, this._messageViewWidth, position2.height, inboxThread.Scroll.y); if ((float)num > position2.height) { this._messageViewHeight = num; this._messageViewWidth = (int)(position2.width - 22f); } else { this._messageViewHeight = (int)position2.height; this._messageViewWidth = (int)position2.width - 8; } GUITools.EndScrollView(); } else { GUI.Label(position2, "Select a message thread", BlueStonez.label_interparkbold_13pt); } if (!flag) { GUITools.PushGUIState(); GUI.enabled &= (InboxThread.Current != null); GUI.Box(new Rect(rect.x + 8f, rect.y + rect.height - 51f, rect.width - 16f, 45f), GUIContent.none, BlueStonez.window_standard_grey38); this.DoReply(new Rect(rect.x, rect.y + rect.height - 51f, rect.width, 45f)); GUITools.PopGUIState(); } }
// Token: 0x06000C6F RID: 3183 RVA: 0x00053AB8 File Offset: 0x00051CB8 private void OnGUI() { GUI.depth = 11; GUI.skin = BlueStonez.Skin; GUI.BeginGroup(new Rect((float)(Screen.width - 700) * 0.5f, (float)(Screen.height - GlobalUIRibbon.Instance.Height() - 480) * 0.5f, 700f, 480f), string.Empty, BlueStonez.window); GUI.Label(new Rect(10f, 20f, 670f, 48f), LocalizedStrings.ExploreMaps, BlueStonez.label_interparkbold_48pt); GUI.Label(new Rect(30f, 50f, 640f, 120f), LocalizedStrings.TrainingModeDesc, BlueStonez.label_interparkbold_13pt); GUI.Box(new Rect(12f, 160f, 670f, 20f), string.Empty, BlueStonez.box_grey50); GUI.Label(new Rect(16f, 160f, 120f, 20f), LocalizedStrings.ChooseAMap, BlueStonez.label_interparkbold_18pt_left); int num = 280; GUI.Box(new Rect(12f, 179f, 670f, (float)num), string.Empty, BlueStonez.window); int num2 = 0; if (Singleton <MapManager> .Instance.Count > 0) { num2 = (Singleton <MapManager> .Instance.Count - 1) / 4 + 1; } this._mapScroll = GUITools.BeginScrollView(new Rect(0f, 179f, 682f, (float)num), this._mapScroll, new Rect(0f, 0f, 655f, (float)(10 + 80 * num2)), false, false, true); Vector2 v = new Vector2(163f, 80f); int num3 = 0; foreach (UberstrikeMap uberstrikeMap in Singleton <MapManager> .Instance.AllMaps) { if (uberstrikeMap.IsVisible) { Color white = Color.white; int num4 = num3 / 4; int num5 = num3 % 4; Rect rect = new Rect(13f + (float)num5 * v.Width(), (float)num4 * v.y + 4f, v.x, v.y); if (GUI.Button(rect, string.Empty, BlueStonez.gray_background) && !GUITools.IsScrolling && !Singleton <SceneLoader> .Instance.IsLoading && uberstrikeMap != null) { Singleton <MapManager> .Instance.LoadMap(uberstrikeMap, delegate { Singleton <GameStateController> .Instance.SetGameMode(new TrainingRoom()); GameState.Current.Actions.JoinTeam(TeamID.NONE); }); } GUI.BeginGroup(rect); uberstrikeMap.Icon.Draw(rect.CenterHorizontally(2f, 100f, 64f), false); Vector2 vector = BlueStonez.label_interparkbold_11pt.CalcSize(new GUIContent(uberstrikeMap.Name)); GUI.contentColor = white; GUI.Label(rect.CenterHorizontally(rect.height - vector.y, vector.x, vector.y), uberstrikeMap.Name, BlueStonez.label_interparkbold_11pt); GUI.contentColor = Color.white; GUI.EndGroup(); num3++; } } GUITools.EndScrollView(); GUI.EndGroup(); GUI.enabled = true; }
// Token: 0x06000B59 RID: 2905 RVA: 0x0004828C File Offset: 0x0004648C private void DoThreads(Rect rect) { rect = new Rect(rect.x + 8f, rect.y, rect.width - 8f, rect.height - 8f); GUI.Box(rect, GUIContent.none, BlueStonez.window); if (Singleton <InboxManager> .Instance.ThreadCount > 0) { Vector2 threadScroll = GUITools.BeginScrollView(rect, this._threadScroll, new Rect(0f, 0f, (float)this._threadViewWidth, (float)this._threadViewHeight), false, false, true); bool flag = threadScroll.y > this._threadScroll.y; this._threadScroll = threadScroll; int num = 0; for (int i = 0; i < Singleton <InboxManager> .Instance.ThreadCount; i++) { InboxThread inboxThread = Singleton <InboxManager> .Instance.AllThreads[i]; if (string.IsNullOrEmpty(this._searchMessage) || inboxThread.Contains(this._searchMessage)) { num = inboxThread.DrawThread(num, this._threadViewWidth); GUI.Label(new Rect(4f, (float)num, (float)this._threadViewWidth, 1f), GUIContent.none, BlueStonez.horizontal_line_grey95); } } if (Singleton <InboxManager> .Instance.IsLoadingThreads) { GUI.Label(new Rect(0f, (float)num, rect.width, 30f), "Loading threads...", BlueStonez.label_interparkmed_11pt); num += 30; } else { if (Singleton <InboxManager> .Instance.IsNoMoreThreads) { GUI.contentColor = Color.gray; GUI.Label(new Rect(0f, (float)num, rect.width, 30f), "No more threads", BlueStonez.label_interparkmed_11pt); GUI.contentColor = Color.white; } num += 30; float num2 = Mathf.Max((float)num - rect.height, 0f); if (flag && this._threadScroll.y >= num2) { Singleton <InboxManager> .Instance.LoadNextPageThreads(); } } this._threadViewHeight = num; this._threadViewWidth = (int)(((float)this._threadViewHeight <= rect.height) ? (rect.width - 8f) : (rect.width - 22f)); GUITools.EndScrollView(); } else if (Singleton <InboxManager> .Instance.IsLoadingThreads) { GUI.Label(rect, "Loading threads...", BlueStonez.label_interparkbold_13pt); } else { GUI.Label(rect, LocalizedStrings.Empty, BlueStonez.label_interparkmed_11pt); } }
// Token: 0x06000C2E RID: 3118 RVA: 0x00051210 File Offset: 0x0004F410 private void DrawWeaponsStatsTab(Rect rect) { bool enabled = GUI.enabled; GUI.enabled = !this._isFilterDropDownOpen; GUI.changed = false; int num = UnityGUI.Toolbar(new Rect(2f, 5f, rect.width - 4f, 22f), this._selectedFilterIndex, this._selectionsToShow, 4, BlueStonez.tab_medium); if (GUI.changed) { AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ButtonClick, 0UL, 1f, 1f); } if (num != this._selectedFilterIndex) { this._selectedFilterIndex = num; this.UpdateWeaponStatList(); } string title = LocalizedStrings.WeaponPerformaceTotal; switch (num) { case 0: title = LocalizedStrings.BestWeaponByDamageDealt; break; case 1: title = LocalizedStrings.BestWeaponByKills; break; case 2: title = LocalizedStrings.BestWeaponByAccuracy; break; case 3: title = LocalizedStrings.BestWeaponByHits; break; } this._scrollGeneral = GUITools.BeginScrollView(new Rect(0f, 26f, rect.width - 2f, rect.height - 26f), this._scrollGeneral, new Rect(0f, 0f, 340f, 680f), false, false, true); this.DrawGroupControl(new Rect(14f, 16f, rect.width - 40f, 646f), title, BlueStonez.label_group_interparkbold_18pt); int num2 = Mathf.RoundToInt((this.statsPage.width - 80f) * 0.5f); int num3 = 0; foreach (KeyValuePair <float, string> keyValuePair in this._weaponStatList) { float barValue = (num != 2) ? ((this._maxWeaponStat <= 0f) ? 0f : (keyValuePair.Key / this._maxWeaponStat)) : (keyValuePair.Key / 100f); this.DrawWeaponStat(new Rect(36f, (float)(32 + num3 * 76), (float)num2, 60f), keyValuePair.Value, keyValuePair.Key, barValue, this._weaponIcons[keyValuePair.Value]); num3++; } GUITools.EndScrollView(); GUI.enabled = enabled; }
// Token: 0x06000AA1 RID: 2721 RVA: 0x00043F50 File Offset: 0x00042150 private void DoDialog(Rect rect, ChatGroupPanel pane, ChatDialog dialog) { if (dialog == null) { return; } if (dialog.CheckSize(rect) && !Input.GetMouseButton(0)) { this._dialogScroll.y = float.MaxValue; } GUI.BeginGroup(new Rect(rect.x, rect.y + Mathf.Clamp(rect.height - dialog._heightCache, 0f, rect.height), rect.width, rect.height)); int num = 0; float num2 = 0f; this._dialogScroll = GUITools.BeginScrollView(new Rect(0f, 0f, dialog._frameSize.x, dialog._frameSize.y), this._dialogScroll, new Rect(0f, 0f, dialog._contentSize.x, dialog._contentSize.y), false, false, true); foreach (InstantMessage instantMessage in dialog._msgQueue) { if (dialog.CanShow == null || dialog.CanShow(instantMessage.Context)) { if (num % 2 == 0) { GUI.Label(new Rect(0f, num2, dialog._contentSize.x - 1f, instantMessage.Height), GUIContent.none, BlueStonez.box_grey38); } if (GUI.Button(new Rect(0f, num2, dialog._contentSize.x - 1f, instantMessage.Height), GUIContent.none, BlueStonez.dropdown_list)) { this._selectedCmid = instantMessage.Cmid; } if (string.IsNullOrEmpty(instantMessage.PlayerName)) { GUI.color = new Color(0.6f, 0.6f, 0.6f); GUI.Label(new Rect(4f, num2, dialog._contentSize.x - 8f, 20f), instantMessage.Text, BlueStonez.label_interparkbold_11pt_left); } else { GUI.color = this.GetNameColor(instantMessage); GUI.Label(new Rect(4f, num2, dialog._contentSize.x - 8f, 20f), instantMessage.PlayerName + ":", BlueStonez.label_interparkbold_11pt_left); GUI.color = new Color(0.9f, 0.9f, 0.9f); GUI.Label(new Rect(4f, num2 + 20f, dialog._contentSize.x - 8f, instantMessage.Height - 20f), instantMessage.Text, BlueStonez.label_interparkmed_11pt_left); } GUI.color = new Color(1f, 1f, 1f, 0.5f); GUI.Label(new Rect(4f, num2, dialog._contentSize.x - 8f, 20f), instantMessage.TimeString, BlueStonez.label_interparkmed_10pt_right); GUI.color = Color.white; num2 += instantMessage.Height; num++; } } GUITools.EndScrollView(); dialog._heightCache = num2; GUI.EndGroup(); }
// Token: 0x06000D5C RID: 3420 RVA: 0x0005D534 File Offset: 0x0005B734 private void DoReceiverDropdownList(Rect rect) { Rect position = new Rect(rect.x + 120f, rect.y + 94f, 320f, this._rcvDropdownHeight); GUI.BeginGroup(position, BlueStonez.window); if (Singleton <PlayerDataManager> .Instance.FriendsCount > 0) { int num = 0; this._friendDropdownScroll = GUITools.BeginScrollView(new Rect(0f, 0f, position.width, position.height), this._friendDropdownScroll, new Rect(0f, 0f, this._rcvDropdownWidth, (float)(this._receiverCount * 24)), false, false, true); foreach (PublicProfileView publicProfileView in Singleton <PlayerDataManager> .Instance.MergedFriends) { if (this._msgReceiver.Length <= 0 || publicProfileView.Name.ToLower().Contains(this._msgReceiver.ToLower())) { Rect position2 = new Rect(0f, (float)(num * 24), position.width, 24f); if (GUI.enabled && position2.Contains(Event.current.mousePosition) && GUI.Button(position2, GUIContent.none, BlueStonez.box_grey50)) { this._msgRcvCmid = publicProfileView.Cmid; this._msgReceiver = publicProfileView.Name; this._showReceiverDropdownList = false; GUI.FocusControl("Message Content"); } GUI.Label(new Rect(8f, (float)(num * 24 + 4), position.width, position.height), publicProfileView.Name, BlueStonez.label_interparkmed_11pt_left); num++; } } this._receiverCount = num; if ((float)(this._receiverCount * 24) > position.height) { this._rcvDropdownWidth = position.width - 22f; } else { this._rcvDropdownWidth = position.width - 8f; } GUITools.EndScrollView(); } else { GUI.Label(new Rect(0f, 0f, position.width, position.height), LocalizedStrings.YouHaveNoFriends, BlueStonez.label_interparkmed_11pt); } GUI.EndGroup(); if (Event.current.type == EventType.MouseDown && !position.Contains(Event.current.mousePosition)) { this._showReceiverDropdownList = false; if (this._msgRcvCmid == 0) { this._msgReceiver = this._lastMsgRcvName; } } }
// Token: 0x06000D3A RID: 3386 RVA: 0x0005BD94 File Offset: 0x00059F94 private void DoControlsGroup() { GUITools.PushGUIState(); GUI.enabled = (this._targetMap == null); GUI.skin = BlueStonez.Skin; this._scrollControls = GUITools.BeginScrollView(new Rect(1f, 3f, this._rect.width - 33f, this._rect.height - 55f - 50f), this._scrollControls, new Rect(0f, 0f, this._rect.width - 50f, (float)(210 + this._keyCount * 21)), false, false, true); this.DrawGroupControl(new Rect(8f, 20f, this._rect.width - 65f, 65f), LocalizedStrings.Mouse, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(new Rect(8f, 20f, this._rect.width - 65f, 65f)); GUI.Label(new Rect(15f, 10f, 130f, 30f), LocalizedStrings.MouseSensitivity, BlueStonez.label_interparkbold_11pt_left); float num = GUI.HorizontalSlider(new Rect(155f, 17f, 200f, 30f), ApplicationDataManager.ApplicationOptions.InputXMouseSensitivity, 1f, 10f, BlueStonez.horizontalSlider, BlueStonez.horizontalSliderThumb); GUI.Label(new Rect(370f, 10f, 100f, 30f), ApplicationDataManager.ApplicationOptions.InputXMouseSensitivity.ToString("N1"), BlueStonez.label_interparkbold_11pt_left); if (num != ApplicationDataManager.ApplicationOptions.InputXMouseSensitivity) { ApplicationDataManager.ApplicationOptions.InputXMouseSensitivity = num; } bool flag = GUI.Toggle(new Rect(15f, 38f, 200f, 30f), ApplicationDataManager.ApplicationOptions.InputInvertMouse, LocalizedStrings.InvertMouseButtons, BlueStonez.toggle); if (flag != ApplicationDataManager.ApplicationOptions.InputInvertMouse) { ApplicationDataManager.ApplicationOptions.InputInvertMouse = flag; } GUI.EndGroup(); int num2 = 105; if (Input.GetJoystickNames().Length > 0) { this.DrawGroupControl(new Rect(8f, 105f, this._rect.width - 65f, 50f), LocalizedStrings.Gamepad, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(new Rect(8f, 105f, this._rect.width - 65f, 50f)); bool flag2 = GUI.Toggle(new Rect(15f, 15f, 400f, 30f), AutoMonoBehaviour <InputManager> .Instance.IsGamepadEnabled, Input.GetJoystickNames()[0], BlueStonez.toggle); if (flag2 != AutoMonoBehaviour <InputManager> .Instance.IsGamepadEnabled) { AutoMonoBehaviour <InputManager> .Instance.IsGamepadEnabled = flag2; } GUI.EndGroup(); num2 += 70; } else if (AutoMonoBehaviour <InputManager> .Instance.IsGamepadEnabled) { AutoMonoBehaviour <InputManager> .Instance.IsGamepadEnabled = false; } this.DrawGroupControl(new Rect(8f, (float)num2, this._rect.width - 65f, (float)(this._keyCount * 21 + 20)), LocalizedStrings.Keyboard, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(new Rect(8f, (float)num2, this._rect.width - 65f, (float)(this._keyCount * 21 + 20))); this.DoInputControlMapping(new Rect(5f, 5f, this._rect.width - 60f, (float)(this._keyCount * 21 + 20))); GUI.EndGroup(); GUITools.EndScrollView(); GUITools.PopGUIState(); }
// Token: 0x06000C51 RID: 3153 RVA: 0x0005307C File Offset: 0x0005127C private void DrawPointsTableContent(Rect scrollViewRect) { GUI.Box(scrollViewRect, GUIContent.none, BlueStonez.window_standard_grey38); if (this._pointTransactions.CurrentPage != null) { this._scrollControls = GUITools.BeginScrollView(scrollViewRect.Expand(0, -1), this._scrollControls, new Rect(0f, 0f, scrollViewRect.width - 17f, (float)this._pointTransactions.CurrentPage.PointDeposits.Count * 23f), false, false, true); float num = 0f; foreach (PointDepositView pointDepositView in this._pointTransactions.CurrentPage.PointDeposits) { GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Points, 0, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Points, 0, scrollViewRect.width), 23f), pointDepositView.DepositDate.ToString(TransactionHistory.DATE_FORMAT), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Points, 1, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Points, 1, scrollViewRect.width), 23f), pointDepositView.Points.ToString(), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Points, 2, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Points, 2, scrollViewRect.width), 23f), pointDepositView.DepositType.ToString(), BlueStonez.label_interparkmed_11pt); num += 23f; } GUITools.EndScrollView(); } }
// Token: 0x06000D13 RID: 3347 RVA: 0x0005A4C4 File Offset: 0x000586C4 private void DoPlayerModeration(Rect position) { int num = this._moderations.Count * 100; GUI.BeginGroup(position); GUI.Label(new Rect(0f, 0f, position.width, position.height), GUIContent.none, BlueStonez.box_grey50); this._moderationScroll = GUITools.BeginScrollView(new Rect(0f, 0f, position.width, position.height), this._moderationScroll, new Rect(0f, 1f, position.width - 20f, (float)num), false, false, true); int i = 0; int num2 = 0; while (i < this._moderations.Count) { this._moderations[i].Draw(this._moderations[i], new Rect(10f, (float)(num2++ *100), 360f, 100f)); i++; } GUITools.EndScrollView(); GUI.EndGroup(); }
// Token: 0x06000CDB RID: 3291 RVA: 0x00058350 File Offset: 0x00056550 private void DrawRuleGroup() { GUI.skin = BlueStonez.Skin; int num = 550; this._scrollItems = GUITools.BeginScrollView(new Rect(1f, 2f, this._rect.width - 33f, this._rect.height - 54f - 50f), this._scrollItems, new Rect(0f, 0f, 560f, (float)num), false, false, true); Rect rect = new Rect(14f, 16f, 530f, (float)(num - 30)); this.DrawGroupControl(rect, "In-game Rules", BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(rect); float yOffset = 10f; yOffset = this.DrawGroupLabel(yOffset, "Introduction", "Before we let you loose into the wild world of UberStrike, we've written a few simple guidelines that are in place to make your gaming experience as fun and fair as possible. Having a good time in a multiplayer game is a team effort! So do your part to help our community enjoy themselves;)\n\nWe hope that you have a pleasant stay in Uberstrike!", false); yOffset = this.DrawGroupLabel(yOffset, "Chatting", "1: No swearing or inappropriate content. Every time an inappropriate word is typed, three puppies and a kitten get caught in a revolving door.\n2: No \"Caps lock\" (using it for emphasis is okay). Please only emphazise with discretion and tact.\n3: No spamming. This includes baloney, rubbish, prattle, balderdash, hogwash, fatuity, drivel, mumbo jumbo, and canned precooked meat products. \n4: Do not personally attack any person(s). If you happen to be a hata, don't be hatin,' becasue the mods gonna be moderatin.' \n5: No backseat moderating. Believe it or not, we didn't add the convenient little 'Report Button' just because it looks pretty up there in the corner of the screen, although it does go nicely with that cute little gear symbol.\n6: Do not discuss topics that involve race, color, creed, religion, sex, or politics. It's not like we play games to get extra exposure to the many issues we face constantly in our daily lives.", false); yOffset = this.DrawGroupLabel(yOffset, "General", "1: Alternate or \"Second\" Accounts in-game ARE allowed, although we all love you just the way you are.\n2: No account sharing! Your account is yours, and if another player is caught using it, all parties will get banned. Sharing definitely isn't caring round these parts.\n3: Exploiting of glitches will not be tolerated. Cheating of any kind will result in a permanent ban, which may or may not include eternal banishment to the land of angry ankle-biting woodchucks.\n4: Be respectful to the Administrators/Moderators/QAs. These people work hard for you, so please show them respect. If you do, you might even get a cookie!\n5: Advertising of any content unrelated to UberStrike is not permitted.\n6: Please do not try to cleverly circumvent the rules listed here. Although some of these rules are flexible, they are here for a reason, and will be enforced.\n7: Join a server in your area. You will not get banned for lagging, although you may get kicked from the current game.\n8: Above all, use common sense. Studies have shown it works 87% better than no sense at all!\n9: Have fun!", false); GUI.EndGroup(); GUITools.EndScrollView(); }
// Token: 0x06000D39 RID: 3385 RVA: 0x0005B980 File Offset: 0x00059B80 private void DoAudioGroup() { float num = 130f; float width = (this._rect.height - 55f - 46f >= num) ? (this._rect.width - 50f) : (this._rect.width - 65f); this._scrollControls = GUITools.BeginScrollView(new Rect(1f, 1f, this._rect.width - 33f, this._rect.height - 55f - 46f), this._scrollControls, new Rect(0f, 0f, this._rect.width - 50f, num), false, false, true); this.DrawGroupControl(new Rect(8f, 20f, width, 130f), LocalizedStrings.Volume, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(new Rect(8f, 20f, width, 130f)); ApplicationDataManager.ApplicationOptions.AudioEnabled = !GUI.Toggle(new Rect(15f, 105f, 100f, 30f), !ApplicationDataManager.ApplicationOptions.AudioEnabled, LocalizedStrings.Mute, BlueStonez.toggle); if (GUI.changed) { GUI.changed = false; AutoMonoBehaviour <SfxManager> .Instance.EnableAudio(ApplicationDataManager.ApplicationOptions.AudioEnabled); } GUITools.PushGUIState(); GUI.enabled = ApplicationDataManager.ApplicationOptions.AudioEnabled; GUI.Label(new Rect(15f, 10f, 110f, 30f), LocalizedStrings.MasterVolume, BlueStonez.label_interparkbold_11pt_left); ApplicationDataManager.ApplicationOptions.AudioMasterVolume = GUI.HorizontalSlider(new Rect(145f, 17f, 200f, 30f), Mathf.Clamp01(ApplicationDataManager.ApplicationOptions.AudioMasterVolume), 0f, 1f, BlueStonez.horizontalSlider, BlueStonez.horizontalSliderThumb); if (GUI.changed) { GUI.changed = false; AutoMonoBehaviour <SfxManager> .Instance.UpdateMasterVolume(); } GUI.Label(new Rect(350f, 10f, 100f, 30f), (ApplicationDataManager.ApplicationOptions.AudioMasterVolume * 100f).ToString("f0") + " %", BlueStonez.label_interparkbold_11pt_left); GUI.Label(new Rect(15f, 40f, 110f, 30f), LocalizedStrings.MusicVolume, BlueStonez.label_interparkbold_11pt_left); ApplicationDataManager.ApplicationOptions.AudioMusicVolume = GUI.HorizontalSlider(new Rect(145f, 47f, 200f, 30f), Mathf.Clamp01(ApplicationDataManager.ApplicationOptions.AudioMusicVolume), 0f, 1f, BlueStonez.horizontalSlider, BlueStonez.horizontalSliderThumb); if (GUI.changed) { GUI.changed = false; AutoMonoBehaviour <SfxManager> .Instance.UpdateMusicVolume(); } GUI.Label(new Rect(350f, 40f, 100f, 30f), (ApplicationDataManager.ApplicationOptions.AudioMusicVolume * 100f).ToString("f0") + " %", BlueStonez.label_interparkbold_11pt_left); GUI.Label(new Rect(15f, 70f, 110f, 30f), LocalizedStrings.EffectsVolume, BlueStonez.label_interparkbold_11pt_left); ApplicationDataManager.ApplicationOptions.AudioEffectsVolume = GUI.HorizontalSlider(new Rect(145f, 77f, 200f, 30f), Mathf.Clamp01(ApplicationDataManager.ApplicationOptions.AudioEffectsVolume), 0f, 1f, BlueStonez.horizontalSlider, BlueStonez.horizontalSliderThumb); if (GUI.changed) { GUI.changed = false; AutoMonoBehaviour <SfxManager> .Instance.UpdateEffectsVolume(); } GUI.Label(new Rect(350f, 70f, 100f, 30f), (ApplicationDataManager.ApplicationOptions.AudioEffectsVolume * 100f).ToString("f0") + " %", BlueStonez.label_interparkbold_11pt_left); GUITools.PopGUIState(); GUI.EndGroup(); GUITools.EndScrollView(); }
// Token: 0x06000C54 RID: 3156 RVA: 0x00053448 File Offset: 0x00051648 private void DrawCreditsTableContent(Rect scrollViewRect) { GUI.Box(scrollViewRect, GUIContent.none, BlueStonez.window_standard_grey38); if (this._creditTransactions.CurrentPage != null) { this._scrollControls = GUITools.BeginScrollView(scrollViewRect.Expand(0, -1), this._scrollControls, new Rect(0f, 0f, scrollViewRect.width - 17f, (float)this._creditTransactions.CurrentPage.CurrencyDeposits.Count * 23f), false, false, true); float num = 0f; foreach (CurrencyDepositView currencyDepositView in this._creditTransactions.CurrentPage.CurrencyDeposits) { GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Credits, 0, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Credits, 0, scrollViewRect.width), 23f), TextUtility.ShortenText(currencyDepositView.TransactionKey, 20, true), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Credits, 1, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Credits, 1, scrollViewRect.width), 23f), currencyDepositView.DepositDate.ToString(TransactionHistory.DATE_FORMAT), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Credits, 2, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Credits, 2, scrollViewRect.width), 23f), currencyDepositView.CurrencyLabel + currencyDepositView.Cash.ToString("#0.00"), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Credits, 3, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Credits, 3, scrollViewRect.width), 23f), currencyDepositView.Credits.ToString(), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Credits, 4, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Credits, 4, scrollViewRect.width), 23f), currencyDepositView.Points.ToString(), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Credits, 5, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Credits, 5, scrollViewRect.width), 23f), TextUtility.ShortenText(currencyDepositView.BundleName, 14, true), BlueStonez.label_interparkmed_11pt); num += 23f; } GUITools.EndScrollView(); } }
// Token: 0x06000CDF RID: 3295 RVA: 0x000588D0 File Offset: 0x00056AD0 private void DrawCreditsGroup() { GUI.skin = BlueStonez.Skin; int num = 445; this._scrollItems = GUITools.BeginScrollView(new Rect(1f, 2f, this._rect.width - 33f, this._rect.height - 54f - 50f), this._scrollItems, new Rect(0f, 0f, 560f, (float)num), false, false, true); Rect rect = new Rect(14f, 16f, 530f, (float)(num - 30)); this.DrawGroupControl(rect, "About Uberstrike", BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(rect); float yOffset = 5f; yOffset = this.DrawGroupLabel(yOffset, "The Team", "Roman Anastasini, Alexander Bembel, Ludovic Bodin, Nad Chishtie, Jonny Farrell, Tommy Franken, Benjamin Joffe, Peter Jones, Lanmay Jung, Jamin Lee, Kate Li, Monika Michalak, Mark Parrish, Carlos Revelo Puentes, Shaun Lelacheur Sales, Dagmara Sitek, Tycho Terryn, Lee Turner, Graham Vanderplank, Alex Wang, Alice Zhao, Christina Zhao", false); yOffset = this.DrawGroupLabel(yOffset, "The Mods", "Akalron, Ejh16, Gray Mouser, GUY82, karanraj, ~Karolina~, Luna Lovegood, New York City 1863, P_U_M_B_A, Remi<3, Sam22, Simon1700, The Monster Mike, timewarp01, <3 woot", false); yOffset = this.DrawGroupLabel(yOffset, "The QA Testers", "Carlos Spicy Weine, -Cobalt-, Dark Drone, Deep Purple, Divv, Dracomine, Equi|ibrium, Final Snake, Freakin Emdjo, KXI System, Neofighter, Silence of Sound, -Skelemiere-, -Spiegel-, Syntix, tayw97, The Nesoi, The Silver Lining, TriggerSpazum", false); yOffset = this.DrawGroupLabel(yOffset, "The Legends", "Army of One, avanos, Buford T Justice, Celestial Divinity, Chingachgook, Ehnonimus, Enzo., Equi|ibrium, ~H3ADSH0T~, hendronimus, karanraj, King Haids, king_john, Leeness, Lev175, neel4d, niashy, Shruikan-, Snake Doctor, Stylezxy, The Alpha Male, THE ENDER, Tweex, Ultimus Maximus", false); yOffset = this.DrawGroupColourReferences(yOffset, "Chat Colour Reference"); GUI.EndGroup(); GUITools.EndScrollView(); }
// Token: 0x06000CDC RID: 3292 RVA: 0x0005844C File Offset: 0x0005664C private void DrawGeneralGroup() { GUI.skin = BlueStonez.Skin; int num = 490; this._scrollBasics = GUITools.BeginScrollView(new Rect(1f, 2f, this._rect.width - 33f, this._rect.height - 54f - 50f), this._scrollBasics, new Rect(0f, 0f, 560f, (float)num), false, false, true); Rect rect = new Rect(14f, 16f, 530f, (float)(num - 30)); this.DrawGroupControl(rect, LocalizedStrings.WelcomeToUS, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(rect); float yOffset = 10f; yOffset = this.DrawGroupLabel(yOffset, LocalizedStrings.Introduction, LocalizedStrings.IntroHelpDesc, false); yOffset = this.DrawGroupLabel(yOffset, LocalizedStrings.Home, LocalizedStrings.HomeHelpDesc, false); yOffset = this.DrawGroupLabel(yOffset, LocalizedStrings.Play, LocalizedStrings.PlayHelpDesc, false); yOffset = this.DrawGroupLabel(yOffset, LocalizedStrings.Profile, LocalizedStrings.ProfileHelpDesc, false); yOffset = this.DrawGroupLabel(yOffset, LocalizedStrings.Shop, LocalizedStrings.ShopHelpDesc, false); GUI.EndGroup(); GUITools.EndScrollView(); }
// Token: 0x06000B5D RID: 2909 RVA: 0x000489E8 File Offset: 0x00046BE8 private void DoRequests(Rect rect) { Rect position = new Rect(rect.x + 8f, rect.y, rect.width - 16f, rect.height - 8f); GUI.BeginGroup(position, BlueStonez.window); int num = 5; this._requestHeight = 180 + Singleton <InboxManager> .Instance.FriendRequests.Value.Count * 60 + Singleton <InboxManager> .Instance.IncomingClanRequests.Value.Count * 60 + Singleton <InboxManager> .Instance._outgoingClanRequests.Count * 60; this._requestWidth = (int)position.width - (((float)this._requestHeight <= position.height) ? 8 : 22); this._requestScroll = GUITools.BeginScrollView(new Rect(0f, (float)num, position.width, position.height), this._requestScroll, new Rect(0f, 0f, (float)this._requestWidth, (float)this._requestHeight), false, false, true); GUI.Box(new Rect(4f, 0f, (float)this._requestWidth, 50f), GUIContent.none, BlueStonez.box_grey38); GUI.Label(new Rect(14f, 0f, (float)(this._requestWidth - 10), 50f), string.Format(LocalizedStrings.FriendRequestsYouHaveNPendingRequests, Singleton <InboxManager> .Instance.FriendRequests.Value.Count.ToString(), (Singleton <InboxManager> .Instance.FriendRequests.Value.Count == 1) ? string.Empty : "s"), BlueStonez.label_interparkmed_18pt_left); num += 50; for (int i = 0; i < Singleton <InboxManager> .Instance.FriendRequests.Value.Count; i++) { this.DrawFriendRequestView(Singleton <InboxManager> .Instance.FriendRequests.Value[i], (float)num, this._requestWidth); GUI.Label(new Rect(25f, (float)(num + Mathf.RoundToInt(9f)), 32f, 32f), (i + 1).ToString(), BlueStonez.label_interparkbold_32pt); num += 60; } GUI.Box(new Rect(4f, (float)num, (float)this._requestWidth, 50f), GUIContent.none, BlueStonez.box_grey38); GUI.Label(new Rect(14f, (float)num, (float)(this._requestWidth - 10), 50f), string.Format("Clan Requests - You have {0} incoming invite{1}", Singleton <InboxManager> .Instance.IncomingClanRequests.Value.Count, (Singleton <InboxManager> .Instance.IncomingClanRequests.Value.Count == 1) ? string.Empty : "s"), BlueStonez.label_interparkmed_18pt_left); num += 55; for (int j = 0; j < Singleton <InboxManager> .Instance.IncomingClanRequests.Value.Count; j++) { this.DrawIncomingClanInvitation(Singleton <InboxManager> .Instance.IncomingClanRequests.Value[j], num, this._requestWidth); GUI.Label(new Rect(25f, (float)(num + Mathf.RoundToInt(9f)), 32f, 32f), (j + 1).ToString(), BlueStonez.label_interparkbold_32pt); num += 60; } GUI.Box(new Rect(4f, (float)num, (float)this._requestWidth, 50f), GUIContent.none, BlueStonez.box_grey38); GUI.Label(new Rect(14f, (float)num, (float)(this._requestWidth - 10), 50f), string.Format("Clan Requests - You have {0} outgoing invite{1}", Singleton <InboxManager> .Instance._outgoingClanRequests.Count, (Singleton <InboxManager> .Instance._outgoingClanRequests.Count == 1) ? string.Empty : "s"), BlueStonez.label_interparkmed_18pt_left); num += 55; for (int k = 0; k < Singleton <InboxManager> .Instance._outgoingClanRequests.Count; k++) { this.DrawOutgoingClanInvitation(Singleton <InboxManager> .Instance._outgoingClanRequests[k], num, this._requestWidth); GUI.Label(new Rect(25f, (float)(num + Mathf.RoundToInt(9f)), 32f, 32f), (k + 1).ToString(), BlueStonez.label_interparkbold_32pt); num += 60; } GUITools.EndScrollView(); GUI.EndGroup(); }
// Token: 0x06000D56 RID: 3414 RVA: 0x0005CDF4 File Offset: 0x0005AFF4 private int DoDropDownList(Rect position, Rect size, string[] items, ref string defaultText, bool canEdit) { int result = -1; Rect position2 = new Rect(position.x, position.y, position.width - position.height, position.height); Rect position3 = new Rect(position.x + position.width - position.height - 2f, position.y - 1f, position.height, position.height); bool enabled = GUI.enabled; GUI.enabled = (!this._isDropdownActive || this._currentActiveItems == items); if (canEdit) { defaultText = GUI.TextField(new Rect(position.x, position.y, position.width - position.height, position.height - 1f), defaultText, BlueStonez.textArea); } else { GUI.Label(position2, defaultText, BlueStonez.label_dropdown); } if (GUI.Button(position3, GUIContent.none, BlueStonez.dropdown_button)) { this._isDropdownActive = !this._isDropdownActive; this._currentActiveItems = items; } if (this._isDropdownActive && this._currentActiveItems == items) { Rect position4 = new Rect(position.x, position.y + position.height - 1f, size.width - 16f, size.height); GUI.Box(position4, string.Empty, BlueStonez.window_standard_grey38); this._listScroll = GUITools.BeginScrollView(position4, this._listScroll, new Rect(0f, 0f, position4.width - 20f, (float)(items.Length * 20)), false, false, true); for (int i = 0; i < items.Length; i++) { if (GUI.Button(new Rect(2f, (float)(i * 20 + 2), position4.width - 4f, 20f), items[i], BlueStonez.dropdown_listItem)) { this._isDropdownActive = false; result = i; } } GUITools.EndScrollView(); } GUI.enabled = enabled; return(result); }
// Token: 0x06000CDE RID: 3294 RVA: 0x00058788 File Offset: 0x00056988 private void DrawItemsGroup() { GUI.skin = BlueStonez.Skin; int num = 690; this._scrollItems = GUITools.BeginScrollView(new Rect(1f, 2f, this._rect.width - 33f, this._rect.height - 54f - 50f), this._scrollItems, new Rect(0f, 0f, 560f, (float)num), false, false, true); Rect rect = new Rect(14f, 16f, 530f, (float)(num - 30)); this.DrawGroupControl(rect, LocalizedStrings.Items, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(rect); float yOffset = 10f; yOffset = this.DrawGroupLabel(yOffset, "Weapons", "Your character gets access to weapons after you buy them. Weapons are divided into seven classes: Melee, Machine Guns, Shotguns, Sniper Rifles, Splatter Guns, Cannons, and Launchers. Each weapon class functions differently in game and is applicable in different combat contexts. For example, shotgun class weapons are generally better for close range battles, while the sniper rifle class weapons are better from a distance.", false); yOffset = this.DrawGroupLabel(yOffset, "Gear", "Gear items are used to customize your character and increase your in-game protection. They have an effect on the amount of damage that can be absorbed.", false); yOffset = this.DrawGroupLabel(yOffset, "Loadout", "The Loadout is a list of all items that you own that your character currently has equipped. Your loadout dictates your character's appearance in the game.", false); yOffset = this.DrawGroupLabel(yOffset, "Inventory", "The Inventory is a list of all the items that you own that your character does NOT have equipped.", false); yOffset = this.DrawGroupLabel(yOffset, "Shop", "The Shop is a place where you can buy items for standardized prices. It has the widest variety of items in UberStrike. Purchasing items in the shop is restricted according to your character level. If an item has a level that is above your character level, you cannot purchase it. You can increase your character level by playing the game and earning XP (see gameplay).", false); yOffset = this.DrawGroupLabel(yOffset, "Points", "Points are used to purchase items from the Shop. You gain them each time you play a round.", false); yOffset = this.DrawGroupLabel(yOffset, "Credits", "Credits are used to purchase powerful items from the Shop. You can obtain credits by clicking on the 'Get Credits' button in the top right hand corner of the screen.", false); GUI.EndGroup(); GUITools.EndScrollView(); }
// Token: 0x06000C4E RID: 3150 RVA: 0x00052BF0 File Offset: 0x00050DF0 private void DrawItemsTableContent(Rect scrollViewRect) { GUI.Box(scrollViewRect, GUIContent.none, BlueStonez.window_standard_grey38); if (this._itemTransactions.CurrentPage != null) { this._scrollControls = GUITools.BeginScrollView(scrollViewRect.Expand(0, -1), this._scrollControls, new Rect(0f, 0f, scrollViewRect.width - 17f, (float)this._itemTransactions.CurrentPage.ItemTransactions.Count * 23f), false, false, true); float num = 0f; foreach (ItemTransactionView itemTransactionView in this._itemTransactions.CurrentPage.ItemTransactions) { IUnityItem itemInShop = Singleton <ItemManager> .Instance.GetItemInShop(itemTransactionView.ItemId); string text = (itemInShop == null) ? string.Format("item[{0}]", itemTransactionView.ItemId) : TextUtility.ShortenText(itemInShop.Name, 20, true); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Items, 0, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Items, 0, scrollViewRect.width), 23f), itemTransactionView.WithdrawalDate.ToString(TransactionHistory.DATE_FORMAT), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Items, 1, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Items, 1, scrollViewRect.width), 23f), text, BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Items, 2, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Items, 2, scrollViewRect.width), 23f), itemTransactionView.Points.ToString(), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Items, 3, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Items, 3, scrollViewRect.width), 23f), itemTransactionView.Credits.ToString(), BlueStonez.label_interparkmed_11pt); GUI.Label(new Rect(this.GetColumnOffset(TransactionHistory.AccountArea.Items, 4, scrollViewRect.width), num, this.GetColumnWidth(TransactionHistory.AccountArea.Items, 4, scrollViewRect.width), 23f), ShopUtils.PrintDuration(itemTransactionView.Duration), BlueStonez.label_interparkmed_11pt); num += 23f; } GUITools.EndScrollView(); } }
// Token: 0x06000C8A RID: 3210 RVA: 0x00054530 File Offset: 0x00052730 private void DrawRankingListContent(Rect rect, float[] columnWidthPercent) { float num = rect.width; if (GameState.Current.Statistics.Data.MostValuablePlayers != null) { this._playerListViewHeight = (float)(GameState.Current.Statistics.Data.MostValuablePlayers.Count * 32); if (this._playerListViewHeight > rect.height) { num -= 20f; } } this._scroll = GUITools.BeginScrollView(rect, this._scroll, new Rect(0f, 0f, num, this._playerListViewHeight), false, false, true); float num2 = 0f; int num3 = 0; while (GameState.Current.Statistics.Data != null && num3 < GameState.Current.Statistics.Data.MostValuablePlayers.Count) { this.DrawStatsSummary(new Rect(0f, num2, num, 32f), num3, columnWidthPercent); num2 += 32f; num3++; } GUITools.EndScrollView(); }
// Token: 0x06000D38 RID: 3384 RVA: 0x0005B588 File Offset: 0x00059788 private void DoVideoGroup() { GUI.skin = BlueStonez.Skin; Rect position = new Rect(1f, 1f, this._rect.width - 33f, this._rect.height - 55f - 47f); Rect contentRect = new Rect(0f, 0f, (float)this._desiredWidth, this._rect.height + 200f - 55f - 46f - 20f); int num = 10; int num2 = 150; int num3 = this._screenResText.Length * 16 + 16; float width = position.width - 8f - 8f - 20f; if (!Application.isWebPlayer || this.showResolutions) { contentRect.height += (float)(this._screenResText.Length * 16); } this._scrollVideo = GUITools.BeginScrollView(position, this._scrollVideo, contentRect, false, false, true); GUI.enabled = true; int num4 = UnityGUI.Toolbar(new Rect(0f, 5f, position.width - 10f, 22f), this._currentQuality, this.qualitySet, this.qualitySet.Length, BlueStonez.tab_medium); if (num4 != this._currentQuality) { this.SetCurrentQuality(num4); AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ButtonClick, 0UL, 1f, 1f); } if (OptionsPanelGUI.HorizontalScrollbar(new Rect(8f, 30f, width, 30f), LocalizedStrings.TextureQuality, ref this._textureQuality, 0f, 5f)) { this.graphicsChanged = true; this.SetCurrentQuality(this.qualitySet.Length - 1); } if (OptionsPanelGUI.HorizontalGridbar(new Rect(8f, 60f, width, 30f), LocalizedStrings.VSync, ref this._vsync, this.vsyncSet)) { this.graphicsChanged = true; this.SetCurrentQuality(this.qualitySet.Length - 1); } if (OptionsPanelGUI.HorizontalGridbar(new Rect(8f, 90f, width, 30f), LocalizedStrings.AntiAliasing, ref this._antiAliasing, this.antiAliasingSet)) { this.graphicsChanged = true; this.SetCurrentQuality(this.qualitySet.Length - 1); } int num5 = 130; if (!ApplicationDataManager.IsMobile) { this._postProcessing = GUI.Toggle(new Rect(8f, (float)num5, width, 30f), ApplicationDataManager.ApplicationOptions.VideoPostProcessing, LocalizedStrings.ShowPostProcessingEffects, BlueStonez.toggle); if (this._postProcessing != ApplicationDataManager.ApplicationOptions.VideoPostProcessing) { this.graphicsChanged = true; this.SetCurrentQuality(this.qualitySet.Length - 1); } num5 += 30; } bool flag = GUI.Toggle(new Rect(8f, (float)num5, width, 30f), ApplicationDataManager.ApplicationOptions.VideoShowFps, LocalizedStrings.ShowFPS, BlueStonez.toggle); if (flag != ApplicationDataManager.ApplicationOptions.VideoShowFps) { ApplicationDataManager.ApplicationOptions.VideoShowFps = flag; GameData.Instance.VideoShowFps.Fire(); } num5 += 30; if (!Application.isWebPlayer || this.showResolutions) { this.DrawGroupControl(new Rect(8f, (float)num5, width, (float)num3), LocalizedStrings.ScreenResolution, BlueStonez.label_group_interparkbold_18pt); GUI.BeginGroup(new Rect(8f, (float)num5, width, (float)num3)); GUI.changed = false; Rect position2 = new Rect(10f, 10f, (float)(num + num2 * 2), (float)num3); int num6 = GUI.SelectionGrid(position2, ScreenResolutionManager.CurrentResolutionIndex, this._screenResText, 1, BlueStonez.radiobutton); if (num6 != ScreenResolutionManager.CurrentResolutionIndex) { if (this.INSTANT_SCREEN_RES_CHANGE) { ScreenResolutionManager.SetResolution(num6, Screen.fullScreen); } else { this.ShowScreenResChangeConfirmation(ScreenResolutionManager.CurrentResolutionIndex, num6); } } GUI.EndGroup(); } GUITools.EndScrollView(); }
// Token: 0x06000D12 RID: 3346 RVA: 0x0005A064 File Offset: 0x00058264 private void DoPlayerSelection(Rect position) { GUI.BeginGroup(position); GUI.Label(new Rect(0f, 0f, position.width, 18f), "SELECT PLAYER", BlueStonez.label_interparkbold_18pt_left); bool flag = !string.IsNullOrEmpty(this._filterText); GUI.SetNextControlName("Filter"); this._filterText = GUI.TextField(new Rect(0f, 26f, (!flag) ? position.width : (position.width - 26f), 24f), this._filterText, 20, BlueStonez.textField); if (!flag && GUI.GetNameOfFocusedControl() != "Filter") { GUI.color = new Color(1f, 1f, 1f, 0.3f); if (GUI.Button(new Rect(7f, 32f, position.width, 24f), "Enter player name", BlueStonez.label_interparkmed_11pt_left)) { GUI.FocusControl("Filter"); } GUI.color = Color.white; } if (flag && GUI.Button(new Rect(position.width - 24f, 26f, 24f, 24f), "x", BlueStonez.panelquad_button)) { this._filterText = string.Empty; GUIUtility.keyboardControl = 0; } string text = string.Format("PLAYERS ONLINE ({0})", this._playerCount); GUI.Label(new Rect(0f, 52f, position.width, 25f), GUIContent.none, BlueStonez.box_grey50); GUI.Label(new Rect(10f, 52f, position.width, 25f), text, BlueStonez.label_interparkbold_18pt_left); GUI.Label(new Rect(0f, 76f, position.width, position.height - 76f), GUIContent.none, BlueStonez.box_grey50); this._playerScroll = GUITools.BeginScrollView(new Rect(0f, 77f, position.width, position.height - 78f), this._playerScroll, new Rect(0f, 0f, position.width - 20f, (float)(this._playerCount * 20)), false, false, true); int num = 0; string value = this._filterText.ToLower(); ICollection <CommUser> collection; if (GameState.Current.IsMultiplayer) { ICollection <CommUser> gameUsers = Singleton <ChatManager> .Instance.GameUsers; collection = gameUsers; } else { collection = Singleton <ChatManager> .Instance.LobbyUsers; } ICollection <CommUser> collection2 = collection; foreach (CommUser commUser in collection2) { if (string.IsNullOrEmpty(value) || commUser.Name.ToLower().Contains(value)) { if ((num & 1) == 0) { GUI.Label(new Rect(1f, (float)(num * 20), position.width - 2f, 20f), GUIContent.none, BlueStonez.box_grey38); } if (this._selectedCommUser != null && this._selectedCommUser.Cmid == commUser.Cmid) { GUI.color = new Color(ColorScheme.UberStrikeBlue.r, ColorScheme.UberStrikeBlue.g, ColorScheme.UberStrikeBlue.b, 0.5f); GUI.Label(new Rect(1f, (float)(num * 20), position.width - 2f, 20f), GUIContent.none, BlueStonez.box_white); GUI.color = Color.white; } if (GUI.Button(new Rect(10f, (float)(num * 20), position.width, 20f), string.Concat(new object[] { "{", commUser.Cmid, "} ", commUser.Name }), BlueStonez.label_interparkmed_10pt_left)) { this._selectedCommUser = commUser; } GUI.color = Color.white; num++; } } this._playerCount = num; GUITools.EndScrollView(); GUI.EndGroup(); }
// Token: 0x06000D53 RID: 3411 RVA: 0x0005C6F0 File Offset: 0x0005A8F0 private void DrawReportPanel() { GUI.depth = 3; GUI.skin = BlueStonez.Skin; GUI.Label(new Rect(0f, 0f, this._rect.width, 56f), LocalizedStrings.ReportPlayerCaps, BlueStonez.tab_strip); GUI.color = Color.red; GUI.Label(new Rect(16f, this._rect.height - 40f, 300f, 30f), LocalizedStrings.ReportPlayerInfoMsg, BlueStonez.label_interparkbold_11pt_left_wrap); GUI.color = Color.white; Rect position = new Rect(17f, 55f, this._rect.width - 34f, this._rect.height - 100f); GUI.BeginGroup(position, string.Empty, BlueStonez.window_standard_grey38); GUI.Label(new Rect(16f, 20f, 100f, 18f), LocalizedStrings.ReportType, BlueStonez.label_interparkbold_18pt_left); GUI.Label(new Rect(16f, 50f, 100f, 18f), LocalizedStrings.PlayerNames, BlueStonez.label_interparkbold_18pt_left); GUI.Label(new Rect(16f, 80f, 100f, 18f), LocalizedStrings.Details, BlueStonez.label_interparkbold_18pt_left); GUI.enabled = !this._isDropdownActive; GUI.SetNextControlName("ReportDetail"); this._reason = GUI.TextArea(new Rect(16f, 110f, 290f, 120f), this._reason); GUI.Label(new Rect(125f, 50f, 180f, 22f), this._selectedPlayers, BlueStonez.textField); if (string.IsNullOrEmpty(this._selectedPlayers)) { GUI.color = Color.gray; GUI.Label(new Rect(130f, 52f, 180f, 22f), "(" + LocalizedStrings.NoPlayerSelected + ")"); GUI.color = Color.white; } GUI.enabled = true; int num = this.DoDropDownList(new Rect(125f, 20f, 183f, 22f), new Rect(135f, 50f, 194f, 84f), this._reportTypeTexts, ref this._abuse, false); if (num != -1) { this._selectedAbusion = num; this._abuse = this._reportTypeTexts[num]; } GUI.SetNextControlName("SearchUser"); this._searchPattern = GUI.TextField(new Rect(325f, 20f, 196f, 22f), this._searchPattern); if (string.IsNullOrEmpty(this._searchPattern) && GUI.GetNameOfFocusedControl() != "SearchUser") { GUI.color = Color.gray; GUI.Label(new Rect(333f, 22f, 196f, 22f), LocalizedStrings.SelectAPlayer); GUI.color = Color.white; } int num2 = 0; GUI.Label(new Rect(325f, 50f, 175f, 178f), GUIContent.none, BlueStonez.box_grey50); this._scrollUsers = GUITools.BeginScrollView(new Rect(325f, 50f, 195f, 178f), this._scrollUsers, new Rect(0f, 0f, 150f, (float)Mathf.Max(this._commUsersCount * 20, 178)), false, true, true); if (this._commUsers != null) { StringBuilder stringBuilder = new StringBuilder(); string value = this._searchPattern.ToLowerInvariant(); foreach (CommUser commUser in this._commUsers) { bool flag = this._reportedCmids.Contains(commUser.Cmid); if (flag) { stringBuilder.Append(commUser.Name).Append(", "); } if (commUser.Name.ToLowerInvariant().Contains(value)) { bool flag2 = GUI.Toggle(new Rect(2f, (float)(2 + num2 * 20), 171f, 20f), flag, commUser.Name, BlueStonez.dropdown_listItem); if (flag2 != flag) { this._reportedCmids.Clear(); if (!flag) { this._reportedCmids.Add(commUser.Cmid); } } num2++; } } this._commUsersCount = num2; this._selectedPlayers = stringBuilder.ToString(); } GUITools.EndScrollView(); if (this._commUsersCount == 0) { GUI.Label(new Rect(325f, 50f, 175f, 178f), LocalizedStrings.NoPlayersToReport, BlueStonez.label_interparkmed_11pt); } else if (num2 == 0) { GUI.Label(new Rect(325f, 50f, 175f, 178f), LocalizedStrings.NoMatchFound, BlueStonez.label_interparkmed_11pt); } GUI.EndGroup(); if (GUITools.Button(new Rect(this._rect.width - 125f, this._rect.height - 40f, 120f, 32f), new GUIContent(LocalizedStrings.CancelCaps), BlueStonez.button)) { PanelManager.Instance.ClosePanel(PanelType.ReportPlayer); this._commUsers = null; this._reportedCmids.Clear(); this._selectedPlayers = string.Empty; this._reason = string.Empty; this._selectedAbusion = -1; } GUI.enabled = (this._selectedAbusion >= 0 && !string.IsNullOrEmpty(this._selectedPlayers) && !string.IsNullOrEmpty(this._reason)); if (GUITools.Button(new Rect(this._rect.width - 125f - 125f, this._rect.height - 40f, 120f, 32f), new GUIContent(LocalizedStrings.SendCaps), BlueStonez.button_red)) { if (AutoMonoBehaviour <CommConnectionManager> .Instance.Client.IsConnected) { PopupSystem.ShowMessage(LocalizedStrings.ReportPlayerCaps, string.Format(LocalizedStrings.ReportPlayerWarningMsg, this._selectedPlayers), PopupSystem.AlertType.OKCancel, new Action(this.ConfirmAbuseReport), LocalizedStrings.Report, null, LocalizedStrings.Cancel, PopupSystem.ActionType.Negative); } else { PopupSystem.ShowMessage(LocalizedStrings.Error, LocalizedStrings.ReportPlayerErrorMsg, PopupSystem.AlertType.OK, null); } } }
// Token: 0x0600099F RID: 2463 RVA: 0x0003C7D4 File Offset: 0x0003A9D4 private Vector2 DoAllStats(Rect position, Vector2 scroll, List <GameActorInfo> players) { int num = 8; int num2 = 25; int num3 = 25; int num4 = 30; int num5 = 32; int num6 = (position.width <= 540f) ? 0 : 150; int num7 = (position.width <= 420f) ? 0 : 50; int num8 = (position.width <= 450f) ? 0 : 30; int num9 = (position.width <= 490f) ? 0 : 40; int num10 = 30; int num11 = 50; int num12 = Mathf.Clamp(Mathf.RoundToInt(position.width - 30f - (float)num - (float)num2 - (float)num3 - (float)num4 - (float)num5 - (float)num6 - (float)num10 - (float)num11 - (float)num7 - (float)num8 - (float)num9), 110, 300); GUI.BeginGroup(position, GUIContent.none, BlueStonez.box_overlay); int num13 = 10 + num + num2; GUI.Label(new Rect((float)num13, 10f, (float)num12, 18f), LocalizedStrings.Name, BlueStonez.label_interparkmed_18pt_left); num13 += num12; GUI.Label(new Rect((float)num13, 15f, (float)num4, 18f), LocalizedStrings.Kills, BlueStonez.label_interparkmed_11pt_left); num13 += num4; if (num7 > 0) { GUI.Label(new Rect((float)num13, 15f, (float)num7, 18f), LocalizedStrings.Deaths, BlueStonez.label_interparkmed_11pt_left); num13 += num7; } if (num8 > 0) { GUI.Label(new Rect((float)num13, 15f, (float)num8, 18f), LocalizedStrings.KDR, BlueStonez.label_interparkmed_11pt_left); num13 += num8; } GUI.Label(new Rect((float)num13, 10f, (float)num10, 18f), GUIContent.none, BlueStonez.label_interparkbold_16pt_left); num13 += num10; GUI.Label(new Rect((float)num13, 15f, (float)(num3 + 10), 18f), LocalizedStrings.Level, BlueStonez.label_interparkmed_11pt_left); num13 += num3; GUI.Label(new Rect((float)num13, 10f, (float)(num5 + num6), 18f), GUIContent.none, BlueStonez.label_interparkbold_16pt_left); num13 += num5 + num6; GUI.Label(new Rect(position.width - (float)num11, 10f, (float)num11, 18f), LocalizedStrings.Ping, BlueStonez.label_interparkmed_18pt_left); GUI.Label(new Rect(10f, 32f, position.width - 20f, 1f), GUIContent.none, BlueStonez.horizontal_line_grey95); scroll = GUITools.BeginScrollView(new Rect(10f, 36f, position.width - 20f, position.height - 45f), scroll, new Rect(0f, 0f, position.width - 40f, (float)(players.Count * 36)), false, false, true); int num14 = 0; List <string> list = new List <string>(); foreach (GameActorInfo gameActorInfo in players) { num13 = num; GUI.BeginGroup(new Rect(0f, (float)(num14 * 36), position.width, 36f)); if (gameActorInfo.Cmid == PlayerDataManager.Cmid) { GUI.color = new Color(1f, 1f, 1f, 0.3f); GUI.Box(new Rect(0f, 0f, position.width - 21f, 36f), GUIContent.none, BlueStonez.box_white_rounded); GUI.color = Color.white; } GUI.DrawTexture(new Rect((float)num13, 10f, 16f, 16f), UberstrikeIconsHelper.GetIconForChannel(gameActorInfo.Channel)); num13 += num2; Color contentColor = GUI.contentColor; GUI.color = Color.white; if (!GameState.Current.HasAvatarLoaded(gameActorInfo.Cmid)) { GUI.color = Color.gray; } else if (gameActorInfo.TeamID == TeamID.BLUE) { GUI.color = ColorScheme.HudTeamBlue; } else if (gameActorInfo.TeamID == TeamID.RED) { GUI.color = ColorScheme.HudTeamRed; } string text = (!string.IsNullOrEmpty(gameActorInfo.ClanTag)) ? ("[" + gameActorInfo.ClanTag + "] " + gameActorInfo.PlayerName) : gameActorInfo.PlayerName; GUI.Label(new Rect((float)num13, 0f, (float)num12, 36f), text, BlueStonez.label_interparkbold_11pt_left_wrap); GUI.color = contentColor; num13 += num12; GUI.Label(new Rect((float)num13, 0f, (float)num4, 36f), gameActorInfo.Kills.ToString(), BlueStonez.label_interparkbold_11pt_left); num13 += num4; if (num7 > 0) { GUI.Label(new Rect((float)num13, 0f, (float)num7, 36f), gameActorInfo.Deaths.ToString("N0"), BlueStonez.label_interparkbold_11pt_left); num13 += num7; } if (num8 > 0) { GUI.Label(new Rect((float)num13, 0f, (float)num8, 36f), this.GetKDR(gameActorInfo).ToString("N1"), BlueStonez.label_interparkbold_11pt_left); num13 += num8; } if (!gameActorInfo.IsAlive) { GUI.Label(new Rect((float)num13, 6f, 25f, 25f), CommunicatorIcons.SkullCrossbonesIcon, BlueStonez.label_interparkbold_11pt_right); } num13 += num10; GUI.Label(new Rect((float)(num13 + 5), 0f, (float)num3, 36f), gameActorInfo.Level.ToString(), BlueStonez.label_interparkbold_11pt_left); num13 += num3 + 5; IUnityItem itemInShop = Singleton <ItemManager> .Instance.GetItemInShop(gameActorInfo.CurrentWeaponID); if (itemInShop != null) { list.Add(itemInShop.View.PrefabName); itemInShop.DrawIcon(new Rect((float)num13, 2f, 32f, 32f)); num13 += num5; if (num6 > 0) { GUI.Label(new Rect((float)(num13 + 10), 0f, (float)num6, 36f), itemInShop.Name, BlueStonez.label_interparkbold_11pt_left); num13 += num6; } } else { num13 += num5; } GUI.Label(new Rect(position.width - 40f - (float)num11, 0f, (float)num11, 36f), gameActorInfo.Ping.ToString(), BlueStonez.label_interparkbold_11pt_right); GUI.EndGroup(); num14++; } GUITools.EndScrollView(); GUI.EndGroup(); return(scroll); }