Decompile fn_11556 (UIShowAndEditTimeCtrl::SendMsg)

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

- fn_11556 UIShowAndEditTimeCtrl::SendMsg: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 04:05:15 +00:00
commit da9ecd8ea7

View file

@ -1077,14 +1077,14 @@ void UIShowAndEditTimeCtrl::Slot15(int, int) {
// FUNCTION: fn_11556
int UIShowAndEditTimeCtrl::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
if (message == 6 && argument1 == 184) {
for (UIEditCtrlVarId* field : this->fields) {
if (sender == field) {
int value = std::atoi(field->Text());
for (int index = 0; index < 2; ++index) {
if (sender == this->fields[index]) {
int value = std::atoi(this->fields[index]->Text());
if (value > 60) {
value = 60;
}
const std::string text = FormatOwnedString("%d", value);
field->SetText(text.c_str());
this->fields[index]->SetText(text.c_str());
}
}
}