Skip to content

Commit 6deca9c

Browse files
committed
Merge branch 'main' into ptr
2 parents 2f98992 + e6d9c23 commit 6deca9c

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

ElvUI/Core/Modules/DataTexts/Difficulty.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ local DiffIDLabel = { -- also has IDs maintained in Nameplate StyleFilters
5050
['N'] = { 1, 14, 38, 173, 198, 201 },
5151
['H'] = { 2, 15, 39, 174 },
5252
['M'] = { 16, 23, 40 },
53-
['20'] = { 148, 185 },
53+
['20'] = { 148, 185, 215 },
5454
['10N'] = { 3, 175 },
5555
['25N'] = { 4, 176 },
5656
['10H'] = { 5, 193 },

ElvUI/Core/Modules/DataTexts/Time.lua

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ local displayFormats = {
4949
eu_color = ''
5050
}
5151

52+
local allowID = { -- also has IDs maintained in Nameplate StyleFilters
53+
[2] = true, -- heroic
54+
[23] = true, -- mythic
55+
[148] = true, -- ZG/AQ40
56+
[174] = true, -- heroic (dungeon)
57+
[185] = true, -- normal (legacy)
58+
[198] = true, -- Classic: Season of Discovery
59+
[201] = true, -- Classic: Hardcore
60+
[215] = true, -- Classic: Sunken Temple
61+
}
62+
63+
local lfrID = {
64+
[7] = true,
65+
[17] = true
66+
}
67+
5268
local OnUpdate, db
5369

5470
local function ToTime(start, seconds)
@@ -212,17 +228,14 @@ local function OnEnter()
212228
for i = 1, GetNumSavedInstances() do
213229
local info = { GetSavedInstanceInfo(i) } -- we want to send entire info
214230
local name, _, _, difficulty, locked, extended, _, isRaid = unpack(info)
215-
if name and (locked or extended) then
216-
local isDungeon = difficulty == 2 or difficulty == 23 or difficulty == 174 or difficulty == 198 or difficulty == 201
217-
if isRaid or isDungeon then
218-
local isLFR = difficulty == 7 or difficulty == 17
219-
local _, _, isHeroic, _, displayHeroic, displayMythic = GetDifficultyInfo(difficulty)
220-
local sortName = name .. (displayMythic and 4 or (isHeroic or displayHeroic) and 3 or isLFR and 1 or 2)
221-
local difficultyLetter = (displayMythic and difficultyTag[4]) or ((isHeroic or displayHeroic) and difficultyTag[3]) or (isLFR and difficultyTag[1]) or difficultyTag[2]
222-
local buttonImg = instanceIconByName[name] and format('|T%s:16:16:0:0:96:96:0:64:0:64|t ', instanceIconByName[name]) or ''
223-
224-
tinsert(lockedInstances[isRaid and 'raids' or 'dungeons'], { sortName, difficultyLetter, buttonImg, info })
225-
end
231+
if name and (locked or extended) and (isRaid or allowID[difficulty]) then
232+
local isLFR = lfrID[difficulty]
233+
local _, _, isHeroic, _, displayHeroic, displayMythic = GetDifficultyInfo(difficulty)
234+
local sortName = name .. (displayMythic and 4 or (isHeroic or displayHeroic) and 3 or isLFR and 1 or 2)
235+
local difficultyLetter = (displayMythic and difficultyTag[4]) or ((isHeroic or displayHeroic) and difficultyTag[3]) or (isLFR and difficultyTag[1]) or difficultyTag[2]
236+
local buttonImg = instanceIconByName[name] and format('|T%s:16:16:0:0:96:96:0:64:0:64|t ', instanceIconByName[name]) or ''
237+
238+
tinsert(lockedInstances[isRaid and 'raids' or 'dungeons'], { sortName, difficultyLetter, buttonImg, info })
226239
end
227240
end
228241

ElvUI/Core/Modules/Misc/RaidUtility.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function RU:SetEnabled(button, enabled, isLeader)
7777
if button.SetChecked then
7878
button:SetChecked(enabled)
7979
else
80-
button:SetEnabled(enabled)
80+
button.enabled = enabled
8181
end
8282

8383
if button.Text then -- show text grey when isLeader is false, nil and true should be white
@@ -295,7 +295,7 @@ function RU:OnEvent_ReadyCheckButton()
295295
end
296296

297297
function RU:OnClick_ReadyCheckButton()
298-
if RU:InGroup() then
298+
if self.enabled and RU:InGroup() then
299299
DoReadyCheck()
300300
end
301301
end
@@ -305,7 +305,7 @@ function RU:OnEvent_RoleCheckButton()
305305
end
306306

307307
function RU:OnClick_RoleCheckButton()
308-
if RU:InGroup() then
308+
if self.enabled and RU:InGroup() then
309309
InitiateRolePoll()
310310
end
311311
end

ElvUI/Core/Modules/Nameplates/StyleFilter.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ NP.TriggerConditions = {
143143
[174] = 'heroic',
144144
[185] = 'legacy20normal',
145145
[186] = 'legacy40normal',
146+
[215] = 'normal', -- Classic: Sunken Temple
146147
-- wotlk
147148
[175] = 'legacy10normal',
148149
[176] = 'legacy25normal',

ElvUI/Core/Modules/UnitFrames/UnitFrames.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ do -- IDs maintained in Difficulty Datatext and Nameplate StyleFilters
556556
dungeonHeroic = {2, 39, 174},
557557
dungeonMythic = {23, 40},
558558
dungeonMythicKeystone = {8},
559-
raidNormal = {3, 4, 14, 148, 175, 176, 185, 186}, -- 148 is ZG/AQ40
559+
raidNormal = {3, 4, 14, 148, 175, 176, 185, 186, 215}, -- 148 is ZG/AQ40, 215 is Sunken Temple
560560
raidHeroic = {5, 6, 15, 193, 194},
561561
raidMythic = {16},
562562
}

0 commit comments

Comments
 (0)