Decompile fn_12354 (UILoadingWnd::SendMsg)
Batch #6024 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_12354 UILoadingWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
81bfea8dcf
commit
3b5daf3ffd
2 changed files with 18 additions and 0 deletions
|
|
@ -2428,3 +2428,14 @@ void UIStatusWnd::ValidatePlacement() {
|
|||
|
||||
this->SendMsg(nullptr, 35, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
// OFFSET: 0x008FEAA0
|
||||
// FUNCTION: fn_12354
|
||||
int UILoadingWnd::SendMsg(UIWindow*, int message, std::intptr_t argument1, std::intptr_t, std::intptr_t, std::intptr_t) {
|
||||
if (message == 17) {
|
||||
char text[100];
|
||||
std::sprintf(text, "Loading %d %s", static_cast<int>(argument1), "%");
|
||||
this->m_progressBar->SetValue(static_cast<float>(argument1));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,18 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_DIALOGS_UILOADINGWND_H
|
||||
#define RAGNAROK_SOURCE_UI_DIALOGS_UILOADINGWND_H
|
||||
|
||||
#include "UI/UIBarGraph.h"
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
class UILoadingWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Paint() override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
|
||||
|
||||
/* 00B4 */ unsigned char unknown_00B4[0x4];
|
||||
/* 00B8 */ UIBarGraph* m_progressBar;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue