Repository navigation
UI: the text page's progress bar and the round table at 100% - #429
Open
kotijekriv wants to merge 2 commits into
Open
kotijekriv wants to merge 2 commits into
kotijekriv wants to merge 2 commits into
Conversation
Rendering::RenderTextPageProgressBar, from gynt's draft (4778264, 45.28%) by way of my draft in the open draft PR (fb337c1, 67.80%, "Loop registers and RECT spills differ"). reccmp 100.0 (normalized 100.0) on main 3458fea with the data on. Three changes took it from 67.8 to 100: - The fade loops read destinationRect.left and destinationRect.top instead of separate left/top locals. The original keeps destinationRect.top in the RECT's own stack slot and reloads it for the second loop (`mov ebx, [esp + 0x14]`), with left in esi and the right edge in ebp for both loops; the locals put top in ebp and recomputed the right edge. - The second loop's row is a local, `y = destinationRect.top + 220 - i * 2`, passed as y and y + 1. Written out twice, `... + 1` became a second induction variable; the original has one (`lea edx, [ebx + 1]`). - sourceRect is filled left, right, top, bottom, which gives the original's zero register for `left` (ecx) and edi for 540. Co-authored-by: Gynt <gynt@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roundtable::MenuModalRenderFunction_Roundtable, from gynt's drafts (dd3b7dc, 32.54%; his newest scored draft f5c0549, 70.24% on his reimpl/UI-MenuModals-development, "y kept in reg by orig") by way of my draft in the open draft PR (8f2719d, 76.1%, built on f5c0549). reccmp 100.0 (normalized 100.0) on main 3458fea with the data on. Behaviour fix against my draft and f5c0549: each shield's x is the seat's x plus the x parameter. Both added the group counter there (mine as `group`, f5c0549 as the reused `width` parameter), which draws the shields at the wrong place; the original reads x from its stack home for that argument (`add ecx, dword ptr [esp + 0x58]` with one push pending). gynt's first draft, dd3b7dc, has x, and so does the Roundtable from Wilps' work on gynt's fork (8ca7861 on reimpl/Wilps-2026-10-18, later the same day as f5c0549), which is at 0.0% Pending there. From f5c0549: the seat table as constants, the two blend calls and the button rectangle. f5c0549 kept the counter in the width parameter; here it is its own local, which MSVC places in y's home as the original does. With x back the register assignment matched at once. The rest is order: tint and group are declared before the seat table (the original clears group in the middle of the table's stores), and DAT_ButtonY is set after DAT_ButtonX. Co-authored-by: Gynt <gynt@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 19, 2026
This branch has not been deployed
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.
Two UI render functions at 100%, both moved out of our open draft PRs (#313 and #360) and both from gynt's drafts. No header changes.
Rendering::RenderTextPageProgressBarRoundtable::MenuModalRenderFunction_RoundtableMeasured.
Stronghold Crusader.exe(3bb0a8c1…5387ac5a), and sourcehold's reccmp with--resolve-wrapped-calls --ignore-security-cookie. The struct resolvers and the function resolvers are enabled locally (not committed); in the full build 0x004314E0 (MapEditorLandscaping_GeneralButtonshandler) is left out and its resolver stays off, as in main's baseline.tools/). Both functions read 100.0 raw and normalised.Constructor_MenuModal_Roundtablewent from 93.8 to 100.0. It pushes the render function's address (0x004B1AC0), which now resolves to the reimplementation.Menu::handleMenuItems(100.0 to 97.9) andMenu::Constructor_Menu(100.0 to 98.4). Neither file changes here. Both compare against the menu item type0x11000000, and in this build one of our own DLL's symbols happens to sit at exactly that address, so reccmp prints our operand as that symbol and counts five identical compares as mismatches. A branch adding a single unrelated function from main showed the same two drops.openshc-pr-checkgives 0 ERROR and 7 CHECK, all placeholder names (below).openshc-pr-fixfinds nothing to change.What got them to 100%
RenderTextPageProgressBar (the scrolling text page's frame and its faded top and bottom edges)
destinationRect.leftanddestinationRect.topinstead of separateleft/toplocals. The original keepsdestinationRect.topin the RECT's own stack slot and reloads it for the second loop (mov ebx, [esp + 0x14]), with left inesiand the right edge inebpfor both loops. With the locals, top went toebpand the right edge was recomputed in each iteration.y = destinationRect.top + 220 - i * 2, passed asyandy + 1. Written out twice, the+ 1form became a second induction variable; the original has one (lea edx, [ebx + 1]).sourceRectis filled left, right, top, bottom, which gives the original's registers for the zero and for 540.MenuModalRenderFunction_Roundtable (the round table's player shields)
xparameter. Our draft added the group counter there, and so does gynt's newest scored draft, f5c0549, which uses thewidthparameter as the counter; the shields were drawn at the wrong place. The original readsxfrom its stack home for that argument (add ecx, dword ptr [esp + 0x58]with one push pending). gynt's first draft, dd3b7dc, hasx, and so does the Roundtable from Wilps' work on gynt's fork (8ca7861 onreimpl/Wilps-2026-10-18, later the same day as f5c0549), which is at 0.0% Pending there.widthparameter; here it is its own local, which MSVC places iny's stack home as the original does, whileystays inebp. Withxback the registers matched at once.tintandgroupare declared before the seat table (the original clearsgroupin the middle of the table's stores), andDAT_ButtonYis set afterDAT_ButtonX.The checker's 7 CHECKs
DAT_00ed2784g_textPageScrollOffset, and the start time this function reads,DAT_ARRAY_00ed26d0,g_textPageStartTimeDAT_00df4288g_roundtableNeedsRedraw🤖 Generated with Claude Code