protected override void Initialize() { orig_Initialize(); ImGuiState = new ImGuiXNAState(this); if (!File.Exists("imgui.ini")) { File.WriteAllText("imgui.ini", ""); } ImGuiState.BuildTextureAtlas(); }
public ModGUIHost(Game game) : base(game) { Instance = this; UpdateOrder = -100000; DrawOrder = 100000; ImGuiState = new ImGuiXNAState(game); if (!File.Exists("imgui.ini")) { File.WriteAllText("imgui.ini", ""); } ServiceHelper.AddComponent(new ModGUIPreHost(game)); }