#include "Contents/Messenger/MessengerMember.h" #include "Contents/Configuration/ServiceConfiguration.h" #include "Contents/MessageTable.h" #include "Resource/Bitmap/BitmapResource.h" #include "Resource/ResourceMgr.h" #include "Render/Renderer.h" #include "Resource/TextureNames.h" #include "Contents/UserData/NormalItemSlots.h" #include "UI/Buttons/UIBitmapButton.h" #include "UI/Buttons/UICheckBox.h" #include "UI/Gauges/UIPcGage.h" #include "UI/Lists/UIScrollBar.h" #include "Client/Mode/CGameMode.h" #include "Contents/Actors/Pc.h" #include "Contents/Messenger/ClientMessenger.h" #include "Contents/World/World.h" #include "UI/Window/UIFrameWnd.h" #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowManagerWindows.h" #include "Client/Mode/ModeMgr.h" #include "Client/Session.h" #include "Render/Text/TextContext.h" #include "UI/Party/UIMiniPartyWnd.h" #include #include #include #include #include #include namespace { #pragma pack(push, 1) struct MessengerRecordHeader { /* 0000 */ std::int16_t id; /* 0002 */ std::uint32_t bytes; }; #pragma pack(pop) struct MiniPartyIconPosition { /* 0000 */ int x; /* 0004 */ int y; /* 0008 */ int size; }; struct UIFriendOptionContext { UIButtonContext& buttons; int& option0; int& option1; int& option2; }; struct SessionHelper { const char* sub_DDE770(const char* mapName); }; class UIMessengerGroupDropWnd : public UIWindow { public: void sub_73A1C0(int x, int y, int unknown); }; } class UIDragMiniPartyWnd : public UIFrameWnd { public: ~UIDragMiniPartyWnd() override; void Slot15(int width, int height) override; void Paint() override; void Slot31(int argument1, int argument2) override; void MoveGauge(int x, int y); void RemoveGauge(); void SetUnknown010C(int first, int second); void SetGaugeValues(int current, int maximum); std::string sub_A80880(int width, const char* text, int font, int height, int bold); void sub_A84360(int x, int y, const char* text, int length, int font, int height, unsigned int color, int bold, int shadow); /* 00B4 */ MessengerMember member; /* 0104 */ UIPcGage* gauge; /* 0108 */ int unknown_0108; /* 010C */ int unknown_010C; /* 0110 */ int unknown_0110; /* 0114 */ int iconIndex; /* 0118 */ std::vector iconPositions; }; class UIFriendOptionWnd : public UIFrameWnd { public: ~UIFriendOptionWnd() override; void Slot11() override; void Slot15(int width, int height) override; void Paint() override; int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override; /* 00B4 */ FriendOptionWndInfo* saved; /* 00B8 */ UICheckBox* option1Box; /* 00BC */ UICheckBox* option2Box; /* 00C0 */ UICheckBox* option0Box; /* 00C4 */ UIBitmapButton* closeButton; private: UIFriendOptionContext* m_options; }; class UIJobIconButton : public UIBitmapButton { public: ~UIJobIconButton() override; void Paint() override; void Slot25(int x, int y) override; void Slot31(int x, int y) override; void Slot33(int x, int y) override; /* 0120 */ int unknown_0120; }; class UIMessengerGroupWnd : public UIFrameWnd { public: void Slot11() override; void Slot26(int x, int y) override; void Slot27(int x, int y) override; void Slot31(int x, int y) override; void Slot35(int delta) override; MessengerMember MemberAtIndex(int index); void UpdateScroll(); void LayoutButtons(); void UpdateGauges(); // INLINED UIWindow* CompanionWindow() const { if (this->mode == 0) { return reinterpret_cast(g_windowMgr.unknown_033C); } UIWindow* window = reinterpret_cast(g_windowMgr.unknown_042C); if (g_windowMgr.unknown_030C) { window = reinterpret_cast(g_windowMgr.unknown_030C); } return window; } /* 00B4 */ MessengerGroupWndInfo* saved; /* 00B8 */ UIScrollBar* scrollBar; /* 00BC */ int unknown_00BC; /* 00C0 */ int unknown_00C0; /* 00C4 */ int unknown_00C4; /* 00C8 */ UIWindow* buttons[11]; /* 00F4 */ int unknown_00F4; /* 00F8 */ int unknown_00F8; /* 00FC */ std::list members; /* 0104 */ int unknown_0104; /* 0108 */ int unknown_0108; /* 010C */ int unknown_010C; /* 0110 */ int scrollable; /* 0114 */ int scrollTop; /* 0118 */ int columns; /* 011C */ int visibleRows; /* 0120 */ int selected; /* 0124 */ int rowHeight; /* 0128 */ UIPcGage* gauges[40]; /* 01C8 */ UIJobIconButton* jobIcons[40]; /* 0268 */ int iconIndex; /* 026C */ std::vector iconPositions; /* 0278 */ int unknown_0278; /* 027C */ UIWindow* unknown_027C; /* 0280 */ unsigned char hiddenButtons[11]; /* 028C */ int mode; }; // GLOBAL: gl_24961 bool g_messengerGroupCollapsed; #if defined(_WIN32) && !defined(_WIN64) static_assert(sizeof(MiniPartyIconPosition) == 12); static_assert(sizeof(MessengerRecordHeader) == 6); #endif // OFFSET: 0x00D03DC0 // FUNCTION: fn_21550 MessengerMember::MessengerMember() : valid(1), dead(0) { } // OFFSET: 0x00739B60 // FUNCTION: fn_07696 MessengerMember::MessengerMember(int) : valid(0), dead(0) { } // OFFSET: 0x00739AB0 // FUNCTION: fn_07695 MessengerMember::MessengerMember(const MessengerMember& other) : valid(other.valid), accountId(other.accountId), characterId(other.characterId), name(other.name), map(other.map), leader(other.leader), offline(other.offline), color(other.color), job(other.job), level(other.level), dead(other.dead) { } // OFFSET: 0x00DC6FA0 // FUNCTION: fn_22785 MessengerMember& MessengerMember::operator=(const MessengerMember& other) { this->valid = other.valid; this->accountId = other.accountId; this->characterId = other.characterId; this->name = other.name; this->map = other.map; this->leader = other.leader; this->offline = other.offline; this->color = other.color; this->job = other.job; this->level = other.level; this->dead = other.dead; return *this; } // OFFSET: 0x007384A0 // FUNCTION: fn_07666 MessengerMember::~MessengerMember() = default; // OFFSET: 0x00E48C00 // FUNCTION: fn_24228 int ReadMessengerMembers(std::list& members, int offset, int size, const std::vector& data) { if (size <= 0) { return offset; } std::vector buffer(size, 0); std::memcpy(buffer.data(), data.data() + offset, size); int end = offset + size; std::uint32_t consumed = 0; std::vector remaining(buffer); while (consumed < buffer.size()) { MessengerMember member; consumed += member.Deserialize(remaining); members.push_back(member); int left = static_cast(buffer.size()) - static_cast(consumed); if (left > 0) { std::memcpy(remaining.data(), buffer.data() + consumed, left); } } return end; } // OFFSET: 0x00E494F0 // FUNCTION: fn_24236 std::uint32_t MessengerMember::Deserialize(const std::vector& data) { if (data.begin() == data.end()) { return 0xFFFFFFFF; } std::uint32_t offset = 6; MessengerRecordHeader header{}; std::memcpy(&header, data.data(), sizeof(header)); if (header.id != 251) { return 0xFFFFFFFF; } while (offset < data.size()) { header = {}; std::memcpy(&header, data.data() + offset, sizeof(header)); offset += 6; const unsigned char* source = data.data() + offset; switch (header.id) { case 252: return offset; case 253: std::memcpy(&this->valid, source, header.bytes); offset += header.bytes; break; case 254: std::memcpy(&this->accountId, source, header.bytes); offset += header.bytes; break; case 255: std::memcpy(&this->characterId, source, header.bytes); offset += header.bytes; break; case 256: { char buffer[260]; std::memset(buffer, 0, sizeof(buffer)); std::memcpy(buffer, source, header.bytes); offset += header.bytes; this->name = buffer; break; } case 257: { char buffer[260]; std::memset(buffer, 0, sizeof(buffer)); std::memcpy(buffer, source, header.bytes); offset += header.bytes; this->map = buffer; break; } case 258: std::memcpy(&this->leader, source, header.bytes); offset += header.bytes; break; case 259: std::memcpy(&this->offline, source, header.bytes); offset += header.bytes; break; case 260: std::memcpy(&this->color, source, header.bytes); offset += header.bytes; break; default: offset += header.bytes; break; } } return offset; } // OFFSET: 0x00738590 // FUNCTION: fn_07667 UIDragMiniPartyWnd::~UIDragMiniPartyWnd() = default; // OFFSET: 0x00738640 // FUNCTION: fn_07669 void UIDragMiniPartyWnd::Slot15(int, int) { this->iconPositions.resize(2); this->iconPositions[0].x = 5; this->iconPositions[0].y = 5; this->iconPositions[0].size = 34; this->iconPositions[1].x = 4; this->iconPositions[1].y = 1; this->iconPositions[1].size = 27; if (!this->gauge) { this->gauge = new UIPcGage(); this->gauge->SetSize(60, 5); this->gauge->Move(54, 25); this->AddChild(this->gauge); } } // OFFSET: 0x007387A0 // FUNCTION: fn_07670 void UIDragMiniPartyWnd::Paint() { this->ClearSurface(0xFFFFFFFF); std::string prefix = "유저인터페이스\\renewalparty\\"; if (this->member.valid) { bool dead = false; if (this->member.dead == 1) { dead = true; } else if (this->member.accountId == g_session.m_aid) { dead = (*reinterpret_cast(reinterpret_cast(g_modeMgr.GetGameMode()) + 0x250) == 1); } int yOffset = this->member.leader ? 0 : 2; const char* jobFmt = dead ? "%sicon_jobs_%d_die.bmp" : "%sicon_jobs_%d.bmp"; char path[256]; sprintf(path, jobFmt, prefix.c_str(), this->member.job); this->DrawBitmap( this->iconPositions[this->iconIndex].x, this->iconPositions[this->iconIndex].y + yOffset, reinterpret_cast(ResourceMgr::Instance().Load(Resolve(path))), true ); if (this->member.leader == 0) { sprintf(path, "%sico_partyCrown.bmp", prefix.c_str()); this->DrawBitmap( this->iconPositions[this->iconIndex].x + 2, 0, reinterpret_cast(ResourceMgr::Instance().Load(Resolve(path))), true ); } const char* mapName = reinterpret_cast(g_session).sub_DDE770(this->member.map.c_str()); char text[256]; sprintf(text, "%d %s(%s)", this->member.level, this->member.name.c_str(), mapName); std::string clipped = this->sub_A80880(this->geometry.width - 0x43, text, 0, 12, 1); this->sub_A84360( this->iconPositions[this->iconIndex].x + 0x1C, this->iconPositions[this->iconIndex].y + 3, clipped.c_str(), 0, 0, 12, 0x00B07F72, 1, 0 ); if (this->gauge) { char hpText[128]; sprintf(hpText, "%d/%d", this->gauge->current, this->gauge->maximum); int len = static_cast(strlen(hpText)); this->sub_A84360( this->gauge->geometry.x + 0x42, this->gauge->geometry.y - 4, hpText, len, 0, 10, 0, 0, 0 ); } memset(path, 0, 0x100); const char* statusIcon; if (this->member.offline == 0) { if (this->member.accountId == g_session.m_aid) { statusIcon = "%sicon_party_me.bmp"; } else { statusIcon = "%sicon_party_on.bmp"; } } else { statusIcon = "%sicon_party_off.bmp"; } sprintf(path, statusIcon, prefix.c_str()); const BitmapImage* statusBmp = reinterpret_cast(ResourceMgr::Instance().Load(Resolve(path))); if (this->gauge) { this->DrawBitmap( static_cast(this->geometry.width * 0.8f), this->gauge->geometry.y - 5, statusBmp, true ); } } } // OFFSET: 0x00738630 // FUNCTION: fn_07668 void UIDragMiniPartyWnd::MoveGauge(int x, int y) { this->gauge->Move(x, y); } // OFFSET: 0x00738CE0 // FUNCTION: fn_07671 void UIDragMiniPartyWnd::Slot31(int argument1, int argument2) { auto* window = static_cast(g_windowMgr.LookupWindow(34)); if (window) { window->sub_73A1C0(argument1 + this->geometry.x, argument2 + this->geometry.y, this->unknown_0108); } } // OFFSET: 0x00738D20 // FUNCTION: fn_07672 void UIDragMiniPartyWnd::RemoveGauge() { this->RemoveChild(this->gauge, 1); this->gauge = nullptr; } // OFFSET: 0x00738D50 // FUNCTION: fn_07674 void UIDragMiniPartyWnd::SetUnknown010C(int first, int second) { this->unknown_010C = first; this->unknown_0110 = second; } // OFFSET: 0x00738D40 // FUNCTION: fn_07673 void UIDragMiniPartyWnd::SetGaugeValues(int current, int maximum) { this->gauge->SetValues(current, maximum); } // OFFSET: 0x0089BCC0 // FUNCTION: fn_11577 void UIPcGage::SetValues(int current, int maximum) { this->current = current; this->maximum = maximum; this->Invalidate(); } // OFFSET: 0x0089C360 // FUNCTION: fn_11586 void UIPcGage::SetLimits(int first, int second) { this->unknown_00A8 = first; this->unknown_00AC = second; this->Invalidate(); } // OFFSET: 0x00738EC0 // FUNCTION: fn_07680 UIFriendOptionWnd::~UIFriendOptionWnd() = default; // OFFSET: 0x00738F30 // FUNCTION: fn_07681 void UIFriendOptionWnd::Slot15(int, int) { auto& controls = this->m_options->buttons; const char* label = controls.services.MessageText(361); int width = std::min(this->TextWidth(controls.fonts, controls.locale, label, 0, 0, 12, 0, 0) + 12, this->geometry.width - 15); this->option0Box = new UICheckBox(*this->m_context, controls); this->option0Box->SetSize(width, 12); this->option0Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", controls.services.MessageText(361)); this->option0Box->Move(6, 21); this->option0Box->SetChecked(this->m_options->option0); this->AddChild(this->option0Box); label = controls.services.MessageText(359); width = std::min(this->TextWidth(controls.fonts, controls.locale, label, 0, 0, 12, 0, 0) + 12, this->geometry.width - 15); this->option2Box = new UICheckBox(*this->m_context, controls); this->option2Box->SetSize(width, 12); this->option2Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", controls.services.MessageText(359)); this->option2Box->Move(6, 37); this->option2Box->SetChecked(this->m_options->option2); this->AddChild(this->option2Box); label = controls.services.MessageText(362); width = std::min(this->TextWidth(controls.fonts, controls.locale, label, 0, 0, 12, 0, 0) + 12, this->geometry.width - 15); this->option1Box = new UICheckBox(*this->m_context, controls); this->option1Box->SetSize(width, 12); this->option1Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", controls.services.MessageText(362)); this->option1Box->Move(6, 53); this->option1Box->SetChecked(this->m_options->option1); this->AddChild(this->option1Box); this->closeButton = this->AddCloseButton(controls, "Alt+I", 0); } // OFFSET: 0x007391C0 // FUNCTION: fn_07682 void UIFriendOptionWnd::Paint() { auto& controls = this->m_options->buttons; const int titleHeight = this->DrawTitleBar(controls.fonts, controls.locale, true, LookupMessage(355), 0); this->DrawPanelBackground(titleHeight, 0, ""); const int barHeight = this->DrawButtonBar(0, 0, 1); this->FillRegion(0, this->geometry.height - barHeight, this->geometry.width, 1, 0xC0C0C0); } // OFFSET: 0x00739220 // FUNCTION: fn_07683 int UIFriendOptionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { if (message == 6) { if (a == 201) { this->m_frameContext->windows.CloseWindow(68); } else if (a == 213) { if (sender == this->option0Box) { this->m_options->option0 = static_cast(b); } else if (sender == this->option2Box) { this->m_options->option2 = static_cast(b); } else if (sender == this->option1Box) { this->m_options->option1 = static_cast(b); } } return 0; } if (message == 34) { this->saved = reinterpret_cast(a); if (!this->saved->IsValid()) { this->saved->Reset(); } this->Move(this->saved->x, this->saved->y); return 0; } return this->UIFrameWnd::SendMsg(sender, message, a, b, c, d); } // OFFSET: 0x009A54B0 // FUNCTION: fn_13630 int FriendOptionWndInfo::IsValid() const { return this->width == 280 && this->height == 120 && this->x >= 0 && this->x <= g_renderer->viewport.width - 280 && this->y >= 0 && this->y <= g_renderer->viewport.height - 120; } // OFFSET: 0x007392F0 // FUNCTION: fn_07684 void UIFriendOptionWnd::Slot11() { if (this->saved) { this->saved->width = this->geometry.width; this->saved->height = this->geometry.height; this->saved->x = this->geometry.x; this->saved->y = this->geometry.y; } } // OFFSET: 0x007393E0 // FUNCTION: fn_07686 UIJobIconButton::~UIJobIconButton() = default; // OFFSET: 0x00739450 // FUNCTION: fn_07687 void UIJobIconButton::Paint() { std::string name; if (this->m_disabled == 1) { name = this->m_names[3]; } else { switch (this->geometry.unknown_0030) { case 0: name = this->m_names[0]; break; case 1: name = this->m_names[1]; break; case 2: name = this->m_names[2]; break; } } if (!name.empty()) { auto* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(name.c_str()))); if (bitmap) { if (this->unknown_0120 == 1) { this->DrawAuxiliary(1, 0, 0, &bitmap->image, true, false); } else { this->DrawBitmap(0, 0, &bitmap->image, true); } } } if (this->parent) { this->parent->Invalidate(); } } // OFFSET: 0x007395E0 // FUNCTION: fn_07688 void UIJobIconButton::Slot25(int x, int y) { if (UIWindow* window = this->m_context->windowMgr.LookupWindow(34)) { window->Slot25(x + this->geometry.x, y + this->geometry.y); } } // OFFSET: 0x00739610 // FUNCTION: fn_07689 void UIJobIconButton::Slot31(int x, int y) { if (UIWindow* window = this->m_context->windowMgr.LookupWindow(34)) { window->Slot31(x + this->geometry.x, y + this->geometry.y); } } // OFFSET: 0x00739640 // FUNCTION: fn_07690 void UIJobIconButton::Slot33(int x, int y) { if (UIWindow* window = this->m_context->windowMgr.LookupWindow(34)) { window->Slot33(x + this->geometry.x, y + this->geometry.y); } } // OFFSET: 0x00739BF0 // FUNCTION: fn_07697 MiniPartyInfoEntry::MiniPartyInfoEntry(const char* text, int value) : text(text), value(value) { } // OFFSET: 0x0073A540 // FUNCTION: fn_07705 MessengerMember UIMessengerGroupWnd::MemberAtIndex(int index) { int position = 0; for (auto it = this->members.begin(); it != this->members.end(); ++it, ++position) { if (index == position) { return *it; } } return MessengerMember(0); } // OFFSET: 0x0073CD30 // FUNCTION: fn_07708 void UIMessengerGroupWnd::Slot26(int, int) { if (!g_messengerGroupCollapsed) { this->SendMsg(nullptr, 6, 232, 0, 0, 0); } } // OFFSET: 0x0073D080 // FUNCTION: fn_07710 void UIMessengerGroupWnd::Slot31(int x, int y) { UIFrameWnd::Slot31(x, y); if (UIWindow* window = this->CompanionWindow()) { window->geometry.targetAlpha = 255; window->geometry.alphaStart = timeGetTime(); } UIWindow* transient = g_windowMgr.window_4F250; if (transient && static_cast(transient)->member.valid) { transient->geometry.unknown_0030 = 1; g_windowMgr.Schedule(g_windowMgr.window_4F250); g_windowMgr.window_4F250 = nullptr; } } // OFFSET: 0x0073D3F0 // FUNCTION: fn_07712 void UIMessengerGroupWnd::Slot27(int x, int y) { UIFrameWnd::Slot27(x, y); if (UIWindow* window = this->CompanionWindow()) { x = 0; y = 0; this->ToScreen(x, y); window->Move(x + 2 + this->geometry.width, y); } } // OFFSET: 0x0073D530 // FUNCTION: fn_07714 void UIMessengerGroupWnd::Slot35(int delta) { if (this->scrollable) { int step = this->visibleRows - 1; if (step > 3) { step = 3; } this->SendMsg(this->scrollBar, 7, delta < 0 ? step : -step, 0, 0, 0); } } // OFFSET: 0x0073D580 // FUNCTION: fn_07715 void UIMessengerGroupWnd::UpdateScroll() { if (!this->scrollBar) { return; } const int rows = this->members.size() / this->columns + (this->members.size() % this->columns != 0); const int visible = this->visibleRows; int range = 0; if (rows - visible >= 0) { range = rows - visible; } this->scrollable = range != 0; if (range) { this->scrollBar->SetRange(range, visible, rows); int top = this->scrollTop; if (top < 0) { this->scrollTop = 0; top = 0; } const int limit = rows - this->visibleRows; if (top > limit) { this->scrollTop = limit; top = limit; } this->scrollBar->SetPosition(top); } else { this->scrollTop = 0; this->scrollBar->SetRange(0, visible, rows); } this->scrollBar->Invalidate(); this->UpdateGauges(); } // OFFSET: 0x0073D640 // FUNCTION: fn_07716 void UIMessengerGroupWnd::LayoutButtons() { int hidden = 0; for (int index = 0; index < 11; ++index) { if (this->mode == 1 && this->hiddenButtons[index]) { this->buttons[index]->Move(-100, -100); ++hidden; } else { this->buttons[index]->Move((index - hidden) * 26 + 5, this->geometry.height - 40); } } int x; if (this->mode == 1) { const int offset = hidden * -26; if (ClientMessenger{g_session.m_partyMembers, g_session.m_friends}.PartyCount()) { this->buttons[10]->Move(offset + 213, this->geometry.height - 40); this->buttons[9]->Move(offset + 161, this->geometry.height - 40); this->buttons[8]->Move(offset + 187, this->geometry.height - 40); this->buttons[7]->Move(-100, -100); } else { this->buttons[10]->Move(-100, -100); this->buttons[7]->Move(offset + 161, this->geometry.height - 40); this->buttons[8]->Move(-100, -100); this->buttons[9]->Move(-100, -100); } x = offset + 135; } else { this->buttons[7]->Move(-100, -100); this->buttons[8]->Move(-100, -100); this->buttons[9]->Move(-100, -100); this->buttons[10]->Move(-100, -100); x = 135; } if (g_messengerGroupCollapsed) { this->buttons[5]->Move(x, this->geometry.height - 40); this->buttons[6]->Move(-100, -100); } else { this->buttons[6]->Move(x, this->geometry.height - 40); this->buttons[5]->Move(-100, -100); } } // OFFSET: 0x0073D800 // FUNCTION: fn_07717 void UIMessengerGroupWnd::UpdateGauges() { CGameMode* gameMode = static_cast(g_modeMgr.GetGameMode()); if (!gameMode || !this->mode) { return; } int shown = 0; int index = 0; UIPcGage** gauge = this->gauges; for (auto it = this->members.begin(); it != this->members.end(); ++it, ++index, ++gauge) { if (index < this->scrollTop * this->columns) { if ((*gauge)->geometry.x != -100) { (*gauge)->Move(-100, -100); } continue; } if (it->valid) { CPc* pc; if (it->accountId == g_session.m_aid) { pc = gameMode->scene->player; } else { pc = dynamic_cast(static_cast(gameMode->scene->GetGameActorByAID(it->accountId))); } const int y = shown / this->columns * this->rowHeight + 17; if ((*gauge)->geometry.y != y) { (*gauge)->Move(47, static_cast(static_cast(this->rowHeight) * 0.76f + static_cast(y))); } if (pc && !it->offline) { (*gauge)->SetColor(0x444444); } else if ((*gauge)->geometry.x != -100) { (*gauge)->Move(-100, -100); } } if (++shown > this->visibleRows * this->columns && (*gauge)->geometry.x != -100) { (*gauge)->Move(-100, -100); } } } // OFFSET: 0x0089CFD0 // FUNCTION: fn_11596 void UIGage::SetColor(std::uint32_t color) { this->colors[0] = color; } // OFFSET: 0x0073FD90 // FUNCTION: fn_07719 void UIMessengerGroupWnd::Slot11() { if (this->saved) { this->saved->width = this->geometry.width; this->saved->height = this->geometry.height; this->saved->x = this->geometry.x; this->saved->y = this->geometry.y; this->saved->unknown_0014 = this->mode; this->saved->unknown_0018 = this->iconIndex; } } // OFFSET: 0x0073FFC0 // FUNCTION: fn_07726 UIMiniPartyInfoWnd::UIMiniPartyInfoWnd(UIWindowContext& windowContext, UIFrameContext& frameContext) : UIFrameWnd(windowContext, frameContext, 0), m_gauge(nullptr), m_owner(nullptr) { this->m_entries.clear(); } // OFFSET: 0x00740170 // FUNCTION: fn_07728 MessengerMember UIMiniPartyWnd::GetMember() { return this->m_member; } // OFFSET: 0x00740250 // FUNCTION: fn_07729 void UIMiniPartyInfoWnd::Slot15(int width, int) { if (!this->m_gauge) { this->m_gauge = new UIPcGage(); this->m_gauge->SetSize(static_cast(static_cast(width) * 0.38f), 5); this->m_gauge->Move(35, 23); this->AddChild(this->m_gauge); } } // OFFSET: 0x00AA24D0 // FUNCTION: fn_17213 void UIWindowMgr::MoveTransient(int x, int y) { UIDragMiniPartyWnd* transient = static_cast(this->window_4F250); if (transient && transient->member.valid) { transient->Move(x - transient->unknown_010C, y - transient->unknown_0110); } } // OFFSET: 0x00AA9E90 // FUNCTION: fn_17262 void UIWindowMgr::RetireTransientWindow() { UIDragMiniPartyWnd* transient = static_cast(this->window_4F250); if (transient && transient->member.valid) { transient->geometry.unknown_0030 = 1; this->Schedule(transient); this->window_4F250 = nullptr; } }