Skip to content

fix some issues - #5

Merged
ABKQPO merged 12 commits into
GTNewHorizons:masterfrom
Windorain:fix-known-issues
Jun 10, 2026
Merged

fix some issues#5
ABKQPO merged 12 commits into
GTNewHorizons:masterfrom
Windorain:fix-known-issues

Conversation

@Windorain

@Windorain Windorain commented Jun 8, 2026

Copy link
Copy Markdown
  • Fix MOUNT script result caching: auto-inherit UID on node replacement in ScriptContextImpl, add missing ctx.replace() to 6 scripts to prevent duplicate dispatch on page remount
  • Persist navbar expand/collapse state across page navigations within a game session
  • Fix StructureLib tier/channel slider rendering and interactive rebuild
  • Treat HTML void elements as self-closing in MDX parser
  • Unify chart child element name attribute, support Point children in Series, auto-detect numericX
  • Fix GT multiblock hatch placement and active controller state
  • Reduce preset point hit radius from 8px to 6px
  • Fix function graph point hover snap to prioritize preset points
  • Fix inline formatting lost inside table cells
  • Fix GameScene source extraction inside ContentTabs

@Windorain
Windorain marked this pull request as draft June 8, 2026 11:59
Windorain added 9 commits June 8, 2026 20:49
<br> without trailing slash was parsed as a non-self-closing JSX tag,
causing subsequent text to be nested as children and dropped by
BreakCompiler. Added void element auto-self-close in MdxMdastExtension
and a defensive children compile in BreakCompiler.
- Add scrollY to GuideNavBarState for restoring sidebar scroll position
- Replace single-slot lastContentViewState with browser-style linear page history
- Remove local history stacks from GuideScreen, delegate to NavigationState
- G hotkey now returns to the active page (at pageHistoryIndex), not always the last entry
- Back/forward button state and scroll position survive screen close/reopen
- Fix navbar expanded state recall by passing correct guideId
… remount

Framework (ScriptContextImpl):
- Add inheritUid() to auto-copy UID from old node to replacement node
  in ctx.replace(), ensuring cache key continuity across node swaps

Scripts (6 scripts fixed, all had missing ctx.replace()):
- ItemLinkScript: add ctx.replace(link) in success path, add fallback
  branch for already-materialized LytFlowContent nodes, make
  appendIconAndFallbackText idempotent with removeExistingIcons()
- CommandLinkScript: add ctx.replace(link) after setClickCallback
- SoundLinkScript: add ctx.replace(link) after setClickSoundSpec
- KeyBindScript: add ctx.replace(placeholder) after setText
- PlayerNameScript: add ctx.replace(placeholder) after setText
- TooltipScript: add ctx.replace(span) after dispatchSubtree

Diagnostic logging added in LytHost and ScriptContextImpl for
ItemLink cache tracing (uid allocation, cache hit/miss, recordResult).
@Windorain
Windorain marked this pull request as ready for review June 10, 2026 13:57
@ABKQPO ABKQPO added the bug label Jun 10, 2026
@ABKQPO
ABKQPO merged commit 4d45836 into GTNewHorizons:master Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants