use new spec icon file
This commit is contained in:
+13
-49
@@ -557,55 +557,7 @@ 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
|
||||
|
||||
[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
|
||||
|
||||
[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
|
||||
},
|
||||
class_specs_coords = {},
|
||||
|
||||
--class icons and colors
|
||||
class_icons_small = [[Interface\AddOns\Details\images\classes_small]],
|
||||
@@ -999,6 +951,18 @@ for class, color in pairs(RAID_CLASS_COLORS) do
|
||||
default_profile.class_colors[class] = { color.r, color.g, color.b }
|
||||
end
|
||||
|
||||
for _, class in ipairs(CLASS_SORT_ORDER) do
|
||||
local specs = C_ClassInfo.GetAllSpecs(class)
|
||||
if specs then
|
||||
for _, spec in ipairs(specs) do
|
||||
local spec_info = C_ClassInfo.GetSpecInfo(class, spec)
|
||||
if spec_info then
|
||||
default_profile.class_specs_coords [spec_info.ID] = {AtlasUtil:GetCoords("specicon-"..class.."-"..spec_info.Spec)}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Details.default_profile = default_profile
|
||||
|
||||
|
||||
Reference in New Issue
Block a user