mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add Duel and Inspect to target, focus, and party member context menus
This commit is contained in:
parent
716c0c0e4c
commit
7943edf252
1 changed files with 15 additions and 0 deletions
|
|
@ -2544,6 +2544,12 @@ void GameScreen::renderTargetFrame(game::GameHandler& gameHandler) {
|
|||
if (ImGui::MenuItem("Trade")) {
|
||||
gameHandler.initiateTrade(tGuid);
|
||||
}
|
||||
if (ImGui::MenuItem("Duel")) {
|
||||
gameHandler.proposeDuel(tGuid);
|
||||
}
|
||||
if (ImGui::MenuItem("Inspect")) {
|
||||
gameHandler.inspectTarget();
|
||||
}
|
||||
ImGui::Separator();
|
||||
if (ImGui::MenuItem("Add Friend")) {
|
||||
gameHandler.addFriend(name);
|
||||
|
|
@ -2911,6 +2917,12 @@ void GameScreen::renderFocusFrame(game::GameHandler& gameHandler) {
|
|||
gameHandler.inviteToGroup(focusName);
|
||||
if (ImGui::MenuItem("Trade"))
|
||||
gameHandler.initiateTrade(fGuid);
|
||||
if (ImGui::MenuItem("Duel"))
|
||||
gameHandler.proposeDuel(fGuid);
|
||||
if (ImGui::MenuItem("Inspect")) {
|
||||
gameHandler.setTarget(fGuid);
|
||||
gameHandler.inspectTarget();
|
||||
}
|
||||
}
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
|
@ -6231,6 +6243,9 @@ void GameScreen::renderPartyFrames(game::GameHandler& gameHandler) {
|
|||
if (ImGui::MenuItem("Trade")) {
|
||||
gameHandler.initiateTrade(member.guid);
|
||||
}
|
||||
if (ImGui::MenuItem("Duel")) {
|
||||
gameHandler.proposeDuel(member.guid);
|
||||
}
|
||||
if (ImGui::MenuItem("Inspect")) {
|
||||
gameHandler.setTarget(member.guid);
|
||||
gameHandler.inspectTarget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue