Batch #7711 by secret: 0 byte-identical, 12 confirmed by peer review. - fn_12846 UIAccountLimitedToolWnd::UIAccountLimitedToolWnd: logic confirmed by peer review - fn_12847 UIBalloonOpenBtn::UIBalloonOpenBtn: logic confirmed by peer review - fn_12848 UIDebuffRemoveWnd::UIDebuffRemoveWnd: logic confirmed by peer review - fn_12850 UIMileageWnd::UIMileageWnd: logic confirmed by peer review - fn_12852 UINoteWnd::UINoteWnd: logic confirmed by peer review - fn_12853 UIOpenMailBoxWnd::UIOpenMailBoxWnd: logic confirmed by peer review - fn_12854 UIOpenRoulletteWnd::UIOpenRoulletteWnd: logic confirmed by peer review - fn_12855 UIQuestDisplay::UIQuestDisplay: logic confirmed by peer review - fn_12856 UIRPImageWnd2::UIRPImageWnd2: logic confirmed by peer review - fn_12857 UISecondCostumeWnd::UISecondCostumeWnd: logic confirmed by peer review - fn_12858 UIShowWarpWnd::UIShowWarpWnd: logic confirmed by peer review - fn_12859 UITransMenuWnd::UITransMenuWnd: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
28 lines
887 B
C++
28 lines
887 B
C++
#include "UI/Window/UIBalloonOpenBtn.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
#include <windows.h>
|
|
#include <mmsystem.h>
|
|
|
|
// OFFSET: 0x0094D250
|
|
// FUNCTION: fn_12902
|
|
void UIBalloonOpenBtn::Paint() {
|
|
this->ClearSurface(0xFFFFFFFF);
|
|
}
|
|
|
|
// OFFSET: 0x0094F0E0
|
|
// FUNCTION: fn_12931
|
|
void UIBalloonOpenBtn::Slot19() {
|
|
if (this->m_balloon) {
|
|
const std::int64_t elapsed = static_cast<std::int64_t>(timeGetTime()) - this->m_openTime;
|
|
if (elapsed > this->m_openDelay) {
|
|
reinterpret_cast<void(__thiscall*)(UIWindowMgr*, int)>(0x00A8CF20)(&g_windowMgr, 0x166);
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x009468D0
|
|
// FUNCTION: fn_12847
|
|
UIBalloonOpenBtn::UIBalloonOpenBtn(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls)
|
|
: UIFrameWnd(windows, frames, 0), m_openTime(0), m_openDelay(4000), m_balloonId(0), m_balloon(nullptr), m_button(nullptr), m_controls(&controls) {
|
|
}
|