// Token: 0x06000B56 RID: 2902 RVA: 0x00047F58 File Offset: 0x00046158 private void DoTitle(Rect rect) { GUI.BeginGroup(rect, BlueStonez.tab_strip_large); int num = UnityGUI.Toolbar(new Rect(1f, 32f, 508f, 40f), this._selectedTab, this._tabContents, this._tabContents.Length, BlueStonez.tab_large); if (GUI.changed) { GUI.changed = false; AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ButtonClick, 0UL, 1f, 1f); } if (num != this._selectedTab) { GUIUtility.keyboardControl = 0; this._selectedTab = num; } if (Singleton <InboxManager> .Instance.UnreadMessageCount > 0) { GUI.DrawTexture(new Rect(133f, 32f, 20f, 20f), this._newMessage); } if (Singleton <InboxManager> .Instance.IncomingClanRequests.Value.Count > 0 || Singleton <InboxManager> .Instance.FriendRequests.Value.Count > 0) { GUI.DrawTexture(new Rect(311f, 32f, 20f, 20f), this._newMessage); } GUI.EndGroup(); }
// Token: 0x06000C2B RID: 3115 RVA: 0x00050F98 File Offset: 0x0004F198 private void OnGUI() { GUI.depth = 11; GUI.skin = BlueStonez.Skin; this.statsPage = new Rect((float)Screen.width - this.statsPositionX, (float)GlobalUIRibbon.Instance.Height(), this.statsPositionX, (float)(Screen.height - GlobalUIRibbon.Instance.Height())); GUI.BeginGroup(this.statsPage, GUIContent.none, BlueStonez.window_standard_grey38); GUI.Label(new Rect(0f, 0f, this.statsPage.width, 56f), LocalizedStrings.YourProfileCaps, BlueStonez.tab_strip); GUI.changed = false; this._selectedStatsTab = UnityGUI.Toolbar(new Rect(0f, 34f, 260f, 22f), this._selectedStatsTab, this._statsTabs, 3, BlueStonez.tab_medium); if (GUI.changed) { if (this._selectedStatsTab == 2) { Singleton <TransactionHistory> .Instance.GetCurrentTransactions(); } AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ButtonClick, 0UL, 1f, 1f); } GUI.BeginGroup(new Rect(0f, 55f, this.statsPage.width, this.statsPage.height - 55f), string.Empty, BlueStonez.window_standard_grey38); switch (this._selectedStatsTab) { case 0: this.DrawPersonalStatsTab(new Rect(0f, 0f, this.statsPage.width, this.statsPage.height - 56f)); break; case 1: this.DrawWeaponsStatsTab(new Rect(0f, 0f, this.statsPage.width, this.statsPage.height - 56f)); break; case 2: this.DrawAccountStatsTab(new Rect(0f, 0f, this.statsPage.width, this.statsPage.height - 55f)); break; } GUI.EndGroup(); GUI.EndGroup(); }
// Token: 0x06000CDA RID: 3290 RVA: 0x000581E4 File Offset: 0x000563E4 private void DrawHelpPanel() { GUI.depth = 3; GUI.Label(new Rect(0f, 0f, this._rect.width, 56f), LocalizedStrings.HelpCaps, BlueStonez.tab_strip); this._selectedHelpTab = UnityGUI.Toolbar(new Rect(2f, 31f, 360f, 22f), this._selectedHelpTab, this._helpTabs, this._helpTabs.Length, BlueStonez.tab_medium); GUI.BeginGroup(new Rect(16f, 55f, this._rect.width - 32f, this._rect.height - 56f - 44f), string.Empty, BlueStonez.window_standard_grey38); switch (this._selectedHelpTab) { case 0: this.DrawGeneralGroup(); break; case 1: this.DrawGameplayGroup(); break; case 2: this.DrawItemsGroup(); break; case 3: this.DrawCreditsGroup(); break; } GUI.EndGroup(); if (GUI.Button(new Rect(this._rect.width - 136f, this._rect.height - 40f, 120f, 32f), new GUIContent(LocalizedStrings.OkCaps), BlueStonez.button)) { PanelManager.Instance.ClosePanel(PanelType.Help); } }
// Token: 0x06000D37 RID: 3383 RVA: 0x0005B508 File Offset: 0x00059708 public static bool HorizontalGridbar(Rect rect, string title, ref int value, string[] set) { int num = value; GUI.BeginGroup(rect); GUI.Label(new Rect(0f, 5f, rect.width, rect.height), title, BlueStonez.label_interparkbold_11pt_left); value = UnityGUI.Toolbar(new Rect(150f, 5f, rect.width - 200f, 30f), value, set, set.Length, BlueStonez.tab_medium); GUI.EndGroup(); return(value != num); }
// Token: 0x06000C4A RID: 3146 RVA: 0x000528E0 File Offset: 0x00050AE0 private void DrawTabs(Rect tabRect) { int num = UnityGUI.Toolbar(tabRect, this._selectedTab, this._tabs, this._tabs.Length, BlueStonez.tab_medium); if (num != this._selectedTab) { this._selectedTab = num; this.GetCurrentTransactions(); } }
// Token: 0x06000D32 RID: 3378 RVA: 0x0005AE40 File Offset: 0x00059040 private void DrawOptionsPanel() { GUI.SetNextControlName("OptionPanelHeading"); GUI.Label(new Rect(0f, 0f, this._rect.width, 56f), LocalizedStrings.OptionsCaps, BlueStonez.tab_strip); if (GUI.GetNameOfFocusedControl() != "OptionPanelHeading") { GUI.FocusControl("OptionPanelHeading"); } this._selectedOptionsTab = UnityGUI.Toolbar(new Rect(2f, 31f, this._rect.width - 5f, 22f), this._selectedOptionsTab, this._optionsTabs, this._optionsTabs.Length, BlueStonez.tab_medium); if (GUI.changed) { GUI.changed = false; AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ButtonClick, 0UL, 1f, 1f); } GUI.BeginGroup(new Rect(16f, 55f, this._rect.width - 32f, this._rect.height - 56f - 44f), string.Empty, BlueStonez.window_standard_grey38); switch (this._selectedOptionsTab) { case 0: this.DoControlsGroup(); break; case 1: this.DoAudioGroup(); break; case 2: this.DoVideoGroup(); break; } GUI.EndGroup(); GUI.enabled = !this._showWaterModeMenu; if (GUI.Button(new Rect(this._rect.width - 136f, this._rect.height - 40f, 120f, 32f), new GUIContent(LocalizedStrings.OkCaps), BlueStonez.button)) { ApplicationDataManager.ApplicationOptions.SaveApplicationOptions(); PanelManager.Instance.ClosePanel(PanelType.Options); } if (AutoMonoBehaviour <InputManager> .Instance.HasUnassignedKeyMappings) { GUI.contentColor = Color.red; GUI.Label(new Rect(166f, this._rect.height - 40f, this._rect.width - 136f - 166f, 32f), LocalizedStrings.UnassignedKeyMappingsWarningMsg, BlueStonez.label_interparkmed_11pt); GUI.contentColor = Color.white; } if (this._selectedOptionsTab == 0 && !ApplicationDataManager.IsMobile && GUITools.Button(new Rect(16f, this._rect.height - 40f, 150f, 32f), new GUIContent(LocalizedStrings.ResetDefaults), BlueStonez.button)) { AutoMonoBehaviour <InputManager> .Instance.Reset(); } else if (this._selectedOptionsTab == 2) { GUI.Label(new Rect(16f, this._rect.height - 40f, 150f, 32f), "FPS: " + (1f / Time.smoothDeltaTime).ToString("F1"), BlueStonez.label_interparkbold_16pt_left); } GUI.enabled = true; }
// 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: 0x06000DEE RID: 3566 RVA: 0x00060030 File Offset: 0x0005E230 private void OnGUI() { GUI.depth = 11; this._rect.x = (float)Screen.width - this._width; this._rect.y = (float)GlobalUIRibbon.Instance.Height(); this._rect.width = this._width; this._rect.height = (float)Screen.height - this._rect.y; GUI.skin = BlueStonez.Skin; GUI.BeginGroup(this._rect, GUIContent.none, BlueStonez.window_standard_grey38); GUI.Label(new Rect(0f, 0f, this._rect.width, 56f), this._title, BlueStonez.tab_strip); GUI.changed = false; this._currentGuiPageIndex = UnityGUI.Toolbar(new Rect(0f, 34f, (float)(140 * this._guiPageTabs.Length), 22f), this._currentGuiPageIndex, this._guiPageTabs, this._guiPageTabs.Length, BlueStonez.tab_medium); if (GUI.changed) { this.SetCurrentPage(this._currentGuiPageIndex); return; } GUI.EndGroup(); this._guiPages[this._currentGuiPageIndex].DrawGUI(new Rect(this._rect.x, this._rect.y + 57f, this._rect.width, this._rect.height - 56f)); GuiManager.DrawTooltip(); }
// Token: 0x06000D14 RID: 3348 RVA: 0x0005A5C8 File Offset: 0x000587C8 private void DrawModeration(ModerationPanelGUI.Moderation moderation, Rect position) { GUI.BeginGroup(position); GUI.Label(new Rect(21f, 0f, position.width, 30f), moderation.Title, BlueStonez.label_interparkbold_13pt); GUI.Label(new Rect(0f, 30f, 356f, 40f), moderation.Content, BlueStonez.label_itemdescription); GUI.Label(new Rect(0f, 0f, position.width, 1f), GUIContent.none, BlueStonez.horizontal_line_grey95); bool flag = GUI.Toggle(new Rect(0f, 7f, position.width, 16f), moderation.Selected, GUIContent.none, BlueStonez.radiobutton); if (flag && !moderation.Selected) { moderation.Selected = true; this.SelectModeration(moderation.ID); switch (moderation.SubSelectionIndex) { case 0: this._banDurationIndex = 1; break; case 1: this._banDurationIndex = 5; break; case 2: this._banDurationIndex = 30; break; case 3: this._banDurationIndex = 360; break; default: this._banDurationIndex = 1; break; } GUIUtility.keyboardControl = 0; } if (moderation.SubSelection != null) { GUI.enabled = moderation.Selected; GUI.changed = false; if (moderation.Selected) { moderation.SubSelectionIndex = UnityGUI.Toolbar(new Rect(0f, position.height - 25f, position.width, 20f), moderation.SubSelectionIndex, moderation.SubSelection, moderation.SubSelection.Length, BlueStonez.panelquad_toggle); } else { UnityGUI.Toolbar(new Rect(0f, position.height - 25f, position.width, 20f), -1, moderation.SubSelection, moderation.SubSelection.Length, BlueStonez.panelquad_toggle); } if (GUI.changed) { switch (moderation.SubSelectionIndex) { case 0: this._banDurationIndex = 1; break; case 1: this._banDurationIndex = 5; break; case 2: this._banDurationIndex = 30; break; case 3: this._banDurationIndex = 360; break; default: this._banDurationIndex = 1; break; } } GUI.enabled = true; } GUI.EndGroup(); }
// Token: 0x06000919 RID: 2329 RVA: 0x00007AD5 File Offset: 0x00005CD5 public static int Toolbar(Rect position, int selected, GUIContent[] contents, GUIStyle style) { return(UnityGUI.Toolbar(position, selected, contents, contents.Length, style)); }
// Token: 0x06000918 RID: 2328 RVA: 0x00007AC3 File Offset: 0x00005CC3 public static int Toolbar(Rect position, int selected, string[] contents, int length, GUIStyle style) { return(UnityGUI.Toolbar(position, selected, UnityGUI.Temp(contents), length, style)); }
// 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(); }