Decompile fn_10371 (UIDisplayCharacter::SendMsg)

Batch #17662 by eAthena: 1 byte-identical, 0 confirmed by peer review.

- fn_10371 UIDisplayCharacter::SendMsg: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 01:47:43 +00:00
commit 86355b708a

View file

@ -1097,7 +1097,7 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg
switch (argument1) {
case ID_LEFT:
this->direction = this->direction < 7 ? this->direction + 1 : 0;
this->direction = this->direction >= 7 ? 0 : this->direction + 1;
break;
case ID_RIGHT:
if (this->direction <= 0) {
@ -1106,6 +1106,12 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg
--this->direction;
}
break;
case 450:
this->SelectPreviousStyle(this->GetStyleTable(2).c_str(), &this->head);
break;
case 451:
this->SelectNextStyle(this->GetStyleTable(2).c_str(), &this->head);
break;
case ID_PREVIEW:
this->SelectPreviousStyle(this->GetStyleTable(3).c_str(), &this->bodyStyle);
break;
@ -1115,12 +1121,6 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg
case ID_NEXTVIEW:
this->SelectNextStyle(this->GetStyleTable(3).c_str(), &this->bodyStyle);
break;
case 450:
this->SelectPreviousStyle(this->GetStyleTable(2).c_str(), &this->head);
break;
case 451:
this->SelectNextStyle(this->GetStyleTable(2).c_str(), &this->head);
break;
case 495:
shop->SendMsg(nullptr, 495, 0, 0, 0, 0);
break;