Decompile fn_10908 (UIBitmapTab::SendMsg)

Batch #12178 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_10908 UIBitmapTab::SendMsg: logic confirmed by peer review

Peer-reviewed-by: Yommy, gordaoprogramas, dori
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 15:23:13 +00:00
commit 01e8f159e4

View file

@ -57,6 +57,19 @@ int UIBitmapTab::SendMsg(UIWindow*, int message, std::intptr_t argument1, std::i
this->geometry.unknown_0030 = argument1;
this->Invalidate();
break;
case 75:
this->tabs.clear();
break;
case 78:
if (argument1) {
const char* tabName = reinterpret_cast<const char*>(argument1);
const std::string name = FormatOwnedString(tabName, 'a');
CBitmapRes* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(name.c_str())));
if (bitmap) {
this->tabs.push_back(BitmapTabEntry{bitmap->image.height, tabName});
}
}
break;
case 14:
if (!this->tabs.empty()) {
int width = 0;
@ -73,19 +86,6 @@ int UIBitmapTab::SendMsg(UIWindow*, int message, std::intptr_t argument1, std::i
this->Resize(width, height);
}
break;
case 75:
this->tabs.clear();
break;
case 78:
if (argument1) {
const char* tabName = reinterpret_cast<const char*>(argument1);
const std::string name = FormatOwnedString(tabName, 'a');
CBitmapRes* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(name.c_str())));
if (bitmap) {
this->tabs.push_back(BitmapTabEntry{bitmap->image.height, tabName});
}
}
break;
}
return 0;