2025-08-11 19:44:06 +02:00

57 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ImGuiNET;
using ImGuiNET.SampleProgram.XNA;
using Microsoft.Xna.Framework;
using skyscraper8.UI.ImGui.MonoGame.Screenhacks;
namespace moe.yo3explorer.skyscraper8.UI.MonoGame
{
internal class SkyscraperGame : BaseGame
{
private ScreenhackManager screenhackManager;
protected override void LoadContent()
{
screenhackManager = new ScreenhackManager();
screenhackManager.WantedScreenhackId = 1;
_gameObjects.Add(screenhackManager);
base.LoadContent();
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.White);
base.Draw(gameTime);
}
protected override void ImGuiLayout()
{
ImGui.BeginMainMenuBar();
if (ImGui.BeginMenu("Jobs"))
{
if (ImGui.MenuItem("Quit"))
{
Exit();
}
ImGui.EndMenu();
}
if (ImGui.BeginMenu("View"))
{
if (ImGui.MenuItem("Toggle Full Screen"))
{
_graphics.ToggleFullScreen();
}
ImGui.EndMenu();
}
ImGui.EndMainMenuBar();
base.ImGuiLayout();
}
}
}