Decompile fn_12262 (UITipboxWnd::PaintAnimations)
Batch #9913 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_12262 UITipboxWnd::PaintAnimations: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, Toshiro, cremane, codeplay 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
ee8e5ec9f1
commit
703f192ae1
3 changed files with 26 additions and 0 deletions
|
|
@ -7961,6 +7961,30 @@ int ParseItemIdTag(const char* text, const char* end, int& length, int& itemId);
|
|||
|
||||
// OFFSET: 0x008F8ED0
|
||||
|
||||
// OFFSET: 0x008F2DF0
|
||||
// FUNCTION: fn_12262
|
||||
void UITipboxWnd::PaintAnimations() {
|
||||
std::string path;
|
||||
for (unsigned int i = 0; i < this->m_animations.size(); ++i) {
|
||||
path = "유저인터페이스\\tipbox\\ico_effect" + IntToString(this->m_animations[i].kind, 0) + ".bmp";
|
||||
if (this->m_animations[i].visible) {
|
||||
const auto* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(path.c_str())));
|
||||
this->DrawBitmap(
|
||||
static_cast<int>(this->m_animations[i].x), static_cast<int>(this->m_animations[i].y), bitmap ? &bitmap->image : nullptr, true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < this->m_dots.size(); ++i) {
|
||||
if (this->m_dots[i].visible) {
|
||||
const auto* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\tipbox\\ico_effect6.bmp")));
|
||||
this->DrawBitmap(static_cast<int>(this->m_dots[i].x), static_cast<int>(this->m_dots[i].y), bitmap ? &bitmap->image : nullptr, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x008FD640
|
||||
|
||||
// OFFSET: 0x008F8640
|
||||
// FUNCTION: fn_12331
|
||||
int UIChoose3Wnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ public:
|
|||
void UpdateAnimations();
|
||||
void UpdatePageText();
|
||||
bool BuildAnimations();
|
||||
void PaintAnimations();
|
||||
|
||||
/* 00B4 */ int unknown_00B4;
|
||||
/* 00B8 */ int unknown_00B8;
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ public:
|
|||
void Slot11() override;
|
||||
void Slot15(int width, int height) override;
|
||||
std::vector<unsigned char> Slot44() override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
||||
|
||||
/* 00F0 */ WindowPlacement* m_compositionPlacement;
|
||||
/* 00F4 */ int m_compositionState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue