rodecomp/Source/UI/UIBroadcastBalloon.h
ragnarok-clanker fec919b88e Maintenance: Link-completeness fixes so the whole client links into one executable (all units in data/compile.json plus exe-only thir
Batch #13186 by ragnarok-clanker: forced by an admin (40 lower score(s), 206 changed function(s)); checked with 620 compiled unit(s), including every includer of Source/Archive/GPak.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Session.h, Source/Client/Stove/StoveMgr.h, Source/Client/Stove/StovePCSDK.h, Source/Client/Timer.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/RenderObject.h, Source/Contents/CashEmotionMgr.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Skills/SkillTreeScript.h, Source/Render/DX9/D3DX9Runtime.h, Source/Resource/GifResource.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Text/UITextViewerControl.h, Source/UI/UIBroadcastBalloon.h, Source/UI/UICaptchaRegisterWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIReputeWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/Utility/EncryptedName.h.
2026-11-06 10:56:48 +00:00

51 lines
1.3 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_UIBROADCASTBALLOON_H
#define RAGNAROK_SOURCE_UI_UIBROADCASTBALLOON_H
#include "UI/Window/UIWindow.h"
#include <__msvc_chrono.hpp>
#include <cstddef>
#include <cstdint>
#include <list>
#include <map>
#include <string>
struct BroadcastBalloonLine {
/* 0000 */ std::string text;
/* 0018 */ std::uint32_t color;
/* 001C */ std::uint32_t outlineColor;
};
struct BroadcastBalloonMessage {
/* 0000 */ std::list<BroadcastBalloonLine> lines;
/* 0008 */ std::chrono::system_clock::time_point start;
/* 0010 */ std::chrono::seconds duration;
/* 0018 */ int fontHeight;
/* 001C */ std::uint32_t backgroundColor;
/* 0020 */ int width;
/* 0024 */ int height;
};
class UIBroadcastBalloon : public UIWindow {
public:
UIBroadcastBalloon();
void Paint() override;
bool CanHitTest() override;
void Slot19() override;
bool Slot42(void* output) override;
void Slot43() override;
void AddMessage(int category, const BroadcastBalloonMessage& message);
protected:
/* 007C */ std::map<int, std::list<BroadcastBalloonMessage>> m_messages;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(BroadcastBalloonLine) == 0x20);
static_assert(offsetof(BroadcastBalloonMessage, start) == 0x08);
static_assert(offsetof(BroadcastBalloonMessage, height) == 0x24);
static_assert(sizeof(BroadcastBalloonMessage) == 0x28);
#endif
#endif