Skip to content
Permalink
Browse files

Added two options for RaidCD.

  • Loading branch information...
Shestak committed Nov 19, 2013
1 parent 1b529b4 commit 4daf4dbe07b4a72832ccf045bc052d277b4a9783
@@ -194,6 +194,8 @@ C["raidcooldown"] = {
["height"] = 15, -- Bars height
["width"] = 186, -- Bars width(if show_icon = false, bar width+28)
["upwards"] = false, -- Sort upwards bars
["expiration"] = false, -- Sort by expiration time
["show_my"] = true, -- Show my cooldowns
["show_icon"] = true, -- Show icons
["show_inraid"] = true, -- Show in raid zone
["show_inparty"] = true, -- Show in party zone
@@ -168,7 +168,9 @@ local StartTimer = function(name, spellId)
bar:SetScript("OnLeave", OnLeave)
bar:SetScript("OnMouseDown", OnMouseDown)
tinsert(bars, bar)
table.sort(bars, sortByExpiration)
if C.raidcooldown.expiration == true then
table.sort(bars, sortByExpiration)
end
UpdatePositions()
end

@@ -178,8 +180,10 @@ local OnEvent = function(self, event, ...)
if band(sourceFlags, filter) == 0 then return end
if eventType == "SPELL_RESURRECT" or eventType == "SPELL_CAST_SUCCESS" or eventType == "SPELL_AURA_APPLIED" then
local spellId = select(12, ...)
if T.raid_spells[spellId] and show[select(2, IsInInstance())] and sourceName ~= T.name then
StartTimer(sourceName, spellId)
if T.raid_spells[spellId] and show[select(2, IsInInstance())] then
if (sourceName == T.name and C.raidcooldown.show_my == true) or sourceName ~= T.name then
StartTimer(sourceName, spellId)
end
end
end
elseif event == "ZONE_CHANGED_NEW_AREA" and select(2, IsInInstance()) == "arena" or not IsInGroup() then
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "开启团队技能冷却"
L_GUI_COOLDOWN_RAID_HEIGHT = "团队技能冷却栏高度"
L_GUI_COOLDOWN_RAID_WIDTH = "团队技能冷却栏宽度"
L_GUI_COOLDOWN_RAID_SORT = "团队技能冷却栏向上延伸"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time" -- Needs review
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns" -- Needs review
L_GUI_COOLDOWN_RAID_ICONS = "团队技能冷却栏图示"
L_GUI_COOLDOWN_RAID_IN_RAID = "在团队中显示团队技能冷却"
L_GUI_COOLDOWN_RAID_IN_PARTY = "在队伍中显示团队技能冷却"
@@ -150,6 +150,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "Enable raid cooldowns"
L_GUI_COOLDOWN_RAID_HEIGHT = "Raid cooldowns bars height"
L_GUI_COOLDOWN_RAID_WIDTH = "Raid cooldowns bars width (if the icon is enabled, width+28)"
L_GUI_COOLDOWN_RAID_SORT = "Raid cooldowns sort upwards bars"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time"
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns"
L_GUI_COOLDOWN_RAID_ICONS = "Raid cooldowns icons"
L_GUI_COOLDOWN_RAID_IN_RAID = "Show raid cooldowns in raid zone"
L_GUI_COOLDOWN_RAID_IN_PARTY = "Show raid cooldowns in party zone"
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "Activer les CD de raid"
L_GUI_COOLDOWN_RAID_HEIGHT = "Hauteur de la barre des CD de raid"
L_GUI_COOLDOWN_RAID_WIDTH = "Largeur de la barre des CD de raid (+28 si l'icône est activé)"
L_GUI_COOLDOWN_RAID_SORT = "Nouvelle barre au dessus"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time" -- Needs review
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns" -- Needs review
L_GUI_COOLDOWN_RAID_ICONS = "Icônes des CD de raid"
L_GUI_COOLDOWN_RAID_IN_RAID = "Voir les CD alliés en raid"
L_GUI_COOLDOWN_RAID_IN_PARTY = "Voir les CD alliés en groupe"
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "Abklingzeiten des Raids aktivieren"
L_GUI_COOLDOWN_RAID_HEIGHT = "Leistenhöhe für Raidabklingzeiten"
L_GUI_COOLDOWN_RAID_WIDTH = "Leistenbreite der Raidabklingzeiten(Wenn das Symbol aktiviert ist, Breite+28)"
L_GUI_COOLDOWN_RAID_SORT = "Leisten für Raidabklingzeiten wachsen nach oben"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time" -- Needs review
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns" -- Needs review
L_GUI_COOLDOWN_RAID_ICONS = "Symbole für Raidabklingzeiten"
L_GUI_COOLDOWN_RAID_IN_RAID = "Zeige Raidabklingzeiten in Raidgebieten"
L_GUI_COOLDOWN_RAID_IN_PARTY = "Zeige Raidabklingzeiten in Gruppengebieten"
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "Visualizza i recuperi d'incursione"
L_GUI_COOLDOWN_RAID_HEIGHT = "Altezza delle barre dei recuperi d'incursione"
L_GUI_COOLDOWN_RAID_WIDTH = "Larghezza barre recuperi d'incursione (se l'icona è attiva, larghezza + 28)"
L_GUI_COOLDOWN_RAID_SORT = "Disposizione verso l'alto delle barre dei recuperi d'incursione"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time" -- Needs review
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns" -- Needs review
L_GUI_COOLDOWN_RAID_ICONS = "Icone dei recuperi d'incursione"
L_GUI_COOLDOWN_RAID_IN_RAID = "Mostra i recuperi d'incursione nelle aree da incursione"
L_GUI_COOLDOWN_RAID_IN_PARTY = "Mostra i recuperi d'incursione nelle aree da gruppo"
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "Включить рейдовые перезаря
L_GUI_COOLDOWN_RAID_HEIGHT = "Высота индикаторов"
L_GUI_COOLDOWN_RAID_WIDTH = "Ширина индикаторов"
L_GUI_COOLDOWN_RAID_SORT = "Сделать сортировку вверх"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time"
L_GUI_COOLDOWN_RAID_SHOW_MY = "Отображать свои перезарядки"
L_GUI_COOLDOWN_RAID_ICONS = "Отображать иконки рейдовых перезарядок"
L_GUI_COOLDOWN_RAID_IN_RAID = "Отображать в рейде"
L_GUI_COOLDOWN_RAID_IN_PARTY = "Отображать в группе"
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "Mostrar tiempos de reutilización de la Banda"
L_GUI_COOLDOWN_RAID_HEIGHT = "Altura de las barras de tiempo de reutilización de la Banda"
L_GUI_COOLDOWN_RAID_WIDTH = "Anchura de las barras de tiempo de reutilización de la Banda (Si el icono estб activado, anchura+28)"
L_GUI_COOLDOWN_RAID_SORT = "Barras de tiempos de reutilización de la Banda ordenadas hacia arriba"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time" -- Needs review
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns" -- Needs review
L_GUI_COOLDOWN_RAID_ICONS = "Iconos de tiempos de reutilización de la Banda"
L_GUI_COOLDOWN_RAID_IN_RAID = "Mostrar tiempos de reutilización de la Banda en zona de Banda"
L_GUI_COOLDOWN_RAID_IN_PARTY = "Mostrar tiempos de reutilización de la Banda en zona de Grupo"
@@ -153,6 +153,8 @@ L_GUI_COOLDOWN_RAID_ENABLE = "開啟團隊技能冷卻"
L_GUI_COOLDOWN_RAID_HEIGHT = "團隊技能冷卻欄高度"
L_GUI_COOLDOWN_RAID_WIDTH = "團隊技能冷卻欄寬度"
L_GUI_COOLDOWN_RAID_SORT = "團隊技能冷卻欄向上延伸"
L_GUI_COOLDOWN_RAID_EXPIRATION = "Sort by expiration time" -- Needs review
L_GUI_COOLDOWN_RAID_SHOW_MY = "Show my cooldowns" -- Needs review
L_GUI_COOLDOWN_RAID_ICONS = "團隊技能冷卻欄圖示"
L_GUI_COOLDOWN_RAID_IN_RAID = "在團隊中顯示團隊技能冷卻"
L_GUI_COOLDOWN_RAID_IN_PARTY = "在隊伍中顯示團隊技能冷卻"
@@ -179,6 +179,8 @@ local function Local(o)
if o == "UIConfigraidcooldownheight" then o = L_GUI_COOLDOWN_RAID_HEIGHT end
if o == "UIConfigraidcooldownwidth" then o = L_GUI_COOLDOWN_RAID_WIDTH end
if o == "UIConfigraidcooldownupwards" then o = L_GUI_COOLDOWN_RAID_SORT end
if o == "UIConfigraidcooldownexpiration" then o = L_GUI_COOLDOWN_RAID_EXPIRATION end
if o == "UIConfigraidcooldownshow_my" then o = L_GUI_COOLDOWN_RAID_SHOW_MY end
if o == "UIConfigraidcooldownshow_icon" then o = L_GUI_COOLDOWN_RAID_ICONS end
if o == "UIConfigraidcooldownshow_inraid" then o = L_GUI_COOLDOWN_RAID_IN_RAID end
if o == "UIConfigraidcooldownshow_inparty" then o = L_GUI_COOLDOWN_RAID_IN_PARTY end

0 comments on commit 4daf4db

Please sign in to comment.
You can’t perform that action at this time.