You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v1.2.0: keep CONTINUE correct when the menu is shown again
Visiting another menu screen and coming back left the CONTINUE entry
labelled "TEXT BLOCK" and unresponsive, with its separator missing.
UCrUW_MainMenuWidget::NativeConstruct is the label pass and it runs on every
menu show: it re-reads ButtonsTexts, calls UTabButton::SetButtonText per
entry, and clears the click gate while walking. Our entry has no ButtonsTexts
key -- the plugin API cannot insert into a TMap -- so a re-shown menu got the
placeholder label and a closed gate. MenuInstance::PatchNow now runs from the
construct hook after the original returns, so the label and gate are correct
in the frame the menu is built rather than corrected afterwards.
The separator had an unrelated cause: Separator::IsInstanceOfClass enumerated
live VerticalBox instances into a fixed 256-entry buffer, and a second menu
instance pushed the live count to 333. The button's root box fell past the
cut, so the check reported "not a live VerticalBox" and stood down. It now
grows past the reported total and rescans; a truncated view can no longer be
read as absence.
Also widens the settled-instance guard to compare ButtonsBox child 0, not
just the menu instance, so a genuinely new button is re-patched.
Verified in game: LOAD GAME -> ESC returns to a menu with CONTINUE labelled,
separated and focused; three constructs, each patched, separator built every
time, no truncation warnings.
0 commit comments