Decompile fn_12765 (UINewChatWnd::Show)
Batch #1753 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_12765 UINewChatWnd::Show: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
715e4e7cde
commit
cf696df195
2 changed files with 26 additions and 1 deletions
|
|
@ -3,16 +3,21 @@
|
|||
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class UINewChatWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Move(int x, int y) override;
|
||||
void Show(int visible) override;
|
||||
|
||||
private:
|
||||
/* 00BC */ int unknown_00BC;
|
||||
/* 00C0 */ int unknown_00C0;
|
||||
/* 00C4 */ int m_inputX;
|
||||
/* 00C8 */ int m_inputY;
|
||||
/* 00CC */ unsigned char unknown_00CC[0x50];
|
||||
/* 00CC */ unsigned char unknown_00CC[0x28];
|
||||
/* 00F4 */ std::vector<UIWindow*> m_tabs;
|
||||
/* 0100 */ unsigned char unknown_0100[0x1C];
|
||||
/* 011C */ int m_inputOffsetY;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -441,6 +441,26 @@ void UINewChatWnd::Move(int x, int y) {
|
|||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x0093D090
|
||||
// FUNCTION: fn_12765
|
||||
void UINewChatWnd::Show(int visible) {
|
||||
this->geometry.visible = visible;
|
||||
|
||||
if (visible != 0) {
|
||||
this->Invalidate();
|
||||
this->m_frameContext->snapping.Store(this);
|
||||
} else if (this->m_frameContext->snapping.enabled) {
|
||||
this->m_frameContext->snapping.rectangles.erase(this);
|
||||
}
|
||||
|
||||
for (UIWindow* tab : this->m_tabs) {
|
||||
tab->Show(this->geometry.visible);
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < g_windowMgr.retainedWindows.size(); ++i) {
|
||||
g_windowMgr.retainedWindows[i]->Show(this->geometry.visible);
|
||||
}
|
||||
}
|
||||
// OFFSET: 0x0091E960
|
||||
// FUNCTION: fn_12630
|
||||
void UIMemorialDunWnd::Move(int x, int y) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue