public override void UpdateDiscord() { if (PulsarcDiscord.Presence.Details != DISCORD_DETAILS) { PulsarcDiscord.SetStatus("", DISCORD_DETAILS); } }
public override void UpdateDiscord() { string details = $"Finished {Beatmap.Title}"; string state = $"Grade: {scoreData.grade} | Score: {scoreData.score} | Acc = {Math.Round(scoreData.accuracy * 100, 2)}%"; PulsarcDiscord.SetStatus(details, state); }
/// <summary> /// Initialize most static objects and dependencies /// </summary> protected override void Initialize() { base.Initialize(); // Copy, if needed, the required assemblies (BASS) for 32 or 64bit CPUs NativeAssemblies.Copy(); // Initialize the logging tool for troubleshooting PulsarcLogger.Initialize(); // Initialize Discord Rich Presence PulsarcDiscord.Initialize(); // Set the default culture (Font formatting Locals) for this thread Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; // Start the thread listening for user input InputManager.StartThread(); // Start our time and frame-time tracker PulsarcTime.Start(); // Initialize FPS fpsDisplay = new FPS(Vector2.Zero); // Initialize the game camera gameCamera = new Camera(Graphics.GraphicsDevice.Viewport, (int)GetDimensions().X, (int)GetDimensions().Y, 1) { Pos = new Vector2(GetDimensions().X / 2, GetDimensions().Y / 2) }; // Start the song selection in the background to have music when entering the game SongScreen = new SongSelection(); SongScreen.Init(); // Create and display the default game screen // (Currently Main menu. In the future can implement an intro) Menu firstScreen = new Menu(); ScreenManager.AddScreen(firstScreen); cursor = new Cursor(); IsReadyToUpdate = true; }
public Menu() { View = new MenuView(this); PulsarcDiscord.SetStatus("", DISCORD_DETAILS); }