[Dialogue] Add support for Dialogue Window buttons. (#1546)

* [Dialogue] Add support for Dialogue Window buttons.
- Also changes "mysterious" identifier to "{mysterious}".
- Both button names are required for anything to show up, otherwise it defaults to Yes/No similar to Client::SendFullPopup.

* Move SetEntityVariable so responses can override default button response.

* Add negativeid support so you can override button two popup ID.

* Fix log.

* Update dialogue_window.cpp

Convert button names to strings and negativeid to secondrespondid.
This commit is contained in:
Kinglykrab authored and GitHub committed 2021-09-19 16:24:04 -07:00
1 parent c15c54e920
commit 6a5face0aa
3 files changed
+141 -16

No files matched your search

+4 -2
View File
@@ -203,8 +203,10 @@ enum eInnateSkill {
InnateDisabled = 255
};
const std::string DIAWIND_RESPONSE_KEY = "diawind_npcresponse";
const uint32 POPUPID_DIAWIND = 999;
const std::string DIAWIND_RESPONSE_ONE_KEY = "diawind_npc_response_one";
const std::string DIAWIND_RESPONSE_TWO_KEY = "diawind_npc_response_two";
const uint32 POPUPID_DIAWIND_ONE = 99999;
const uint32 POPUPID_DIAWIND_TWO = 100000;
const uint32 POPUPID_UPDATE_SHOWSTATSWINDOW = 1000000;
struct ClientReward