Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,8 @@ void PopulateReplayFileListbox(GameWindow *listbox)
// name
UnicodeString replayNameToShow = createReplayName(asciistr);

UnicodeString displayTimeBuffer = getUnicodeTimeBuffer(header.timeVal);

//displayTimeBuffer.format( L"%ls", timeBuffer);
UnicodeString displayDateTimeBuffer;
displayDateTimeBuffer.format(L"%s %s", getUnicodeTimeBuffer(header.timeVal).str(), getUnicodeDateBuffer(header.timeVal).str());
Comment thread
Caball009 marked this conversation as resolved.

// version (no-op)

Expand Down Expand Up @@ -353,7 +352,7 @@ void PopulateReplayFileListbox(GameWindow *listbox)

const Int insertionIndex = GadgetListBoxAddEntryText(listbox, replayNameToShow, color, -1, 0);
DEBUG_ASSERTCRASH(insertionIndex >= 0, ("Expects valid index"));
GadgetListBoxAddEntryText(listbox, displayTimeBuffer, color, insertionIndex, 1);
GadgetListBoxAddEntryText(listbox, displayDateTimeBuffer, color, insertionIndex, 1);
GadgetListBoxAddEntryText(listbox, header.versionString, color, insertionIndex, 2);
GadgetListBoxAddEntryText(listbox, mapStr, mapColor, insertionIndex, 3);

Expand Down Expand Up @@ -388,6 +387,16 @@ void ReplayMenuInit( WindowLayout *layout, void *userData )
buttonDelete = TheWindowManager->winGetWindowFromId( parentReplayMenu, buttonDeleteID );
buttonCopy = TheWindowManager->winGetWindowFromId( parentReplayMenu, buttonCopyID );

#if ENABLE_GUI_HACKS
// TheSuperHackers @tweak Caball009 07/02/2025 Switch the column width for the time / date with the column width for the version.
Comment thread
xezon marked this conversation as resolved.
Outdated
ListboxData* list = static_cast<ListboxData*>(listboxReplayFiles->winGetUserData());
DEBUG_ASSERTCRASH(list && list->columns >= 3 && list->columnWidth[1] < list->columnWidth[2],
Comment thread
Caball009 marked this conversation as resolved.
Outdated
("Original replay window is expected to have at least 3 columns, and the second column width smaller than the third"));

if (list->columnWidth[1] < list->columnWidth[2])
std::swap(list->columnWidth[1], list->columnWidth[2]);
Comment thread
xezon marked this conversation as resolved.
#endif

//Load the listbox shiznit
GadgetListBoxReset(listboxReplayFiles);
PopulateReplayFileListbox(listboxReplayFiles);
Expand Down
Loading