Repository navigation
Conversation
… or map page, also during a NoClip flight
Kharote
marked this pull request as ready for review
November 24, 2026 10:55
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
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.
What this changes
During a NoClip flight KCDS keeps the game's keys, so M never reaches the game and a script had no way to open the map:
NativeUIcould only disable pages.NativeUI.openMenu(menu): opens a page of the game's menu as its key does (the page's own key callback, with the inventory screen's owner).inventory,playerandmapare the pages whose keys the game has; others open only where the game has a callback for them. It goes through the page gate, so a page a resource disabled stays closed, and it returns false then.native_ui/menu_pages.{hpp,cpp}: the page open and close, shared with the test kit's scripted steps (open_inventory_screen,open_map_screen,open_player_screen,close_inventory_screen), which had their own copies.NativeUI.openMenu(since 1.2.1), C# SDK regenerated.How it was tested
client_native_ui.test.cjs: openMenu sends the page, refuses a disabled one, throws for an unknown name; 14 pass.NativeUI.openMenu('map'): the client logged the page opened, andNativeUI.openScreens()listed ApseMap, ApseMapLegendList and the others 4 s later.Checklist
python Dev/tools/format_source.py --checkpasses.