Files
WoWee/include/ui/chat/chat_settings.hpp
Kelsi 073875007a feat(chat): refine chat window UI
Update chat view styling, idle message dimming, row tinting, resize behavior, copy support, compact input controls, and saved chat options.

Build passes.
2026-07-10 13:03:10 -07:00

44 lines
1.2 KiB
C++

#pragma once
#include <functional>
// Forward declaration for ImGui (avoid pulling full imgui header)
struct ImGuiContext;
namespace wowee {
namespace ui {
/**
* Chat appearance and auto-join settings.
*
* Extracted from ChatPanel (Phase 1.1 of chat_panel_ref.md).
* Pure data + settings UI; no dependency on GameHandler or network.
*/
struct ChatSettings {
// Appearance
bool showTimestamps = false;
int fontSize = 1; // 0=small, 1=medium, 2=large
float backgroundAlpha = 0.6f; // 0.0=transparent, 1.0=opaque
float messageFadeTime = 20.0f; // seconds before messages fade (0=never)
bool fadeMessages = true; // enable message fade-out when not hovering
// Auto-join channels
bool autoJoinGeneral = true;
bool autoJoinTrade = true;
bool autoJoinLocalDefense = true;
bool autoJoinLFG = true;
bool autoJoinLocal = true;
// Window state
bool windowLocked = true;
/** Reset all chat settings to defaults. */
void restoreDefaults();
/** Render the "Chat" tab inside the Settings window. */
void renderSettingsTab(std::function<void()> saveSettingsFn);
};
} // namespace ui
} // namespace wowee