rodecomp/Source/UI/UISlotBitmap.cpp
ragnarok-clanker 256ae75f4d Decompile 4 functions in Source/UI/UISlotBitmap.cpp, Source/UI/Chat/UIChatRoomTitle.cpp, ...
Batch #5514 by Yommy: 0 byte-identical, 4 confirmed by peer review.

- fn_10785 UIChatRoomTitle::Slot15: logic confirmed by peer review
- fn_10788 UIMerchantShopTitle::Slot15: logic confirmed by peer review
- fn_10789 UISlotBitmap::Slot15: logic confirmed by peer review
- fn_10792 UIAchBalloonText::Paint: logic confirmed by peer review

Peer-reviewed-by: willerthal, Snow, Qwenkler3.8, SapitoSucio
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 12:55:58 +00:00

63 lines
2.1 KiB
C++

#include "UI/UISlotBitmap.h"
#include "UI/Buttons/UIBitmapButton.h"
// OFFSET: 0x0085ADA0
// FUNCTION: fn_10789
void UISlotBitmap::Slot15(int, int) {
if (this->unknown_00B8 == 1) {
this->addButton = new UIBitmapButton(*this->m_context, *this->m_controls);
this->addButton->SetBitmap("유저인터페이스\\select_character\\btn_add_out.bmp", 0, 0);
this->addButton->SetBitmap("유저인터페이스\\select_character\\btn_add_over.bmp", 1, 0);
this->addButton->SetBitmap("유저인터페이스\\select_character\\btn_add_press.bmp", 2, 0);
this->addButton->SetSize(this->addButton->BitmapWidth(), this->addButton->BitmapHeight());
this->addButton->Move(
static_cast<int>((this->geometry.width - this->addButton->geometry.width) * 0.5),
static_cast<int>((this->geometry.height - this->addButton->geometry.height) * 0.5)
);
this->addButton->SetId(203);
this->AddChild(this->addButton);
}
}
// OFFSET: 0x0085E980
// FUNCTION: fn_10833
void UISlotBitmap::Slot26(int, int) {
if (this->parent) {
this->parent->SendMsg(this, 6, 184, 0, 0, 0);
}
}
// OFFSET: 0x0085ED30
// FUNCTION: fn_10846
void UISlotBitmap::Slot25(int, int) {
if (this->parent) {
this->parent->SendMsg(this, 13, this->slot, 0, 0, 0);
this->parent->SendMsg(this, 6, this->geometry.id, 0, 0, 0);
}
}
// OFFSET: 0x0085FE60
// FUNCTION: fn_10887
void UISlotBitmap::Slot32(int, int) {
if (this->parent) {
this->parent->SendMsg(this, 13, this->slot, 0, 0, 0);
this->parent->SendMsg(this, 6, this->geometry.id, 226, 0, 0);
}
}
// OFFSET: 0x008651A0
// FUNCTION: fn_10920
int UISlotBitmap::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
switch (message) {
case 6:
if (argument1 == 203 && this->parent) {
this->parent->SendMsg(this, 6, 203, this->slot, 0, 0);
}
return 0;
case 13:
this->geometry.unknown_0030 = argument1;
return 0;
default:
return UIStaticBitmap::SendMsg(sender, message, argument1, argument2, argument3, argument4);
}
}