Bug fixes for wotlk

This commit is contained in:
Tercio Jose
2022-09-26 15:31:20 -03:00
parent dd8da2dad1
commit 57133d389f
9 changed files with 348 additions and 322 deletions
+306 -310
View File
@@ -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,