Runner-Ziele: VM und HostRunner targets: VM and host

Skizze zu den Runner-Zielen: Man sieht nicht immer, wohin eine Aktion wirkt. Drei Varianten zum Umschalten. Alles ist klickbar: Starten, Stoppen, Chips, Spiel-Inspektor, „In Szene übernehmen“. Mit der Maus über einen Knopf fahren: Die Statuszeile unten links nennt dann das Ziel. Die Tasten F9 Umschalt+F9 Strg+F9 Strg+F2 Strg+S gehen auch. Sketch of the runner targets: it is not always obvious where an action takes effect. Three variants to switch between. Everything is clickable: start, stop, chips, game inspector, "Apply to scene". Hover over a button and the status bar at the bottom left names its target. The keys F9 Shift+F9 Ctrl+F9 Ctrl+F2 Ctrl+S work as well.

F9
ISOlDE · Vulkaninsel–☐✕
  • Vulkaninsel.isoproj
  • Scenes
  • Vulkaninsel.scene
  • Startwiese.scene
  • Units
  • Vulkaninsel.Game.pas
  • Content
VM · Host · IDE

Die drei VariantenThe three variants

1 Feste Zielfarbe: VM türkis, Host violett1 Fixed target color: VM teal, host violet Jedes Ziel hat eine eigene Farbe, und alles, was auf ein Ziel wirkt, trägt sie: Umschalter, Play, Stop, fps-Chip, Inspektor-Kopf, Statuszeile, Log-Zeilen. Ein Umschalter VM | Host bestimmt das aktive Ziel; Stop, Inspektor und fps folgen ihm, jeder Start macht sein Ziel aktiv. Each target has its own color, and everything that acts on a target carries it: selector, play, stop, fps chip, inspector header, status bar, log lines. A VM | Host selector sets the active target; stop, inspector and fps follow it, and every start makes its target active.
2 Zwei Leisten2 Two bars Jedes Ziel bekommt in der Reiterzeile eine eigene kleine Leiste mit Zustand, fps, Start und Stop. Der Inspektor hat oben Reiter VM | Host, so wird nie etwas „erraten“, kostet aber viel Platz in der Reiterzeile. Each target gets its own small bar in the tab row with state, fps, start and stop. The inspector has VM | Host tabs on top, so nothing is ever "guessed", but it takes a lot of room in the tab row.
3 Ziel am Befehl3 Target on the command Das Band bleibt wie bisher, ohne Zielfarben. Dafür trägt jeder Knopf ein Etikett (▶ VM, ■ Host, → Szene, lokal) und die Statuszeile nennt beim Zeigen das Ziel. Kleinster Umbau, aber Etiketten liest man, eine Farbe sieht man. The ribbon stays as before, without target colors. Instead every button carries a label (▶ VM, ■ Host, → Scene, local) and the status bar names the target on hover. Smallest change, but labels have to be read while a color is seen at a glance.
Blau = IDEBlue = IDE In allen Varianten: Aktionen ohne Runner (Übersetzen, Speichern, „In Szene übernehmen“) zeigen „→ Szene“ oder „lokal“ in der Farbe der IDE. Grün/Rot bleiben Play/Stop, Bernstein bleibt Übersetzen. In all variants: actions without a runner (compile, save, "Apply to scene") show "→ Scene" or "local" in the IDE color. Green/red stay play/stop, amber stays compile.

Ausgangslage: was mehrdeutig warStarting point: what was ambiguous

  • Play in der Ecke und F9 starten immer in der VM. Die Ecke sagt das nicht; der Host geht nur über Umschalt+F9 oder das Band.Play in the corner and F9 always start in the VM. The corner does not say so; the host is only reachable via Shift+F9 or the ribbon.
  • Stop (Strg+F2) hält „zuerst den lokalen, sonst den Host“ an. Welcher es war, sieht man erst danach.Stop (Ctrl+F2) halts "the local one first, otherwise the host". Which one it was only shows afterwards.
  • Der fps-Chip zeigt „lokal vor Host“, ohne Namen. Laufen beide, steht dort die VM, auch wenn gerade auf dem Host gemessen wird.The fps chip shows "local before host", without a name. If both run, it shows the VM, even when the host is the one being measured.
  • Der Inspektor wählt sein Ziel selbst nach Punkten: Spiel vor Testszene vor verbunden, bei Gleichstand der letzte Start, dann die VM. Ein Klick wechselt nur, wenn beide verbunden sind.The inspector picks its target by score: game before test scene before connected, on a tie the last start, then the VM. A click only switches if both are connected.
  • Punktfarben: im Chip grau/grün/blau/gelb (blau = Spiel läuft), im Inspektor-Kopf nur grün/grau. Dieselbe Farbe heißt an zwei Stellen etwas anderes.Dot colors: in the chip gray/green/blue/yellow (blue = game running), in the inspector header only green/gray. The same color means different things in two places.
  • „In Szene übernehmen“ schreibt in die offene Szene der IDE, nicht in den Runner. Das steht nur im Hinweistext darunter."Apply to scene" writes into the scene open in the IDE, not into the runner. That was only stated in the note below it.

EntwurfsentscheidungenDesign decisions

  1. F9-BelegungF9 bindingF9 fest auf die VM und Umschalt+F9 fest auf den Host. Die Taste bleibt im Kopf gleich; das aktive Ziel steuert nur Stop, Inspektor und fps. Die Maus-Play in der Ecke startet auf dem aktiven Ziel und zeigt es an. (Umschalter oben bei Variante 1)F9 fixed to the VM and Shift+F9 fixed to the host. The key stays the same in your head; the active target only controls stop, inspector and fps. The mouse play button in the corner starts on the active target and displays it. (Switch at the top for variant 1)
  2. FarbenColorsVM türkis, Host violett. Grün, Rot, Bernstein und Blau sind schon belegt; Türkis und Violett sind klar zu trennen.VM teal, host violet. Green, red, amber and blue are already taken; teal and violet are clearly distinguishable.
  3. Inspektor-ZielInspector targetEr folgt dem aktiven Ziel: jeder Start macht sein Ziel aktiv, ein Klick auf VM | Host wählt um. Kein Punkte-Automatismus mehr.It follows the active target: every start makes its target active, a click on VM | Host switches. No more scoring automatism.
  4. StopStopStrg+F2 hält das aktive Ziel an statt „erst lokal, sonst Host“; das Stop-Knöpfchen zeigt, welches. Beide auf einmal nur über das Chip-Menü.Ctrl+F2 halts the active target instead of "local first, otherwise host"; the stop button shows which. Both at once only via the chip menu.
  5. Klick auf ein getrenntes ZielClick on a disconnected targetAuswählen und im Hintergrund verbinden. Ein Fehler erscheint dann sofort mit Grund.Select it and connect in the background. An error then appears immediately with its reason.
  6. Host-FehlerHost errorsGrund und Abhilfe direkt im Inspektor und im Chip-Menü zeigen, statt nur im Log, mit den Knöpfen „Erneut verbinden“ und „Adresse und Token …“. Ausprobieren mit der Lage „Host nicht erreichbar“.Show reason and remedy directly in the inspector and the chip menu instead of only in the log, with the buttons "Reconnect" and "Address and token …". Try it with the situation "Host unreachable".
  7. Gewählte VarianteChosen variantVariante 1, dazu aus Variante 3 die Zeile „Wirkt auf:“ in der Statuszeile und das Etikett „→ Szene“ an Aktionen ohne Runner.Variant 1, plus from variant 3 the "Acts on:" line in the status bar and the "→ Scene" label on actions without a runner.