Bug fixes for wotlk
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 366
|
||||
local dversion = 367
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
|
||||
+6
-1
@@ -25,6 +25,7 @@ local doublePoint = {
|
||||
["bottoms"] = true,
|
||||
["bottom-top"] = true,
|
||||
["top-bottom"] = true,
|
||||
["right-left"] = true,
|
||||
}
|
||||
|
||||
DF.SetPointMixin = {
|
||||
@@ -32,7 +33,7 @@ DF.SetPointMixin = {
|
||||
if (doublePoint[anchorName1]) then
|
||||
object:ClearAllPoints()
|
||||
local anchorTo
|
||||
if (anchorObject) then
|
||||
if (anchorObject and type(anchorObject) == "table") then
|
||||
xOffset, yOffset = anchorName2 or 0, xOffset or 0
|
||||
anchorTo = anchorObject.widget or anchorObject
|
||||
else
|
||||
@@ -64,6 +65,10 @@ DF.SetPointMixin = {
|
||||
elseif (anchorName1 == "top-bottom") then
|
||||
object:SetPoint("topleft", anchorTo, "bottomleft", xOffset, -yOffset)
|
||||
object:SetPoint("topright", anchorTo, "bottomright", -xOffset, -yOffset)
|
||||
|
||||
elseif (anchorName1 == "right-left") then
|
||||
object:SetPoint("topright", anchorTo, "topleft", xOffset, -yOffset)
|
||||
object:SetPoint("bottomright", anchorTo, "bottomright", xOffset, yOffset)
|
||||
end
|
||||
|
||||
return
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
_detalhes.BFACORE = 131 --core version on BFA launch
|
||||
_detalhes.SHADOWLANDSCORE = 143 --core version on Shadowlands launch
|
||||
--
|
||||
_detalhes.dragonflight_beta_version = 34
|
||||
_detalhes.dragonflight_beta_version = 35
|
||||
|
||||
Details = _detalhes
|
||||
|
||||
|
||||
+1
-1
@@ -3043,5 +3043,5 @@ end
|
||||
local timePlayerFrame = CreateFrame("frame")
|
||||
timePlayerFrame:RegisterEvent("TIME_PLAYED_MSG")
|
||||
timePlayerFrame:SetScript("OnEvent", function()
|
||||
C_Timer.After(0, function() print(Details.GetPlayTimeOnClassString()) end)
|
||||
--C_Timer.After(0, function() print(Details.GetPlayTimeOnClassString()) end)
|
||||
end)
|
||||
+2
-6
@@ -491,12 +491,8 @@
|
||||
bigdog:SetPoint ("bottomleft", custom_window, "bottomleft", 0, 1)
|
||||
bigdog:SetAlpha (0.3)
|
||||
|
||||
local dogGradient = menuBackground:CreateTexture(nil, "artwork")
|
||||
dogGradient:SetPoint("bottomleft", menuBackground, "bottomleft", 0, 0)
|
||||
dogGradient:SetPoint("bottomright", menuBackground, "bottomright", 0, 0)
|
||||
dogGradient:SetColorTexture(1, 1, 1, 1)
|
||||
dogGradient:SetGradient("vertical", {["r"] = 0, ["g"] = 0, ["b"] = 0, ["a"] = 1}, {["r"] = 0, ["g"] = 0, ["b"] = 0, ["a"] = 0})
|
||||
dogGradient:SetHeight(95)
|
||||
local gradientBelowTheLine = DetailsFramework:CreateTexture(menuBackground, {gradient = "vertical", fromColor = {0, 0, 0, 0.45}, toColor = "transparent"}, 1, 95, "artwork", {0, 1, 0, 1}, "dogGradient")
|
||||
gradientBelowTheLine:SetPoint("bottoms")
|
||||
|
||||
local bigdogRow = menuBackground:CreateTexture (nil, "artwork")
|
||||
bigdogRow:SetPoint ("bottomleft", menuBackground, "bottomleft", 1, 1)
|
||||
|
||||
@@ -333,6 +333,13 @@ function Details.options.InitializeOptionsWindow(instance)
|
||||
realBackdropAreaFrame:SetPoint("topleft", f, "topleft", 150, -27)
|
||||
realBackdropAreaFrame:SetSize(770, 570)
|
||||
|
||||
local leftGradient = DetailsFramework:CreateTexture(sectionFrame, {gradient = "horizontal", fromColor = {0, 0, 0, 0}, toColor = {0, 0, 0, 0.3}}, 10, 1, "artwork", {0, 1, 0, 1}, "leftGradient")
|
||||
leftGradient:SetPoint("right-left", realBackdropAreaFrame, 1)
|
||||
|
||||
local bottomGradient = DetailsFramework:CreateTexture(realBackdropAreaFrame, {gradient = "vertical", fromColor = {0, 0, 0, 1}, toColor = {0, 0, 0, 0}}, 1, 20, "artwork", {0, 1, 0, 1}, "bottomGradient")
|
||||
bottomGradient.sublevel = 7
|
||||
bottomGradient:SetPoint("bottoms")
|
||||
|
||||
sectionFrame.name = sectionsName[sectionId]
|
||||
--tinsert(f.sectionFramesContainer, sectionFrame)
|
||||
f.sectionFramesContainer[sectionId] = sectionFrame
|
||||
|
||||
@@ -723,6 +723,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize+20, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -1077,6 +1078,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -1423,7 +1425,7 @@ do
|
||||
name = Loc ["STRING_COLOR"],
|
||||
desc = Loc ["STRING_OPTIONS_BAR_COLOR_DESC"],
|
||||
},
|
||||
|
||||
|
||||
{--background uses class colors
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.texture_background_class_color end,
|
||||
@@ -1791,7 +1793,8 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize+20, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize+40, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -2151,6 +2154,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
local separatorOption = sectionFrame.widget_list[23]
|
||||
@@ -2703,6 +2707,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -3086,6 +3091,7 @@ do
|
||||
|
||||
}
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -3200,6 +3206,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
do --> micro displays
|
||||
@@ -3833,6 +3840,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -4073,6 +4081,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -4449,6 +4458,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
refreshToggleAnchor()
|
||||
end
|
||||
@@ -4597,6 +4607,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -5016,6 +5027,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
sectionFrame:SetScript("OnShow", function()
|
||||
@@ -5347,6 +5359,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(autoSwitchFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
|
||||
@@ -5929,6 +5942,7 @@ do --raid tools
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -6208,6 +6222,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX + 350, startY - 20, heightSize + 300, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -6369,6 +6384,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -6789,6 +6805,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
@@ -6875,6 +6892,7 @@ do
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end
|
||||
|
||||
|
||||
+306
-310
@@ -541,328 +541,324 @@ function _detalhes:SaveProfile (saveas)
|
||||
|
||||
end
|
||||
|
||||
--> save skins
|
||||
if (not _detalhes.do_not_save_skins) then
|
||||
table.wipe (profile.instances)
|
||||
for index, instance in ipairs (_detalhes.tabela_instancias) do
|
||||
local exported = instance:ExportSkin()
|
||||
exported.__was_opened = instance:IsEnabled()
|
||||
exported.__pos = Details.CopyTable (instance:GetPosition())
|
||||
exported.__locked = instance.isLocked
|
||||
exported.__snap = Details.CopyTable (instance.snap)
|
||||
exported.__snapH = instance.horizontalSnap
|
||||
exported.__snapV = instance.verticalSnap
|
||||
profile.instances [index] = exported
|
||||
end
|
||||
--save skins
|
||||
if (not _detalhes.do_not_save_skins) then
|
||||
table.wipe(profile.instances)
|
||||
for index, instance in ipairs(_detalhes.tabela_instancias) do
|
||||
local exported = instance:ExportSkin()
|
||||
exported.__was_opened = instance:IsEnabled()
|
||||
exported.__pos = Details.CopyTable(instance:GetPosition())
|
||||
exported.__locked = instance.isLocked
|
||||
exported.__snap = Details.CopyTable(instance.snap)
|
||||
exported.__snapH = instance.horizontalSnap
|
||||
exported.__snapV = instance.verticalSnap
|
||||
profile.instances[index] = exported
|
||||
end
|
||||
_detalhes.do_not_save_skins = nil
|
||||
|
||||
_detalhes:SaveLocalInstanceConfig()
|
||||
end
|
||||
_detalhes.do_not_save_skins = nil
|
||||
_detalhes:SaveLocalInstanceConfig()
|
||||
|
||||
--> end
|
||||
return profile
|
||||
return profile
|
||||
end
|
||||
|
||||
local default_profile = {
|
||||
--spec coords, reset with: /run Details.class_specs_coords = nil
|
||||
class_specs_coords = {
|
||||
[577] = {128/512, 192/512, 256/512, 320/512}, --havoc demon hunter
|
||||
[581] = {192/512, 256/512, 256/512, 320/512}, --vengeance demon hunter
|
||||
|
||||
--> spec coords
|
||||
-- /run Details.class_specs_coords = nil
|
||||
class_specs_coords = {
|
||||
[577] = {128/512, 192/512, 256/512, 320/512}, --> havoc demon hunter
|
||||
[581] = {192/512, 256/512, 256/512, 320/512}, --> vengeance demon hunter
|
||||
|
||||
[250] = {0, 64/512, 0, 64/512}, --> blood dk
|
||||
[251] = {64/512, 128/512, 0, 64/512}, --> frost dk
|
||||
[252] = {128/512, 192/512, 0, 64/512}, --> unholy dk
|
||||
|
||||
[102] = {192/512, 256/512, 0, 64/512}, --> druid balance
|
||||
[103] = {256/512, 320/512, 0, 64/512}, --> druid feral
|
||||
[104] = {320/512, 384/512, 0, 64/512}, --> druid guardian
|
||||
[105] = {384/512, 448/512, 0, 64/512}, --> druid resto
|
||||
[250] = {0, 64/512, 0, 64/512}, --blood dk
|
||||
[251] = {64/512, 128/512, 0, 64/512}, --frost dk
|
||||
[252] = {128/512, 192/512, 0, 64/512}, --unholy dk
|
||||
|
||||
[253] = {448/512, 512/512, 0, 64/512}, --> hunter bm
|
||||
[254] = {0, 64/512, 64/512, 128/512}, --> hunter marks
|
||||
[255] = {64/512, 128/512, 64/512, 128/512}, --> hunter survivor
|
||||
|
||||
[62] = {(128/512) + 0.001953125, 192/512, 64/512, 128/512}, --> mage arcane
|
||||
[63] = {192/512, 256/512, 64/512, 128/512}, --> mage fire
|
||||
[64] = {256/512, 320/512, 64/512, 128/512}, --> mage frost
|
||||
|
||||
[268] = {320/512, 384/512, 64/512, 128/512}, --> monk bm
|
||||
[269] = {448/512, 512/512, 64/512, 128/512}, --> monk ww
|
||||
[270] = {384/512, 448/512, 64/512, 128/512}, --> monk mw
|
||||
|
||||
[65] = {0, 64/512, 128/512, 192/512}, --> paladin holy
|
||||
[66] = {64/512, 128/512, 128/512, 192/512}, --> paladin protect
|
||||
[70] = {(128/512) + 0.001953125, 192/512, 128/512, 192/512}, --> paladin ret
|
||||
|
||||
[256] = {192/512, 256/512, 128/512, 192/512}, --> priest disc
|
||||
[257] = {256/512, 320/512, 128/512, 192/512}, --> priest holy
|
||||
[258] = {(320/512) + (0.001953125 * 4), 384/512, 128/512, 192/512}, --> priest shadow
|
||||
|
||||
[259] = {384/512, 448/512, 128/512, 192/512}, --> rogue assassination
|
||||
[260] = {448/512, 512/512, 128/512, 192/512}, --> rogue combat
|
||||
[261] = {0, 64/512, 192/512, 256/512}, --> rogue sub
|
||||
|
||||
[262] = {64/512, 128/512, 192/512, 256/512}, --> shaman elemental
|
||||
[263] = {128/512, 192/512, 192/512, 256/512}, --> shamel enhancement
|
||||
[264] = {192/512, 256/512, 192/512, 256/512}, --> shaman resto
|
||||
|
||||
[265] = {256/512, 320/512, 192/512, 256/512}, --> warlock aff
|
||||
[266] = {320/512, 384/512, 192/512, 256/512}, --> warlock demo
|
||||
[267] = {384/512, 448/512, 192/512, 256/512}, --> warlock destro
|
||||
|
||||
[71] = {448/512, 512/512, 192/512, 256/512}, --> warrior arms
|
||||
[72] = {0, 64/512, 256/512, 320/512}, --> warrior fury
|
||||
[73] = {64/512, 128/512, 256/512, 320/512}, --> warrior protect
|
||||
[102] = {192/512, 256/512, 0, 64/512}, -- druid balance
|
||||
[103] = {256/512, 320/512, 0, 64/512}, -- druid feral
|
||||
[104] = {320/512, 384/512, 0, 64/512}, -- druid guardian
|
||||
[105] = {384/512, 448/512, 0, 64/512}, -- druid resto
|
||||
|
||||
[1467] = {256/512, 320/512, 256/512, 320/512}, -- Devastation
|
||||
[1468] = {320/512, 384/512, 256/512, 320/512}, -- Preservation
|
||||
[253] = {448/512, 512/512, 0, 64/512}, -- hunter bm
|
||||
[254] = {0, 64/512, 64/512, 128/512}, --hunter marks
|
||||
[255] = {64/512, 128/512, 64/512, 128/512}, --hunter survivor
|
||||
|
||||
[62] = {(128/512) + 0.001953125, 192/512, 64/512, 128/512}, --mage arcane
|
||||
[63] = {192/512, 256/512, 64/512, 128/512}, --mage fire
|
||||
[64] = {256/512, 320/512, 64/512, 128/512}, --mage frost
|
||||
|
||||
[268] = {320/512, 384/512, 64/512, 128/512}, --monk bm
|
||||
[269] = {448/512, 512/512, 64/512, 128/512}, --monk ww
|
||||
[270] = {384/512, 448/512, 64/512, 128/512}, --monk mw
|
||||
|
||||
[65] = {0, 64/512, 128/512, 192/512}, --paladin holy
|
||||
[66] = {64/512, 128/512, 128/512, 192/512}, --paladin protect
|
||||
[70] = {(128/512) + 0.001953125, 192/512, 128/512, 192/512}, --paladin ret
|
||||
|
||||
[256] = {192/512, 256/512, 128/512, 192/512}, --priest disc
|
||||
[257] = {256/512, 320/512, 128/512, 192/512}, --priest holy
|
||||
[258] = {(320/512) + (0.001953125 * 4), 384/512, 128/512, 192/512}, --priest shadow
|
||||
|
||||
[259] = {384/512, 448/512, 128/512, 192/512}, --rogue assassination
|
||||
[260] = {448/512, 512/512, 128/512, 192/512}, --rogue combat
|
||||
[261] = {0, 64/512, 192/512, 256/512}, --rogue sub
|
||||
|
||||
[262] = {64/512, 128/512, 192/512, 256/512}, --shaman elemental
|
||||
[263] = {128/512, 192/512, 192/512, 256/512}, --shamel enhancement
|
||||
[264] = {192/512, 256/512, 192/512, 256/512}, --shaman resto
|
||||
|
||||
[265] = {256/512, 320/512, 192/512, 256/512}, --warlock aff
|
||||
[266] = {320/512, 384/512, 192/512, 256/512}, --warlock demo
|
||||
[267] = {384/512, 448/512, 192/512, 256/512}, --warlock destro
|
||||
|
||||
[71] = {448/512, 512/512, 192/512, 256/512}, --warrior arms
|
||||
[72] = {0, 64/512, 256/512, 320/512}, --warrior fury
|
||||
[73] = {64/512, 128/512, 256/512, 320/512}, --warrior protect
|
||||
|
||||
[1467] = {256/512, 320/512, 256/512, 320/512}, -- Devastation
|
||||
[1468] = {320/512, 384/512, 256/512, 320/512}, -- Preservation
|
||||
},
|
||||
|
||||
--class icons and colors
|
||||
class_icons_small = [[Interface\AddOns\Details\images\classes_small]],
|
||||
class_coords = {
|
||||
["DEMONHUNTER"] = {
|
||||
0.73828126 / 2, -- [1]
|
||||
1 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["HUNTER"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["WARRIOR"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["ROGUE"] = {
|
||||
0.49609375 / 2, -- [1]
|
||||
0.7421875 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["MAGE"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.49609375 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["PET"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.49609375 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["DRUID"] = {
|
||||
0.7421875 / 2, -- [1]
|
||||
0.98828125 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["MONK"] = {
|
||||
0.5 / 2, -- [1]
|
||||
0.73828125 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["DEATHKNIGHT"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.5 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["UNKNOW"] = {
|
||||
0.5 / 2, -- [1]
|
||||
0.75 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["PRIEST"] = {
|
||||
0.49609375 / 2, -- [1]
|
||||
0.7421875 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["UNGROUPPLAYER"] = {
|
||||
0.5 / 2, -- [1]
|
||||
0.75 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["Alliance"] = {
|
||||
0.49609375 / 2, -- [1]
|
||||
0.742187 / 25, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["WARLOCK"] = {
|
||||
0.7421875 / 2, -- [1]
|
||||
0.98828125 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["ENEMY"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["Horde"] = {
|
||||
0.7421875 / 2, -- [1]
|
||||
0.98828125 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["PALADIN"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["MONSTER"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["SHAMAN"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.49609375 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["EVOKER"] = {
|
||||
0.50390625, -- [1]
|
||||
0.625, -- [2]
|
||||
0, -- [3]
|
||||
0.125, -- [4]
|
||||
},
|
||||
},
|
||||
|
||||
class_colors = {
|
||||
["DEMONHUNTER"] = {
|
||||
0.64,
|
||||
0.19,
|
||||
0.79,
|
||||
},
|
||||
["HUNTER"] = {
|
||||
0.67, -- [1]
|
||||
0.83, -- [2]
|
||||
0.45, -- [3]
|
||||
},
|
||||
["WARRIOR"] = {
|
||||
0.78, -- [1]
|
||||
0.61, -- [2]
|
||||
0.43, -- [3]
|
||||
},
|
||||
["PALADIN"] = {
|
||||
0.96, -- [1]
|
||||
0.55, -- [2]
|
||||
0.73, -- [3]
|
||||
},
|
||||
["SHAMAN"] = {
|
||||
0, -- [1]
|
||||
0.44, -- [2]
|
||||
0.87, -- [3]
|
||||
},
|
||||
["MAGE"] = {
|
||||
0.41, -- [1]
|
||||
0.8, -- [2]
|
||||
0.94, -- [3]
|
||||
},
|
||||
["ROGUE"] = {
|
||||
1, -- [1]
|
||||
0.96, -- [2]
|
||||
0.41, -- [3]
|
||||
},
|
||||
["UNKNOW"] = {
|
||||
0.2, -- [1]
|
||||
0.2, -- [2]
|
||||
0.2, -- [3]
|
||||
},
|
||||
["PRIEST"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
["WARLOCK"] = {
|
||||
0.58, -- [1]
|
||||
0.51, -- [2]
|
||||
0.79, -- [3]
|
||||
},
|
||||
["UNGROUPPLAYER"] = {
|
||||
0.4, -- [1]
|
||||
0.4, -- [2]
|
||||
0.4, -- [3]
|
||||
},
|
||||
["ENEMY"] = {
|
||||
0.94117, -- [1]
|
||||
0, -- [2]
|
||||
0.0196, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["version"] = 1,
|
||||
["PET"] = {
|
||||
0.3, -- [1]
|
||||
0.4, -- [2]
|
||||
0.5, -- [3]
|
||||
},
|
||||
["DRUID"] = {
|
||||
1, -- [1]
|
||||
0.49, -- [2]
|
||||
0.04, -- [3]
|
||||
},
|
||||
["MONK"] = {
|
||||
0, -- [1]
|
||||
1, -- [2]
|
||||
0.59, -- [3]
|
||||
},
|
||||
["DEATHKNIGHT"] = {
|
||||
0.77, -- [1]
|
||||
0.12, -- [2]
|
||||
0.23, -- [3]
|
||||
},
|
||||
["ARENA_GREEN"] = {
|
||||
0.686, -- [1]
|
||||
0.372, -- [2]
|
||||
0.905, -- [3]
|
||||
},
|
||||
["ARENA_YELLOW"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
0.25, -- [3]
|
||||
},
|
||||
["NEUTRAL"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
0, -- [3]
|
||||
},
|
||||
["SELF"] = {
|
||||
0.89019, -- [1]
|
||||
0.32156, -- [2]
|
||||
0.89019, -- [3]
|
||||
},
|
||||
|
||||
--> class icons and colors
|
||||
class_icons_small = [[Interface\AddOns\Details\images\classes_small]],
|
||||
class_coords = {
|
||||
["DEMONHUNTER"] = {
|
||||
0.73828126 / 2, -- [1]
|
||||
1 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["HUNTER"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["WARRIOR"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["ROGUE"] = {
|
||||
0.49609375 / 2, -- [1]
|
||||
0.7421875 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["MAGE"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.49609375 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["PET"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.49609375 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["DRUID"] = {
|
||||
0.7421875 / 2, -- [1]
|
||||
0.98828125 / 2, -- [2]
|
||||
0, -- [3]
|
||||
0.25 / 2, -- [4]
|
||||
},
|
||||
["MONK"] = {
|
||||
0.5 / 2, -- [1]
|
||||
0.73828125 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["DEATHKNIGHT"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.5 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["UNKNOW"] = {
|
||||
0.5 / 2, -- [1]
|
||||
0.75 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["PRIEST"] = {
|
||||
0.49609375 / 2, -- [1]
|
||||
0.7421875 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["UNGROUPPLAYER"] = {
|
||||
0.5 / 2, -- [1]
|
||||
0.75 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["Alliance"] = {
|
||||
0.49609375 / 2, -- [1]
|
||||
0.742187 / 25, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["WARLOCK"] = {
|
||||
0.7421875 / 2, -- [1]
|
||||
0.98828125 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["ENEMY"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["Horde"] = {
|
||||
0.7421875 / 2, -- [1]
|
||||
0.98828125 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["PALADIN"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.5 / 2, -- [3]
|
||||
0.75 / 2, -- [4]
|
||||
},
|
||||
["MONSTER"] = {
|
||||
0, -- [1]
|
||||
0.25 / 2, -- [2]
|
||||
0.75 / 2, -- [3]
|
||||
1 / 2, -- [4]
|
||||
},
|
||||
["SHAMAN"] = {
|
||||
0.25 / 2, -- [1]
|
||||
0.49609375 / 2, -- [2]
|
||||
0.25 / 2, -- [3]
|
||||
0.5 / 2, -- [4]
|
||||
},
|
||||
["EVOKER"] = {
|
||||
0.50390625, -- [1]
|
||||
0.625, -- [2]
|
||||
0, -- [3]
|
||||
0.125, -- [4]
|
||||
},
|
||||
["EVOKER"] = {
|
||||
0.31764705882353, -- [1]
|
||||
0.24313725490196, -- [2]
|
||||
0.91372549019608, -- [3]
|
||||
},
|
||||
},
|
||||
|
||||
class_colors = {
|
||||
["DEMONHUNTER"] = {
|
||||
0.64,
|
||||
0.19,
|
||||
0.79,
|
||||
},
|
||||
["HUNTER"] = {
|
||||
0.67, -- [1]
|
||||
0.83, -- [2]
|
||||
0.45, -- [3]
|
||||
},
|
||||
["WARRIOR"] = {
|
||||
0.78, -- [1]
|
||||
0.61, -- [2]
|
||||
0.43, -- [3]
|
||||
},
|
||||
["PALADIN"] = {
|
||||
0.96, -- [1]
|
||||
0.55, -- [2]
|
||||
0.73, -- [3]
|
||||
},
|
||||
["SHAMAN"] = {
|
||||
0, -- [1]
|
||||
0.44, -- [2]
|
||||
0.87, -- [3]
|
||||
},
|
||||
["MAGE"] = {
|
||||
0.41, -- [1]
|
||||
0.8, -- [2]
|
||||
0.94, -- [3]
|
||||
},
|
||||
["ROGUE"] = {
|
||||
1, -- [1]
|
||||
0.96, -- [2]
|
||||
0.41, -- [3]
|
||||
},
|
||||
["UNKNOW"] = {
|
||||
0.2, -- [1]
|
||||
0.2, -- [2]
|
||||
0.2, -- [3]
|
||||
},
|
||||
["PRIEST"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
["WARLOCK"] = {
|
||||
0.58, -- [1]
|
||||
0.51, -- [2]
|
||||
0.79, -- [3]
|
||||
},
|
||||
["UNGROUPPLAYER"] = {
|
||||
0.4, -- [1]
|
||||
0.4, -- [2]
|
||||
0.4, -- [3]
|
||||
},
|
||||
["ENEMY"] = {
|
||||
0.94117, -- [1]
|
||||
0, -- [2]
|
||||
0.0196, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["version"] = 1,
|
||||
["PET"] = {
|
||||
0.3, -- [1]
|
||||
0.4, -- [2]
|
||||
0.5, -- [3]
|
||||
},
|
||||
["DRUID"] = {
|
||||
1, -- [1]
|
||||
0.49, -- [2]
|
||||
0.04, -- [3]
|
||||
},
|
||||
["MONK"] = {
|
||||
0, -- [1]
|
||||
1, -- [2]
|
||||
0.59, -- [3]
|
||||
},
|
||||
["DEATHKNIGHT"] = {
|
||||
0.77, -- [1]
|
||||
0.12, -- [2]
|
||||
0.23, -- [3]
|
||||
},
|
||||
["ARENA_GREEN"] = {
|
||||
0.686, -- [1]
|
||||
0.372, -- [2]
|
||||
0.905, -- [3]
|
||||
},
|
||||
["ARENA_YELLOW"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
0.25, -- [3]
|
||||
},
|
||||
["NEUTRAL"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
0, -- [3]
|
||||
},
|
||||
["SELF"] = {
|
||||
0.89019, -- [1]
|
||||
0.32156, -- [2]
|
||||
0.89019, -- [3]
|
||||
},
|
||||
|
||||
["EVOKER"] = {
|
||||
0.31764705882353, -- [1]
|
||||
0.24313725490196, -- [2]
|
||||
0.91372549019608, -- [3]
|
||||
},
|
||||
},
|
||||
|
||||
death_log_colors = {
|
||||
damage = "red",
|
||||
heal = "green",
|
||||
friendlyfire = "darkorange",
|
||||
cooldown = "yellow",
|
||||
debuff = "purple",
|
||||
},
|
||||
death_log_colors = {
|
||||
damage = "red",
|
||||
heal = "green",
|
||||
friendlyfire = "darkorange",
|
||||
cooldown = "yellow",
|
||||
debuff = "purple",
|
||||
},
|
||||
|
||||
fade_speed = 0.15,
|
||||
use_self_color = false,
|
||||
|
||||
@@ -564,6 +564,10 @@ function Details:StartMeUp() --I'll never stop!
|
||||
return true
|
||||
end
|
||||
|
||||
if (DetailsFramework:IsNearlyEqual(Details.class_coords.ROGUE[4], 0.25)) then
|
||||
DetailsFramework.table.copy(Details.class_coords, _detalhes.default_profile.class_coords)
|
||||
end
|
||||
|
||||
--shutdown the old OnDeathMenu
|
||||
--cleanup: this line can be removed after the first month of dragonflight
|
||||
Details.on_death_menu = false
|
||||
|
||||
Reference in New Issue
Block a user