Beispiel #1
0
        protected override void LoadContent()
        {
            base.LoadContent();

            DrawActionScheduler.Schedule(() => {
                ImGuiState.BuildTextureAtlas();

                SpriteBatch = new SpriteBatch(GraphicsDevice);

                FinishedLoading = true;
            });
        }
Beispiel #2
0
        protected override void Initialize()
        {
            orig_Initialize();

            ImGuiState = new ImGuiXNAState(this);

            if (!File.Exists("imgui.ini"))
            {
                File.WriteAllText("imgui.ini", "");
            }

            ImGuiState.BuildTextureAtlas();
        }