File daybreak.lua changed (mode: 100644) (index e0c46e9..607ec96) |
... |
... |
local function getArtworkTransparency(remainingDuration, duration) |
78 |
78 |
remainingDuration = math.min(remainingDuration, duration) |
remainingDuration = math.min(remainingDuration, duration) |
79 |
79 |
duration = math.max(remainingDuration, duration) |
duration = math.max(remainingDuration, duration) |
80 |
80 |
local a = math.abs(remainingDuration) / math.max(duration, 1) |
local a = math.abs(remainingDuration) / math.max(duration, 1) |
81 |
|
if a < 0.34 then |
|
|
81 |
|
if a < 0.34 and duration <= 60 then |
82 |
82 |
return 0.6 |
return 0.6 |
83 |
83 |
else |
else |
84 |
84 |
return 1 |
return 1 |
|
... |
... |
local function acceptOverlayUnitAura(button, eventCategory) |
287 |
287 |
assert (string.len(filter) <= 256) |
assert (string.len(filter) <= 256) |
288 |
288 |
local name, _, icon = UnitAura(unitDesignation, auraName, nil, filter) |
local name, _, icon = UnitAura(unitDesignation, auraName, nil, filter) |
289 |
289 |
if name then |
if name then |
290 |
|
if button:IsShown() then |
|
291 |
|
--[[ Given update is unnecessary then abort to avoid indicator flicker ]]-- |
|
292 |
|
return |
|
293 |
|
end |
|
294 |
290 |
--[[ FIXME Apply graphics only once instead of every aura update ]]-- |
--[[ FIXME Apply graphics only once instead of every aura update ]]-- |
295 |
291 |
button:SetNormalTexture(icon) |
button:SetNormalTexture(icon) |
296 |
|
local artwork = button:GetNormalTexture() |
|
297 |
|
artwork:SetVertexColor(1, 1, 1, 1) |
|
298 |
292 |
button:Show() |
button:Show() |
299 |
293 |
|
|
300 |
294 |
local archetypeDesignation = button.archetypeDesignation or 1 |
local archetypeDesignation = button.archetypeDesignation or 1 |
|
... |
... |
local function initCyclone(rootFrame) |
861 |
855 |
'Fear', |
'Fear', |
862 |
856 |
'Feezing Trap', |
'Feezing Trap', |
863 |
857 |
'Howl of Terror', |
'Howl of Terror', |
|
858 |
|
'Psychic Scream', |
864 |
859 |
'Polymorph', |
'Polymorph', |
865 |
860 |
--[[ Stun ]]-- |
--[[ Stun ]]-- |
866 |
861 |
'Deep Freeze', |
'Deep Freeze', |
|
... |
... |
local function initCyclone(rootFrame) |
902 |
897 |
--[[ Magic removable ]]-- |
--[[ Magic removable ]]-- |
903 |
898 |
'Counterspell', |
'Counterspell', |
904 |
899 |
'Silence', |
'Silence', |
|
900 |
|
'Unstable Affliction - Silence', |
905 |
901 |
'Spell Lock', |
'Spell Lock', |
906 |
902 |
'Strangulate', |
'Strangulate', |
|
903 |
|
'Avenger\'s Shield', |
907 |
904 |
--[[ Unremovable ]]-- |
--[[ Unremovable ]]-- |
908 |
905 |
'Garrote - Silence', |
'Garrote - Silence', |
909 |
906 |
'Gag Order', |
'Gag Order', |
910 |
907 |
'Solar Beam', |
'Solar Beam', |
911 |
908 |
'Pummel', |
'Pummel', |
912 |
909 |
'Dark Simulacrum', |
'Dark Simulacrum', |
|
910 |
|
'Unstable Affliction', |
913 |
911 |
}) |
}) |
914 |
912 |
|
|
915 |
913 |
createCycloneButton(0, 1, 'DaybreakCycloneFrame2', p, { |
createCycloneButton(0, 1, 'DaybreakCycloneFrame2', p, { |
|
... |
... |
local function initSerendipity(rootFrame) |
1194 |
1192 |
createButton(0, 0, 'Chakra: Sanctuary', 'DaybreakOverlayPriestChakraSanctuary', rootFrame) |
createButton(0, 0, 'Chakra: Sanctuary', 'DaybreakOverlayPriestChakraSanctuary', rootFrame) |
1195 |
1193 |
createButton(0, 0, 'Chakra: Serenity', 'DaybreakOverlayPriestChakraSerenity', rootFrame) |
createButton(0, 0, 'Chakra: Serenity', 'DaybreakOverlayPriestChakraSerenity', rootFrame) |
1196 |
1194 |
createButton(0, 1, 'Chakra', 'DaybreakOverlayPriestChakra', rootFrame) |
createButton(0, 1, 'Chakra', 'DaybreakOverlayPriestChakra', rootFrame) |
|
1195 |
|
createButton(0, 1, 'Blessed Resilience', 'DaybreakOverlayPriestBlessedResilience', rootFrame) |
1197 |
1196 |
--[[ Holy ]]-- |
--[[ Holy ]]-- |
1198 |
1197 |
createButton(1, 0, 'Holy Word: Serenity', 'DaybreaksOverlayPriestHolyWordSerenity', rootFrame) |
createButton(1, 0, 'Holy Word: Serenity', 'DaybreaksOverlayPriestHolyWordSerenity', rootFrame) |
1199 |
1198 |
createButton(1, 1, 'Surge of Light', 'DaybreakOverlayPriestSurgeOfLight', rootFrame) |
createButton(1, 1, 'Surge of Light', 'DaybreakOverlayPriestSurgeOfLight', rootFrame) |
1200 |
1199 |
createButton(1, 2, 'Serendipity', 'DaybreakOverlayPriestSerendipity', rootFrame) |
createButton(1, 2, 'Serendipity', 'DaybreakOverlayPriestSerendipity', rootFrame) |
1201 |
1200 |
createButton(1, 3, 'Guardian Spirit', 'DaybreakOverlayPriestGuardianSpirit', rootFrame) |
createButton(1, 3, 'Guardian Spirit', 'DaybreakOverlayPriestGuardianSpirit', rootFrame) |
|
1201 |
|
createButton(1, 3, 'Spirit of Redemption', 'DaybreakOverlayPriestSpiritOfRedemption', rootFrame) |
1202 |
1202 |
|
|
1203 |
1203 |
--[[ Priest general ]]-- |
--[[ Priest general ]]-- |
1204 |
1204 |
createButton(9, 0, 'Inspiration', 'DaybreakOverlayPriestInspiration', rootFrame) |
createButton(9, 0, 'Inspiration', 'DaybreakOverlayPriestInspiration', rootFrame) |
1205 |
1205 |
createButton(9, 1, 'Renew', 'DaybreakOverlayPriestRenew', rootFrame) |
createButton(9, 1, 'Renew', 'DaybreakOverlayPriestRenew', rootFrame) |
1206 |
1206 |
local arch = getArchetypeDesignationAbsorption() |
local arch = getArchetypeDesignationAbsorption() |
1207 |
1207 |
createButton(9, 2, 'Power Word: Shield', 'DaybreakOverlayPriestPowerWordShield', rootFrame, 'HELPFUL', arch) |
createButton(9, 2, 'Power Word: Shield', 'DaybreakOverlayPriestPowerWordShield', rootFrame, 'HELPFUL', arch) |
|
1208 |
|
createButton(9, 3, 'Fear Ward', 'DaybreakOverlayPriestFearWard', rootFrame) |
1208 |
1209 |
createButton(10, 2, 'Body and Soul', 'DaybreakOverlayPriestBodyAndSoul', rootFrame) |
createButton(10, 2, 'Body and Soul', 'DaybreakOverlayPriestBodyAndSoul', rootFrame) |
1209 |
1210 |
|
|
1210 |
1211 |
--[[ Hide native spell proc indicators that flash in the middle of the screen ]]-- |
--[[ Hide native spell proc indicators that flash in the middle of the screen ]]-- |