- Embeding the custom display window into the new plugin window.
- Embeding the create aura panel into the new plugin window. - Some localization added to Statistics and Create Aura panel.
This commit is contained in:
+60
-48
@@ -1691,22 +1691,36 @@
|
||||
|
||||
end
|
||||
|
||||
|
||||
-- other_values DBM:
|
||||
-- text_size 72
|
||||
-- dbm_timer_id Timer183254cd
|
||||
-- text Next Allure of Flames In
|
||||
-- spellid 183254
|
||||
-- icon Interface\Icons\Spell_Fire_FelFlameStrike
|
||||
|
||||
-- other_values BW:
|
||||
-- bw_timer_id 183828
|
||||
-- text Next Death Brand In
|
||||
-- icon Interface\Icons\warlock_summon_doomguard
|
||||
-- text_size 72
|
||||
|
||||
function _detalhes:InitializeAuraCreationWindow()
|
||||
local DetailsAuraPanel = CreateFrame ("frame", "DetailsAuraPanel", UIParent)
|
||||
DetailsAuraPanel.Frame = DetailsAuraPanel
|
||||
DetailsAuraPanel.__name = L["STRING_CREATEAURA"]
|
||||
DetailsAuraPanel.real_name = "DETAILS_CREATEAURA"
|
||||
DetailsAuraPanel.__icon = [[Interface\BUTTONS\UI-GroupLoot-DE-Up]]
|
||||
DetailsPluginContainerWindow.EmbedPlugin (DetailsAuraPanel, DetailsAuraPanel, true)
|
||||
|
||||
function DetailsAuraPanel.RefreshWindow()
|
||||
_detalhes:OpenAuraPanel() --spellid, spellname, spellicon, encounterid, triggertype, auratype, other_values
|
||||
end
|
||||
end
|
||||
|
||||
local empty_other_values = {}
|
||||
function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, triggertype, auratype, other_values)
|
||||
|
||||
-- other_values DBM:
|
||||
-- text_size 72
|
||||
-- dbm_timer_id Timer183254cd
|
||||
-- text Next Allure of Flames In
|
||||
-- spellid 183254
|
||||
-- icon Interface\Icons\Spell_Fire_FelFlameStrike
|
||||
|
||||
-- other_values BW:
|
||||
-- bw_timer_id 183828
|
||||
-- text Next Death Brand In
|
||||
-- icon Interface\Icons\warlock_summon_doomguard
|
||||
-- text_size 72
|
||||
|
||||
if (not spellname) then
|
||||
spellname = select (1, GetSpellInfo (spellid))
|
||||
end
|
||||
@@ -1714,7 +1728,9 @@
|
||||
wipe (empty_other_values)
|
||||
other_values = other_values or empty_other_values
|
||||
|
||||
if (not DetailsAuraPanel) then
|
||||
if (not DetailsAuraPanel or not DetailsAuraPanel.Initialized) then
|
||||
|
||||
DetailsAuraPanel.Initialized = true
|
||||
|
||||
--> check if there is a group for our auras
|
||||
if (WeakAuras and WeakAurasSaved) then
|
||||
@@ -1728,7 +1744,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
local f = CreateFrame ("frame", "DetailsAuraPanel", UIParent)
|
||||
local f = DetailsAuraPanel or CreateFrame ("frame", "DetailsAuraPanel", UIParent)
|
||||
f:SetSize (800, 600)
|
||||
f:SetPoint ("center", UIParent, "center", 0, 150)
|
||||
f:SetFrameStrata ("DIALOG")
|
||||
@@ -1736,10 +1752,6 @@
|
||||
f:SetMovable (true)
|
||||
f:SetToplevel (true)
|
||||
|
||||
--f:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
|
||||
--f:SetBackdropColor (24/255, 24/255, 24/255, .8)
|
||||
--f:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
|
||||
f.bg1 = f:CreateTexture (nil, "background")
|
||||
f.bg1:SetTexture ([[Interface\AddOns\Details\images\background]], true)
|
||||
f.bg1:SetAlpha (0.8)
|
||||
@@ -2276,7 +2288,7 @@
|
||||
f:Hide()
|
||||
end
|
||||
|
||||
local create_button = fw:CreateButton (f, create_func, 106, 20, "Create Aura")
|
||||
local create_button = fw:CreateButton (f, create_func, 106, 20, L["STRING_CREATEAURA"])
|
||||
create_button:SetTemplate (slider_template)
|
||||
|
||||
local cancel_button = fw:CreateButton (f, function() name_textentry:ClearFocus(); f:Hide() end, 106, 20, "Cancel")
|
||||
@@ -2462,6 +2474,8 @@
|
||||
DetailsAuraPanel:UpdateLabels()
|
||||
|
||||
DetailsAuraPanel:Show()
|
||||
DetailsPluginContainerWindow.OpenPlugin (DetailsAuraPanel)
|
||||
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------
|
||||
@@ -2848,9 +2862,9 @@
|
||||
--> forge
|
||||
|
||||
function _detalhes:InitializeForge()
|
||||
local DetailsForgePanel = _detalhes.gump:CreateSimplePanel (UIParent, 960, 600, "Details! Aura Forge", "DetailsForgePanel")
|
||||
local DetailsForgePanel = _detalhes.gump:CreateSimplePanel (UIParent, 960, 600, "Details! " .. L["STRING_SPELLLIST"], "DetailsForgePanel")
|
||||
DetailsForgePanel.Frame = DetailsForgePanel
|
||||
DetailsForgePanel.__name = "Aura Forge"
|
||||
DetailsForgePanel.__name = L["STRING_SPELLLIST"]
|
||||
DetailsForgePanel.real_name = "DETAILS_FORGE"
|
||||
DetailsForgePanel.__icon = [[Interface\MINIMAP\Vehicle-HammerGold-3]]
|
||||
DetailsPluginContainerWindow.EmbedPlugin (DetailsForgePanel, DetailsForgePanel, true)
|
||||
@@ -2861,24 +2875,22 @@
|
||||
end
|
||||
|
||||
function _detalhes:OpenForge()
|
||||
|
||||
if (not DetailsForgePanel or not DetailsForgePanel.Initialized) then
|
||||
|
||||
if (not DetailsForgePanel or not DetailsForgePanel.Initialized) then
|
||||
|
||||
local fw = _detalhes:GetFramework()
|
||||
local lower = string.lower
|
||||
|
||||
DetailsForgePanel.Initialized = true
|
||||
|
||||
--main frame
|
||||
local f = DetailsForgePanel or _detalhes.gump:CreateSimplePanel (UIParent, 960, 600, "Details! Forge", "DetailsForgePanel")
|
||||
local f = DetailsForgePanel or _detalhes.gump:CreateSimplePanel (UIParent, 960, 600, "Details! " .. L["STRING_SPELLLIST"], "DetailsForgePanel")
|
||||
f:SetPoint ("center", UIParent, "center")
|
||||
f:SetFrameStrata ("HIGH")
|
||||
f:SetToplevel (true)
|
||||
f:SetMovable (true)
|
||||
f.Title:SetTextColor (1, .8, .2)
|
||||
|
||||
|
||||
|
||||
local have_plugins_enabled
|
||||
|
||||
for id, instanceTable in pairs (_detalhes.EncounterInformation) do
|
||||
@@ -2948,12 +2960,30 @@
|
||||
f.bg1:SetSize (790, 454)
|
||||
f.bg1:SetAllPoints()
|
||||
|
||||
--f:SetBackdropColor (unpack (_detalhes.default_backdropcolor))
|
||||
|
||||
f:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\AddOns\Details\images\background]], tileSize = 64, tile = true})
|
||||
f:SetBackdropColor (.5, .5, .5, .5)
|
||||
f:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
|
||||
--[=[
|
||||
--scroll gradient
|
||||
local blackdiv = f:CreateTexture (nil, "artwork")
|
||||
blackdiv:SetTexture ([[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]])
|
||||
blackdiv:SetVertexColor (0, 0, 0)
|
||||
blackdiv:SetAlpha (1)
|
||||
blackdiv:SetPoint ("topleft", f, "topleft", 170, -100)
|
||||
blackdiv:SetHeight (461)
|
||||
blackdiv:SetWidth (200)
|
||||
|
||||
--big gradient
|
||||
local blackdiv = f:CreateTexture (nil, "artwork")
|
||||
blackdiv:SetTexture ([[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]])
|
||||
blackdiv:SetVertexColor (0, 0, 0)
|
||||
blackdiv:SetAlpha (0.7)
|
||||
blackdiv:SetPoint ("topleft", f, "topleft", 0, 0)
|
||||
blackdiv:SetPoint ("bottomleft", f, "bottomleft", 0, 0)
|
||||
blackdiv:SetWidth (200)
|
||||
--]=]
|
||||
|
||||
local no_func = function()end
|
||||
local nothing_to_show = {}
|
||||
local current_module
|
||||
@@ -3743,25 +3773,7 @@
|
||||
--width = 160,
|
||||
--height = 18,
|
||||
})
|
||||
|
||||
--scroll gradient
|
||||
local blackdiv = f:CreateTexture (nil, "artwork")
|
||||
blackdiv:SetTexture ([[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]])
|
||||
blackdiv:SetVertexColor (0, 0, 0)
|
||||
blackdiv:SetAlpha (1)
|
||||
blackdiv:SetPoint ("topleft", f, "topleft", 170, -100)
|
||||
blackdiv:SetHeight (461)
|
||||
blackdiv:SetWidth (200)
|
||||
|
||||
--big gradient
|
||||
local blackdiv = f:CreateTexture (nil, "artwork")
|
||||
blackdiv:SetTexture ([[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]])
|
||||
blackdiv:SetVertexColor (0, 0, 0)
|
||||
blackdiv:SetAlpha (0.7)
|
||||
blackdiv:SetPoint ("topleft", f, "topleft", 0, 0)
|
||||
blackdiv:SetPoint ("bottomleft", f, "bottomleft", 0, 0)
|
||||
blackdiv:SetWidth (200)
|
||||
|
||||
|
||||
local select_module = function (a, b, module_number)
|
||||
|
||||
if (current_module ~= module_number) then
|
||||
|
||||
Reference in New Issue
Block a user