Decompile fn_11750 (UISelectReplayDataWnd::Slot15)

Batch #12316 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_11750 UISelectReplayDataWnd::Slot15: logic confirmed by peer review

Peer-reviewed-by: Yommy, Tanke, cremane
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-05 14:31:19 +00:00
commit 03ddfa89e2

View file

@ -1909,11 +1909,21 @@ void UISelectReplayDataWnd::Slot15(int width, int height) {
int ids[4] = {184, 185, 221, 400};
int positions[4][2] = {{189, height - 25}, {-100, -100}, {234, height - 25}, {100, height - 25}};
std::string name;
for (int index = 0; index < 4; ++index) {
auto* button = new UIBitmapButton();
button->SetBitmap((prefix + names[index][0] + ".bmp").c_str(), 0, 0);
button->SetBitmap((prefix + names[index][1] + ".bmp").c_str(), 1, 0);
button->SetBitmap((prefix + names[index][2] + ".bmp").c_str(), 2, 0);
name.assign(prefix);
name += names[index][0];
name += ".bmp";
button->SetBitmap(name.c_str(), 0, 0);
name.assign(prefix);
name += names[index][1];
name += ".bmp";
button->SetBitmap(name.c_str(), 1, 0);
name.assign(prefix);
name += names[index][2];
name += ".bmp";
button->SetBitmap(name.c_str(), 2, 0);
button->SetSize(button->BitmapWidth(), button->BitmapHeight());
button->Move(positions[index][0], positions[index][1]);
button->SetId(ids[index]);