Skip to content

Commit b0ed4b5

Browse files
committed
Switched the column widths.
1 parent df203b1 commit b0ed4b5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ReplayMenu.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,15 @@ void ReplayMenuInit( WindowLayout *layout, void *userData )
387387
buttonDelete = TheWindowManager->winGetWindowFromId( parentReplayMenu, buttonDeleteID );
388388
buttonCopy = TheWindowManager->winGetWindowFromId( parentReplayMenu, buttonCopyID );
389389

390+
#if ENABLE_GUI_HACKS
391+
// TheSuperHackers @tweak Caball009 07/02/2025 Switch the column width for the time / date with the column width for the version.
392+
ListboxData* list = static_cast<ListboxData*>(listboxReplayFiles->winGetUserData());
393+
DEBUG_ASSERTCRASH(list && list->columns >= 3 && list->columnWidth[1] < list->columnWidth[2],
394+
("Original replay window is expected to have at least 3 columns, and the second column width smaller than the third"));
395+
396+
std::swap(list->columnWidth[1], list->columnWidth[2]);
397+
#endif
398+
390399
//Load the listbox shiznit
391400
GadgetListBoxReset(listboxReplayFiles);
392401
PopulateReplayFileListbox(listboxReplayFiles);

0 commit comments

Comments
 (0)