Ejemplo n.º 1
0
        private static unsafe void SubmitSystemsWindow(EntityAdmin admin)
        {
            ImGui.Begin("Vector Engine");

            string playLabel = HostHelper.PlayingGame ? "Stop" : "Play";

            if (ImGui.Button(playLabel))
            {
                HostHelper.TogglePlayGame();
            }
            ImGui.SameLine();
            ImGui.Checkbox("Tick Systems", ref GameLoop.TickSystems);

            ImGui.Separator();
            ImGui.PushFont(ImGuiController.BoldFont);
            ImGui.Text("Systems Order:");
            ImGui.PopFont();
            ImGui.BeginChild("scrolling", Vector2.Zero, false, ImGuiWindowFlags.HorizontalScrollbar);
            foreach (var system in admin.Systems)
            {
                ImGui.Text(system.GetType().ToString());
            }
            ImGui.EndChild();

            ImGui.End();
        }