Batch #15141 by ragnarok-clanker: no function's compiled code changes; checked with 537 compiled unit(s), including every includer of Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Contents/AchievementMgr.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/EnchantMgr.h, Source/Contents/GuildInfo.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/Sound/SoundMgr.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TableMng.h, Source/Contents/World/SkyBox.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl.
78 lines
2.4 KiB
C++
78 lines
2.4 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_CHAT_UINEWCHATWND_H
|
|
#define RAGNAROK_SOURCE_UI_CHAT_UINEWCHATWND_H
|
|
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
class UIChatHisBox;
|
|
class UITabControl;
|
|
class UIEditCtrl;
|
|
|
|
class UINewChatWnd : public UIFrameWnd {
|
|
public:
|
|
UINewChatWnd();
|
|
|
|
static void SaveChatWndInfo();
|
|
|
|
void Resize(int width, int height) override;
|
|
void OnCreate(int width, int height) override;
|
|
void Move(int x, int y) override;
|
|
void StoreInfo() override;
|
|
void Show(int visible) override;
|
|
void Paint() override;
|
|
void OnLBtnDown(int x, int y) override;
|
|
void OnMouseMove(int x, int y) override;
|
|
void OnLBtnUp(int x, int y) override;
|
|
bool GetCustomTransBoxInfo(void* output) override;
|
|
void DrawTransBox() override;
|
|
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
|
void SaveChatLogs();
|
|
void RefreshTabs(bool arrange);
|
|
std::string ConvertChat(std::string text);
|
|
bool SuggestionsVisible() const;
|
|
void ShowSuggestions(std::uint8_t visible);
|
|
void ApplyInputLayout();
|
|
void ApplyHeaderLayout();
|
|
void ResizeRows(int count);
|
|
void ToggleInput();
|
|
|
|
/* 00B4 */ UIEditCtrl* m_inputEdit;
|
|
/* 00B8 */ UIWindow* m_inputResizer;
|
|
/* 00BC */ UIEditCtrl* m_chatEdit;
|
|
/* 00C0 */ UIWindow* m_whisperEdit;
|
|
/* 00C4 */ int m_inputX;
|
|
/* 00C8 */ int m_inputY;
|
|
/* 00CC */ int m_listWidth;
|
|
/* 00D0 */ int m_listHeight;
|
|
/* 00D4 */ unsigned char m_primaryStateStorage[0x4];
|
|
/* 00D8 */ std::uint32_t m_listColor;
|
|
/* 00DC */ unsigned char m_secondaryStateStorage[0x4];
|
|
/* 00E0 */ UIWindow* m_inputButtons[3];
|
|
/* 00EC */ unsigned char unknown_00EC[0x4];
|
|
/* 00F0 */ int m_menuMode;
|
|
/* 00F4 */ std::vector<UIChatHisBox*> m_tabs;
|
|
/* 0100 */ UIWindow* m_headerButtons[2];
|
|
/* 0108 */ int m_lockButtonX;
|
|
/* 010C */ int m_chatModeX;
|
|
/* 0110 */ int m_maxTabs;
|
|
/* 0114 */ int m_currentTab;
|
|
/* 0118 */ int m_savedRowCount;
|
|
/* 011C */ int m_inputOffsetY;
|
|
/* 0120 */ int m_tabWidth;
|
|
/* 0124 */ int m_inputAreaHeight;
|
|
/* 0128 */ UIWindow* m_headerButton;
|
|
/* 012C */ UIWindow* m_chatModeButton;
|
|
/* 0130 */ unsigned char unknown_0130[0x8];
|
|
/* 0138 */ UITabControl* m_tabControl;
|
|
/* 013C */ UIWindow* m_suggestions;
|
|
};
|
|
|
|
// INLINED
|
|
inline UINewChatWnd* ChatWindow() {
|
|
return static_cast<UINewChatWnd*>(g_windowMgr.chatWnd);
|
|
}
|
|
|
|
#endif
|