Ejemplo n.º 1
0
 // Token: 0x06001CDC RID: 7388
 // RVA: 0x0009A888 File Offset: 0x00098A88
 public Class397(OsuString osuString_0, Class607 class607_1, string string_1, bool bool_2)
 {
     this.class607_0 = class607_1;
     this.double_0 = class607_1.Value;
     this.string_0 = string_1;
     this.bool_1 = bool_2;
     class607_1.imethod_2(new EventHandler(this.method_13));
     string string = Class41.GetString(osuString_0);
     Class533 class = new Class533(string, 12f, Vector2.get_Zero(), 1f, true, Color.get_White());
Ejemplo n.º 2
0
 // Token: 0x06001973 RID: 6515
 // RVA: 0x000793A8 File Offset: 0x000775A8
 public static void Initialize()
 {
     if (Class341.dictionary_0.Count > 0)
     {
         return;
     }
     Class341.smethod_2("osu!.cfg");
     Class341.smethod_2(Class341.smethod_1());
     Class115.class605_0 = Class341.ReadString("BeatmapDirectory", "Songs");
     Class115.class605_0.Value = Class34.smethod_15(Class115.class605_0.Value);
     if (!Directory.Exists(Class115.class605_0.Value))
     {
         Class115.class605_0.Value = "Songs";
         Class723.smethod_4(Class41.GetString(OsuString.ConfigManager_SongFolderNotFound));
     }
     Class331.class608_2 = Class341.smethod_10("VolumeUniversal", 100, 0, 100);
     Class331.class608_0 = Class341.smethod_10("VolumeEffect", 80, 0, 100);
     Class331.class608_1 = Class341.smethod_10("VolumeMusic", 80, 0, 100);
     Class341.class606_1 = Class341.smethod_9("AllowPublicInvites", true);
     Class341.class606_2 = Class341.smethod_9("AutoChatHide", true);
     Class341.class606_3 = Class341.smethod_9("AutomaticDownload", true);
     Class341.class606_0 = Class341.smethod_9("BlockNonFriendPM", false);
     Class341.class606_4 = Class341.smethod_9("Bloom", false);
     Class341.class606_5 = Class341.smethod_9("BloomSoftening", false);
     Class341.class606_6 = Class341.smethod_9("BossKeyFirstActivation", true);
     Class341.class606_7 = Class341.smethod_9("ChatAudibleHighlight", true);
     Class341.class605_9 = Class341.ReadString("ChatChannels", string.Empty);
     Class341.class606_9 = Class341.smethod_9("ChatFilter", false);
     Class341.class606_10 = Class341.smethod_9("ChatHighlightName", true);
     Class341.class605_10 = Class341.ReadString("ChatLastChannel", string.Empty);
     Class341.class606_11 = Class341.smethod_9("ChatRemoveForeign", false);
     Class341.class605_22 = Class341.smethod_8<Enum102>("ChatSortMode", Enum102.const_1, false);
     Class341.class606_12 = Class341.smethod_9("ComboBurst", true);
     Class341.class606_13 = Class341.smethod_9("ComboFire", false);
     Class341.class607_1 = Class341.smethod_10("ComboFireHeight", 3, -2147483648, 2147483647);
     Class341.class606_14 = Class341.smethod_9("ConfirmExit", false);
     Class341.class606_67 = Class341.smethod_9("AutoSendNowPlaying", true);
     Class341.class607_0 = Class341.ReadDouble("CursorSize", 1.0, 0.5, 2.0);
     Class341.class606_68 = Class341.smethod_9("AutomaticCursorSizing", false);
     Class341.class608_1 = Class341.smethod_10("DimLevel", 30, 0, 100);
     Class341.class608_13 = Class341.smethod_10("Display", 1, -2147483648, 2147483647);
     Class341.class606_15 = Class341.smethod_9("DisplayCityLocation", false);
     Class341.class606_16 = Class341.smethod_9("DistanceSpacingEnabled", true);
     Class341.class608_4 = Class341.smethod_10("EditorTip", 0, -2147483648, 2147483647);
     Class341.class606_17 = Class341.smethod_9("VideoEditor", Class341.class606_69);
     Class341.class606_18 = Class341.smethod_9("EditorDefaultSkin", false);
     Class341.class606_25 = Class341.smethod_9("FastEditor", false);
     Class341.class606_19 = Class341.smethod_9("EditorSnakingSliders", true);
     Class341.class606_20 = Class341.smethod_9("EditorHitAnimations", false);
     Class341.class606_21 = Class341.smethod_9("EditorFollowPoints", true);
     Class341.class606_22 = Class341.smethod_9("EditorStacking", true);
     Class341.class606_26 = Class341.smethod_9("ForceSliderRendering", false);
     Class341.class606_27 = Class341.smethod_9("FpsCounter", false);
     Class341.class605_0 = Class341.smethod_8<FrameSync>("FrameSync", FrameSync.Limit120, false);
     Class341.class605_1 = Class341.smethod_8<FrameSync>("FrameSyncGl", FrameSync.VSync, false);
     Class341.class605_11 = Class341.ReadString("GuideTips", "");
     Class341.class606_23 = Class341.smethod_9("CursorRipple", false);
     Class341.class605_13 = Class341.ReadString("HighlightWords", string.Empty);
     Class341.class606_28 = Class341.smethod_9("HighResolution", false);
     Class341.class606_29 = Class341.smethod_9("HitLighting", true);
     Class341.class606_30 = Class341.smethod_9("IgnoreBarline", false);
     Class341.class606_31 = Class341.smethod_9("IgnoreBeatmapSamples", false);
     Class341.class606_32 = Class341.smethod_9("IgnoreBeatmapSkins", false);
     Class341.class605_14 = Class341.ReadString("IgnoreList", string.Empty);
     Class341.class606_33 = Class341.smethod_9("Joystick", false);
     Class341.class606_34 = Class341.smethod_9("KeyOverlay", false);
     Class341.class605_3 = Class341.ReadString("Language", "unknown");
     Class68.class605_0 = Class341.smethod_8<PlayModes>("LastPlayMode", PlayModes.Osu, false);
     Class341.class605_15 = Class341.ReadString("LastVersion", string.Empty);
     Class341.class605_16 = Class341.ReadString("LastVersionPermissionsFailed", string.Empty);
     Class341.class606_35 = Class341.smethod_9("LoadSubmittedThread", true);
     Class341.class608_14 = Class341.smethod_10("LobbyPlayMode", -1, -2147483648, 2147483647);
     Class341.class606_75 = Class341.smethod_9("ShowInterface", true);
     Class341.class606_36 = Class341.smethod_9("LobbyShowExistingOnly", false);
     Class341.class606_37 = Class341.smethod_9("LobbyShowFriendsOnly", false);
     Class341.class606_38 = Class341.smethod_9("LobbyShowFull", false);
     Class341.class606_39 = Class341.smethod_9("LobbyShowInProgress", true);
     Class341.class606_40 = Class341.smethod_9("LobbyShowPassworded", true);
     Class341.class606_41 = Class341.smethod_9("LogPrivateMessages", false);
     Class341.class606_42 = Class341.smethod_9("LowResolution", false);
     Class341.class608_7 = Class341.smethod_10("ManiaSpeed", 12, 1, 40);
     Class341.class606_72 = Class341.smethod_9("UsePerBeatmapManiaSpeed", true);
     Class341.class606_73 = Class341.smethod_9("ManiaSpeedBPMScale", true);
     Class341.class608_8 = Class341.smethod_10("MenuTip", 0, -2147483648, 2147483647);
     Class341.class606_43 = Class341.smethod_9("MouseDisableButtons", false);
     Class341.class606_44 = Class341.smethod_9("MouseDisableWheel", false);
     Class341.class607_3 = Class341.ReadDouble("MouseSpeed", 1.0, 0.4, 6.0);
     Class341.class608_9 = Class341.smethod_10("Offset", 0, -300, 300);
     Class341.class607_4 = Class341.ReadDouble("ScoreMeterScale", 1.0, 0.5, 2.0);
     Class341.class607_2 = Class341.ReadDouble("DistanceSpacing", 0.8, 0.5, 32.0);
     Class341.class608_2 = Class341.smethod_10("EditorBeatDivisor", 1, 1, 16);
     Class341.class608_3 = Class341.smethod_10("EditorGridSize", 32, 4, 32);
     Class341.class608_5 = Class341.smethod_10("Height", 9999, Class115.bool_16 ? 0 : 240, 9999);
     Class341.class608_11 = Class341.smethod_10("Width", 9999, Class115.bool_16 ? 0 : 320, 9999);
     Class341.class608_6 = Class341.smethod_10("HeightFullscreen", 9999, 240, 9999);
     Class341.class608_0 = Class341.smethod_10("CustomFrameLimit", 240, Class115.bool_16 ? 30 : 240, 1000);
     if (Class341.class608_0.Value == 60 || Class341.class608_0.Value == 120)
     {
         Class341.class608_0.Value = 240;
     }
     Class341.class608_12 = Class341.smethod_10("WidthFullscreen", 9999, 320, 9999);
     Class341.class606_45 = Class341.smethod_9("MsnIntegration", false);
     Class341.class606_46 = Class341.smethod_9("MyPcSucks", false);
     Class341.class606_47 = Class341.smethod_9("NotifyFriends", true);
     Class341.class606_48 = Class341.smethod_9("NotifySubmittedThread", true);
     Class341.class606_50 = Class341.smethod_9("PopupDuringGameplay", true);
     Class341.class605_2 = Class341.smethod_8<ProgressBarTypes>("ProgressBarType", ProgressBarTypes.Pie, false);
     Class341.class605_5 = Class341.smethod_8<RankingType>("RankType", RankingType.Top, false);
     Class341.class608_10 = Class341.smethod_10("RefreshRate", 60, -2147483648, 2147483647);
     Class341.class605_18 = Class341.ReadString("Renderer", "d3d");
     Class341.class605_6 = Class341.smethod_8<ScaleMode>("ScaleMode", ScaleMode.WidescreenConservative, false);
     Class341.class606_53 = Class341.smethod_9("ScoreboardVisible", true);
     Class341.class605_7 = Class341.smethod_8<ScoreMeterType>("ScoreMeter", ScoreMeterType.Error, false);
     Class341.class605_8 = Class341.smethod_8<ScreenMode>("Fullscreen", ScreenMode.BorderlessWindow, false);
     Class341.class608_15 = Class341.smethod_10("ScreenshotId", 0, -2147483648, 2147483647);
     Class341.class606_76 = Class341.smethod_9("MenuSnow", false);
     Class341.class606_77 = Class341.smethod_9("MenuTriangles", true);
     Class341.class606_78 = Class341.smethod_9("SongSelectThumbnails", true);
     Class341.class605_4 = Class341.smethod_8<ImageFileFormat>("ScreenshotFormat", 1, false);
     Class341.class606_54 = Class341.smethod_9("ShowReplayComments", true);
     Class341.class606_55 = Class341.smethod_9("ShowSpectators", true);
     Class341.class606_56 = Class341.smethod_9("ShowStoryboard", true);
     Class341.class605_19 = Class341.ReadString("Skin", "Default");
     Class341.class606_59 = Class341.smethod_9("SkinSamples", true);
     Class341.class606_60 = Class341.smethod_9("SkipTablet", false);
     Class341.class606_61 = Class341.smethod_9("SnakingSliders", true);
     Class341.class606_62 = Class341.smethod_9("Tablet", false);
     Class341.class606_64 = Class341.smethod_9("UpdatePending", false);
     Class341.class605_21 = Class341.smethod_8<Enum103>("UserFilter", Enum103.const_0, false);
     Class341.class606_65 = Class341.smethod_9("UseSkinCursor", false);
     Class341.class606_66 = Class341.smethod_9("UseTaikoSkin", false);
     Class341.class606_69 = Class341.smethod_9("Video", true);
     Class341.class606_70 = Class341.smethod_9("Wiimote", false);
     Class341.class606_71 = Class341.smethod_9("YahooIntegration", false);
     Class341.class606_84 = Class341.smethod_9("MenuMusic", true);
     Class341.class606_85 = Class341.smethod_9("MenuVoice", true);
     Class341.class606_57 = Class341.smethod_9("MenuParallax", true);
     Class341.class606_79 = Class341.smethod_9("RawInput", false);
     Class341.class606_87 = Class341.smethod_9("AbsoluteToOsuWindow", Class341.class606_79.Value);
     Class341.class606_82 = Class341.smethod_9("ShowMenuTips", true);
     Class341.class606_86 = Class341.smethod_9("HiddenShowFirstApproach", true);
     Class341.class606_8 = Class341.smethod_9("ComboColourSliderBall", true);
     Class341.class606_83 = Class341.smethod_9("AlternativeChatFont", false);
     Class606 arg_A09_0 = Class341.class606_83;
     if (Class341.eventHandler_0 == null)
     {
         Class341.eventHandler_0 = new EventHandler(Class341.smethod_15);
     }
     arg_A09_0.imethod_2(Class341.eventHandler_0);
     Class341.class605_17 = Class341.ReadString("Password", string.Empty);
     Class341.class605_20 = Class341.ReadString("Username", string.Empty);
     Class341.class605_12 = Class341.ReadString("AudioDevice", string.Empty);
     Class605<string> arg_A6C_0 = Class341.class605_12;
     if (Class341.eventHandler_1 == null)
     {
         Class341.eventHandler_1 = new EventHandler(Class341.smethod_16);
     }
     arg_A6C_0.imethod_2(Class341.eventHandler_1);
     Class341.class605_25 = Class341.smethod_8<ReleaseStream>("_ReleaseStream", ReleaseStream.Stable, true);
     Class341.class608_17 = Class341.smethod_10("_UpdateFailCount", 0, -2147483648, 2147483647);
     Class605<ReleaseStream> arg_ABE_0 = Class341.class605_25;
     if (Class341.eventHandler_2 == null)
     {
         Class341.eventHandler_2 = new EventHandler(Class341.smethod_17);
     }
     arg_ABE_0.imethod_2(Class341.eventHandler_2);
     Class606 arg_AE5_0 = Class341.class606_67;
     if (Class341.eventHandler_3 == null)
     {
         Class341.eventHandler_3 = new EventHandler(Class341.smethod_18);
     }
     arg_AE5_0.imethod_2(Class341.eventHandler_3);
     Class606 arg_B0C_0 = Class341.class606_55;
     if (Class341.eventHandler_4 == null)
     {
         Class341.eventHandler_4 = new EventHandler(Class341.smethod_19);
     }
     arg_B0C_0.imethod_2(Class341.eventHandler_4);
     Class607 arg_B33_0 = Class341.class607_0;
     if (Class341.eventHandler_5 == null)
     {
         Class341.eventHandler_5 = new EventHandler(Class341.smethod_20);
     }
     arg_B33_0.imethod_2(Class341.eventHandler_5);
     Class341.class606_51 = Class341.smethod_9("SavePassword", !string.IsNullOrEmpty(Class341.class605_17));
     Class606 arg_B7B_0 = Class341.class606_51;
     if (Class341.eventHandler_6 == null)
     {
         Class341.eventHandler_6 = new EventHandler(Class341.smethod_21);
     }
     arg_B7B_0.imethod_2(Class341.eventHandler_6);
     Class341.class606_52 = Class341.smethod_9("SaveUsername", true);
     Class606 arg_BB2_0 = Class341.class606_52;
     if (Class341.eventHandler_7 == null)
     {
         Class341.eventHandler_7 = new EventHandler(Class341.smethod_22);
     }
     arg_BB2_0.imethod_2(Class341.eventHandler_7);
     Class606 arg_BD9_0 = Class341.class606_73;
     if (Class341.eventHandler_8 == null)
     {
         Class341.eventHandler_8 = new EventHandler(Class341.smethod_23);
     }
     arg_BD9_0.imethod_2(Class341.eventHandler_8);
     Class606 arg_C00_0 = Class341.class606_72;
     if (Class341.eventHandler_9 == null)
     {
         Class341.eventHandler_9 = new EventHandler(Class341.smethod_24);
     }
     arg_C00_0.imethod_2(Class341.eventHandler_9);
     if (!Class341.class606_51)
     {
         Class341.dictionary_0["Password"] = string.Empty;
     }
     if (!Class341.class606_52)
     {
         Class341.dictionary_0["Username"] = string.Empty;
     }
     Class341.class605_23 = Class341.smethod_8<TreeGroupMode>("TreeSortMode", TreeGroupMode.Search, false);
     Class341.class605_24 = Class341.smethod_8<TreeSortMode>("TreeSortMode2", TreeSortMode.Title, false);
     Class605<string> arg_C8A_0 = Class341.class605_13;
     if (Class341.eventHandler_10 == null)
     {
         Class341.eventHandler_10 = new EventHandler(Class341.smethod_25);
     }
     arg_C8A_0.imethod_2(Class341.eventHandler_10);
     Class605<string> arg_CB1_0 = Class341.class605_14;
     if (Class341.eventHandler_11 == null)
     {
         Class341.eventHandler_11 = new EventHandler(Class341.smethod_26);
     }
     arg_CB1_0.imethod_2(Class341.eventHandler_11);
     Class802.smethod_29();
     Class605<string> arg_CDE_0 = Class341.class605_3;
     if (Class341.eventHandler_12 == null)
     {
         Class341.eventHandler_12 = new EventHandler(Class341.smethod_27);
     }
     arg_CDE_0.imethod_2(Class341.eventHandler_12);
     Class341.class606_81 = new Class606(false);
     Class341.class606_80 = new Class606(false);
     Class605<string> arg_D1B_0 = Class341.class605_18;
     if (Class341.eventHandler_13 == null)
     {
         Class341.eventHandler_13 = new EventHandler(Class341.smethod_28);
     }
     arg_D1B_0.imethod_2(Class341.eventHandler_13);
     Class606 arg_D42_0 = Class341.class606_81;
     if (Class341.eventHandler_14 == null)
     {
         Class341.eventHandler_14 = new EventHandler(Class341.smethod_29);
     }
     arg_D42_0.imethod_2(Class341.eventHandler_14);
     Class606 arg_D69_0 = Class341.class606_80;
     if (Class341.eventHandler_15 == null)
     {
         Class341.eventHandler_15 = new EventHandler(Class341.smethod_30);
     }
     arg_D69_0.imethod_2(Class341.eventHandler_15);
     Class341.class605_18.method_0();
     Class605<string> arg_D9A_0 = Class341.class605_18;
     if (Class341.eventHandler_16 == null)
     {
         Class341.eventHandler_16 = new EventHandler(Class341.smethod_31);
     }
     arg_D9A_0.imethod_2(Class341.eventHandler_16);
     Class606 arg_DC1_0 = Class341.class606_79;
     if (Class341.eventHandler_17 == null)
     {
         Class341.eventHandler_17 = new EventHandler(Class341.smethod_32);
     }
     arg_DC1_0.imethod_2(Class341.eventHandler_17);
     Class606 arg_DE8_0 = Class341.class606_62;
     if (Class341.eventHandler_18 == null)
     {
         Class341.eventHandler_18 = new EventHandler(Class341.smethod_33);
     }
     arg_DE8_0.imethod_2(Class341.eventHandler_18);
     Class607 arg_E0F_0 = Class341.class607_3;
     if (Class341.eventHandler_19 == null)
     {
         Class341.eventHandler_19 = new EventHandler(Class341.smethod_34);
     }
     arg_E0F_0.imethod_2(Class341.eventHandler_19);
     Class606 arg_E36_0 = Class341.class606_27;
     if (Class341.eventHandler_20 == null)
     {
         Class341.eventHandler_20 = new EventHandler(Class341.smethod_35);
     }
     arg_E36_0.imethod_2(Class341.eventHandler_20);
     Class341.class606_74 = new Class606(false);
     Class605<ScreenMode> arg_E68_0 = Class341.class605_8;
     if (Class341.eventHandler_21 == null)
     {
         Class341.eventHandler_21 = new EventHandler(Class341.smethod_36);
     }
     arg_E68_0.imethod_2(Class341.eventHandler_21);
     Class341.class605_8.method_0();
     Class606 arg_E99_0 = Class341.class606_74;
     if (Class341.eventHandler_22 == null)
     {
         Class341.eventHandler_22 = new EventHandler(Class341.smethod_37);
     }
     arg_E99_0.imethod_2(Class341.eventHandler_22);
     Class605<FrameSync> arg_EC0_0 = Class341.class605_0;
     if (Class341.eventHandler_23 == null)
     {
         Class341.eventHandler_23 = new EventHandler(Class341.smethod_38);
     }
     arg_EC0_0.imethod_2(Class341.eventHandler_23);
     Class341.class605_26 = new Class605<FrameSync>(Class341.class606_80 ? Class341.class605_1 : Class341.class605_0);
     Class605<FrameSync> arg_F0E_0 = Class341.class605_26;
     if (Class341.eventHandler_24 == null)
     {
         Class341.eventHandler_24 = new EventHandler(Class341.smethod_39);
     }
     arg_F0E_0.imethod_2(Class341.eventHandler_24);
     Class606 arg_F35_0 = Class341.class606_4;
     if (Class341.eventHandler_25 == null)
     {
         Class341.eventHandler_25 = new EventHandler(Class341.smethod_40);
     }
     arg_F35_0.imethod_2(Class341.eventHandler_25);
     Class606 arg_F5C_0 = Class341.class606_5;
     if (Class341.eventHandler_26 == null)
     {
         Class341.eventHandler_26 = new EventHandler(Class341.smethod_41);
     }
     arg_F5C_0.imethod_2(Class341.eventHandler_26);
     bool bool_ = false;
     string a;
     if ((a = Class341.class605_3) != null && (a == "zh" || a == "ja" || a == "ko"))
     {
         bool_ = true;
     }
     Class341.class606_58 = Class341.smethod_9("ShowUnicode", bool_);
     Class341.class606_49 = Class341.smethod_9("PermanentSongInfo", false);
     Class341.class606_63 = Class341.smethod_9("Ticker", false);
     Class606 arg_FEC_0 = Class341.class606_63;
     if (Class341.eventHandler_27 == null)
     {
         Class341.eventHandler_27 = new EventHandler(Class341.smethod_42);
     }
     arg_FEC_0.imethod_2(Class341.eventHandler_27);
     Class606 arg_1013_0 = Class341.class606_2;
     if (Class341.eventHandler_28 == null)
     {
         Class341.eventHandler_28 = new EventHandler(Class341.smethod_43);
     }
     arg_1013_0.imethod_2(Class341.eventHandler_28);
     if (Class341.class606_46)
     {
         Class341.class606_13 = false;
         Class341.class606_4 = false;
         Class341.class606_5 = false;
         Class341.class606_29 = false;
         Class341.class606_12 = false;
         Class341.class606_61 = false;
     }
     if (Class341.class605_18 == "opengl" && Class341.class605_8 == ScreenMode.Fullscreen)
     {
         Class341.class605_8.Value = ScreenMode.BorderlessWindow;
     }
     if (Class115.bool_16)
     {
         if (Class115.bool_17)
         {
             Class341.class606_63.Value = true;
             Class341.class608_11.Value = (int)Tournament.vector2_1.X;
             Class341.class608_5.Value = (int)Tournament.vector2_1.Y;
         }
         else
         {
             Class341.class606_63.Value = false;
             Class341.class608_11.Value = (int)Tournament.smethod_1().X;
             Class341.class608_5.Value = (int)Tournament.smethod_1().Y;
         }
         Class341.class606_27.Value = false;
         Class341.class605_19.Value = "User";
         Class341.class606_12.Value = false;
         Class341.class606_13.Value = false;
         Class341.class606_56.Value = false;
         Class341.class605_8.Value = ScreenMode.Windowed;
         Class341.class605_18.Value = "d3d";
         Class341.class605_26.Value = FrameSync.Limit240;
         Class341.class606_47.Value = false;
         Class341.class606_7.Value = false;
         Class341.class606_50.Value = false;
         Class341.class606_3.Value = false;
         Class341.class605_7 = Class341.smethod_8<ScoreMeterType>("ScoreMeter", ScoreMeterType.Colour, false);
         Class341.class607_4 = Class341.ReadDouble("ScoreMeterScale", 1.0, 0.5, 1.7976931348623157E+308);
         Class341.class608_0.Value = Tournament.class43_0.GetValue<int>("fps", 60);
         Class341.class606_32.Value = true;
         Class341.class606_85.Value = false;
         Class331.class608_2.Value = 50;
     }
     Class795.Initialize(false);
     Class111.smethod_69();
 }