Decompile 2 functions in Source/UI/UILapineUpgradeBoxWnd.cpp

Batch #11165 by dori: 0 byte-identical, 2 confirmed by peer review.

- fn_04194 UILapineUpgradeBoxWnd::Slot10: logic confirmed by peer review
- fn_04209 UILapineUpgradeBox_IngredientInfoWnd::Slot28: logic confirmed by peer review

Peer-reviewed-by: kyoshi, cremane, StrawberrysherbetIX
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-04 20:36:51 +00:00
commit dcc5e3bf7e

View file

@ -171,7 +171,7 @@ void UILapineUpgradeBoxWnd::Paint() {
// OFFSET: 0x006035E0
// FUNCTION: fn_04194
void UILapineUpgradeBoxWnd::Slot10(int x, int y, std::intptr_t value) {
CMode* mode = static_cast<CMode*>(g_charViewMode);
CMode* mode = g_modeMgr.GetGameMode();
if (this->item.unknown_0000[1] > 0) {
mode->SendMsg(18, 0, 0, 0, 0);
return;
@ -460,7 +460,7 @@ void UILapineUpgradeBox_IngredientInfoWnd::Slot28(int x, int y) {
int tipX = 0;
int tipY = -20;
this->ToScreen(tipX, tipY);
static_cast<CMode*>(g_charViewMode)->ShowTooltip(this->tooltip.c_str(), tipX, tipY, -1, false, true);
g_modeMgr.gameMode->ShowTooltip(this->tooltip.c_str(), tipX, tipY, -1, false, true);
}
}