Skip to content

Move KeypressDialogWidget to FrontEndLib#1104

Merged
Hypexion merged 2 commits intoCaravelGames:masterfrom
Hypexion:converge-keypress-widgets
Apr 7, 2026
Merged

Move KeypressDialogWidget to FrontEndLib#1104
Hypexion merged 2 commits intoCaravelGames:masterfrom
Hypexion:converge-keypress-widgets

Conversation

@Hypexion
Copy link
Copy Markdown
Collaborator

@Hypexion Hypexion commented Apr 6, 2026

Since TSS 5.2 and RPG 2 were developed on separate branches, we ended up duplicating the files for KeypressDialogWidget. Now that everything's been merged back, we should replace the two game-specific implementations with a single common implementation in FrontEndLib.

The main changes were clearing up the use of g_pTheDB, which we don't want to be doing in FrontEndLib. I also added F_Header to the list of fonts in FontManager.h, as it's used in the widget.

@Hypexion Hypexion force-pushed the converge-keypress-widgets branch from fb981ae to fe0d953 Compare April 6, 2026 21:19
@Hypexion Hypexion force-pushed the converge-keypress-widgets branch from fe0d953 to 8787300 Compare April 6, 2026 21:23
Comment thread FrontEndLib/KeypressDialogWidget.h Outdated
{
public:
CKeypressDialogWidget(UINT dwSetTagNo);
CKeypressDialogWidget(UINT dwSetTagNo, WSTRING wstrGetKeyText,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest "const &" on these WSTRINGS (as general practice for non-primitive input params).

Copy link
Copy Markdown
Member

@mrimer mrimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Feel free to merge at your convenience.

@EvidentlyCube
Copy link
Copy Markdown
Collaborator

Checked, no comments from me

@Hypexion Hypexion merged commit 9915f1e into CaravelGames:master Apr 7, 2026
1 check passed
@Hypexion Hypexion deleted the converge-keypress-widgets branch April 7, 2026 16:41
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.

3 participants