mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add quest details dialog, fix vendor UI, suppress both-button clicks
Parse SMSG_QUESTGIVER_QUEST_DETAILS and show quest text with Accept/ Decline buttons. Vendor window now shows item names with quality colors, stat tooltips on hover, player money, and closes properly via X button. Suppress left/right-click targeting and interaction when the other mouse button is held (both-button run forward).
This commit is contained in:
parent
60be428250
commit
67a3da3bae
6 changed files with 227 additions and 5 deletions
|
|
@ -1182,6 +1182,24 @@ public:
|
|||
static network::Packet build(uint64_t npcGuid, uint32_t questId);
|
||||
};
|
||||
|
||||
/** SMSG_QUESTGIVER_QUEST_DETAILS data (simplified) */
|
||||
struct QuestDetailsData {
|
||||
uint64_t npcGuid = 0;
|
||||
uint32_t questId = 0;
|
||||
std::string title;
|
||||
std::string details; // Quest description text
|
||||
std::string objectives; // Objectives text
|
||||
uint32_t suggestedPlayers = 0;
|
||||
uint32_t rewardMoney = 0;
|
||||
uint32_t rewardXp = 0;
|
||||
};
|
||||
|
||||
/** SMSG_QUESTGIVER_QUEST_DETAILS parser */
|
||||
class QuestDetailsParser {
|
||||
public:
|
||||
static bool parse(network::Packet& packet, QuestDetailsData& data);
|
||||
};
|
||||
|
||||
// ============================================================
|
||||
// Phase 5: Vendor
|
||||
// ============================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue