Repository navigation
KodeKit: headless widget behaviour (from ui-sdk), command palette, shortcuts and more - #2789
Merged
Merged
Conversation
… in MechJebLibTest, with the C# 7.3 check
…copes, focus recovery, input history, inline edit, field alignment
… reorder, trees, selection, styling rules, window drag and snapping
… and hover cards, context menu
…graph pan and zoom, ranges, timeline, hover read-out
…commands with a second Enter for flight changes; opt-in window keys checked against KSP's bindings
…KSP is launched with -mechjeb-ui-agent <port>, language-independent names
…meters, copy menus, settings for the new options, opened windows on top
… Mono On Mono, xunit reads an enum array's items as Int32 and finds them unequal to a List of that enum, so 27 KodeKit tests failed in CI. AssertionExtensions.EqualSequence copies both sides into a List<T> first; the 35 enum-array asserts in the KodeKit tests use it. On Mono, List.Sort allocates 128 bytes per call even with a cached IComparer, so FuzzyFilter's ranked queries allocate there. The fuzzy filter and combo filter allocation tests now check only on .NET Framework (AssertionExtensions.OnMono).
Contributor
✅ Build Artifact 🚀MechJeb2-3fc2e6c.zip (built from 8a10af3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sometimes you stumble on an idea that seems nice. You know that it will be a bit overkill, but it would make some things easier.
And 23 hours later you end up with 47k more lines. And this is not finished.
Anyway. Took some ideas from UI SDK. It is halfway there.
This first half adds enough UI improvementst to merge it.
What players get
For tools
-mechjeb-ui-agent <port>(orMECHJEB_UI_AGENT_PORTis set): HTTP on 127.0.0.1 with a token, protocol version 2. Controls have language-independent names: fields and buttons by their#key, windows by their module name (MechJebModuleManeuverPlanner,CustomInfoWindow:<id>).Under the hood
Widget behaviour moved into Unity-free headless models in
MechJeb2.UI/KodeKit/Headless, tested in MechJebLibTest (a C# 7.3 build checks them); one commit path with a source for every edit; keyboard scopes; one popup stack.MechJeb2.UI/KodeKit/LAYOUTS.md, "The headless pattern", is the guide, with an index of every model.The 10 commits are grouped by area for review; only the last one builds.
Tests