mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-16 17:13:52 +00:00
- Extract renderItemTooltip() (510 LOC) from ChatMarkupRenderer into dedicated ItemTooltipRenderer class; chat_markup_renderer.cpp 766→192 LOC - Extract formatChatMessage(), detectChannelPrefix(), inputTextCallback() from render(); render() 711→376 LOC - Consolidate replaceGenderPlaceholders() from 3 copies into chat_utils::replaceGenderPlaceholders(); remove 118 LOC duplicate from quest_log_screen.cpp, update 8 call sites in window_manager.cpp - Delete chat_panel_commands.cpp (359 LOC) — absorb sendChatMessage, executeMacroText, PortBot helpers into chat_panel.cpp; move evaluateMacroConditionals to macro_eval_convenience.cpp - Delete chat_panel_utils.cpp (229 LOC) — absorb small utilities into chat_panel.cpp - Replace 3 forward declarations of evaluateMacroConditionals with #include "ui/chat/macro_evaluator.hpp" Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
28 lines
737 B
C++
28 lines
737 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace wowee {
|
|
namespace game { class GameHandler; }
|
|
namespace pipeline { class AssetManager; }
|
|
namespace ui {
|
|
|
|
class InventoryScreen;
|
|
|
|
/**
|
|
* Renders a full WoW-style item tooltip via ImGui.
|
|
*
|
|
* Extracted from ChatMarkupRenderer::renderItemTooltip (Phase 6.7).
|
|
* Handles: item name/quality color, armor/DPS, stats, sockets, set bonuses,
|
|
* durability, sell price, required level, comparison tooltip.
|
|
*/
|
|
class ItemTooltipRenderer {
|
|
public:
|
|
static void render(uint32_t itemEntry,
|
|
game::GameHandler& gameHandler,
|
|
InventoryScreen& inventoryScreen,
|
|
pipeline::AssetManager* assetMgr);
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace wowee
|