Skip to content

Commit

Permalink
0.5.5
Browse files Browse the repository at this point in the history
- Book UI: Fixed an error related to some old books with pictures.
- Controller: Added an option to click the first option by pressing the Confirm button when you start a new interaction with an NPC. Previously, you need to press the Directional pad to select an option then press Confirm.
- Hovering over the dialog options of teleporters in some old raid will show the boss status on the tooltip.
  • Loading branch information
Peterodox committed Dec 4, 2024
1 parent d69dc28 commit 6d73f84
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 12 deletions.
15 changes: 11 additions & 4 deletions Code/Dialogue/DialogueUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,11 @@ end

function DUIDialogBaseMixin:UseQuestLayout(state)
local forceUpdate = SETTINGS_UI_VISIBLE == true;
local isQuestChanged;

if state then
local questID = GetQuestID();
isQuestChanged = self.questID ~= questID;
self.questID = questID;

if (not self.questLayout) or forceUpdate then
Expand Down Expand Up @@ -758,6 +760,8 @@ function DUIDialogBaseMixin:UseQuestLayout(state)
self.WarbandCompleteAlert:Hide();
CallbackRegistry:Trigger("StopViewingQuest");
end

return isQuestChanged
end

function DUIDialogBaseMixin:UpdateQuestTitle(method)
Expand Down Expand Up @@ -810,7 +814,7 @@ function DUIDialogBaseMixin:UpdateQuestTitle(method)
HeaderWidgetManger:AddQuestRemainingTime(seconds);
end

HeaderWidgetManger:RequestQuestLineQuest(questID, 0);
HeaderWidgetManger:RequestQuestLineQuest(questID);
end

local decor = API.GetQuestBackgroundDecor(questID);
Expand Down Expand Up @@ -1403,7 +1407,8 @@ end

function DUIDialogBaseMixin:HandleQuestDetail(playFadeIn)
self:ReleaseAllObjects();
self:UseQuestLayout(true);
local isQuestChanged = self:UseQuestLayout(true);
playFadeIn = playFadeIn or isQuestChanged;

if self.handlerArgs and self.handlerArgs[1] and self.handlerArgs[1] ~= 0 then
local questStartItemID = self.handlerArgs[1];
Expand Down Expand Up @@ -1542,7 +1547,8 @@ end

function DUIDialogBaseMixin:HandleQuestProgress(playFadeIn)
self:ReleaseAllObjects();
self:UseQuestLayout(true);
local isQuestChanged = self:UseQuestLayout(true);
playFadeIn = playFadeIn or isQuestChanged;

local canComplete = IsQuestCompletable();
if canComplete and GetDBBool("AutoCompleteQuest") then
Expand Down Expand Up @@ -1681,7 +1687,8 @@ function DUIDialogBaseMixin:HandleQuestComplete(playFadeIn)
end
end

self:UseQuestLayout(true);
local isQuestChanged = self:UseQuestLayout(true);
playFadeIn = playFadeIn or isQuestChanged;

--Title
local offsetY = self:UpdateQuestTitle("Complete");
Expand Down
50 changes: 48 additions & 2 deletions Code/GossipData/GossipData_LFRQueue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ do --Legacy Raid (LFR) show boss name and status in this wing


LFRGossipOptions = {
--[gossipOptionID] = {dungeonID, mapID, difficultyID, {journalEncounteID1, encounterID1}, {journalEncounteID2, encounterID2}, ...}
--[gossipOptionID] = {dungeonID, mapID, difficultyID, {journalEncounteID1, dungeonEncounterID1}, {journalEncounteID2, dungeonEncounterID2}, ...}

--Shadowlands (npc: 205959)
[110020] = {2090, 2296, DIFFICULTY_LFR, {2429, 2418}, {2428, 2383}, {2420, 2406}}, --The Leeching Vaults
Expand Down Expand Up @@ -237,7 +237,7 @@ end

do --Instance Teleporter Option Tooltip
local Data = {
-- (d)ata = { {mapID, journalEncounteID, encounterID}, }
-- (d)ata = { {mapID, journalEncounteID, dungeonEncounterID}, }
-- (o)nwer = { gossipOptionID1, gossipOptionID2, ... }
};

Expand All @@ -252,6 +252,52 @@ do --Instance Teleporter Option Tooltip
},
};

Data.Antorus = {
{
d = {{1712, 2009, 2082}, {1712, 2004, 2088}}, --Exhaust
o = {47848, 47868},
},
{
d = {{1712, 1983, 2069}, {1712, 1986, 2073}, {1712, 1984, 2063}}, --Burning Throne
o = {47865, },
},
};

Data.Ulduar = {
{
d = {{603, 1637, 1132}}, --Formation Grounds
o = {37961},
},
{
d = {{603, 1638, 1136}, {603, 1639, 1139}, {603, 1640, 1142}}, --Colossal Forge
o = {37962},
},
{
d = {{603, 1640, 1142}}, --Scrapyard
o = {37963},
},
{
d = {{603, 1641, 1140}, {603, 1642, 1137}, {603, 1650, 1130}}, --Antechamber of Ulduar
o = {37964},
},
{
d = {{603, 1642, 1137}, {603, 1643, 1131}, {603, 1644, 1135}, {603, 1645, 1141}}, --Shattered Walkway
o = {37965},
},
{
d = {{603, 1646, 1133}, {603, 1644, 1135}, {603, 1645, 1141}}, --Conservatory of Life
o = {37967},
},
{
d = {{603, 1647, 1138}}, --Spark of Imagination
o = {37969},
},
{
d = {{603, 1649, 1143}}, --Prison of Yogg-Saron
o = {37971},
},
};

for raid, m in pairs(Data) do
for _, n in ipairs(m) do
for _, gossipOptionID in ipairs(n.o) do
Expand Down
7 changes: 7 additions & 0 deletions Code/GossipData/GossipData_Teleport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ local IsTeleportNPC = {
[116670] = true, --Suramar Portal (Nighthold)
[116819] = true, --Suramar Portal (Nighthold)
[116820] = true, --Suramar Portal (Nighthold)

[125720] = true, --Lightforged Beacon (Antorus) First
[128303] = true, --Lightforged Beacon (Antorus) Exhaust (Moved to Kin'garoth after defeat)
[128304] = true, --Lightforged Beacon (Antorus) Burning Throne Entrance (Can move to Argus)
[129876] = true, --Grand Artificer Romuul (Antorus) After Argus

[194569] = true, --Ulduar Teleporter
};

do
Expand Down
2 changes: 1 addition & 1 deletion DialogueUI.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110005, 110007
## Version: 0.5.4
## Version: 0.5.5

## Title: Dialogue UI

Expand Down
2 changes: 1 addition & 1 deletion DialogueUI_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40401
## Version: 0.5.4
## Version: 0.5.5

## Title: Dialogue UI

Expand Down
4 changes: 2 additions & 2 deletions DialogueUI_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11504, 11505
## Version: 0.5.4
## Interface: 11505
## Version: 0.5.5

## Title: Dialogue UI

Expand Down
4 changes: 2 additions & 2 deletions Initialization.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local VERSION_TEXT = "v0.5.4";
local VERSION_DATE = 1732600000;
local VERSION_TEXT = "v0.5.5";
local VERSION_DATE = 1733300000;


local addonName, addon = ...
Expand Down

0 comments on commit 6d73f84

Please sign in to comment.