- Left button on a enemy bar now show enemy damage taken, middle button open player detail window for that enemy.
- Added new profile: Minimalistic v2. - Minimalistic v2 is now the default skin. - Graphical changes on icon packs with transparency. - Removed slash command '/d', added '/de' instead. - Added custom spells for Atonement Critical, Power Word: Solace Critical, Lifebloom (the blood effect). - Revision done on Welcome Screen, many things removed, other added. - New API: instance:GetNumRows() return how many bars fit within the instance height. - New API: instance:GetRow (number) return the bar object. - New API: actorcontainer:ListActors() return a ipairs list of characters objects inside the container. - New API: _detalhes:CreateTestBars() create 10 bars of random characters for damage and heal. - New API: _detalhes:StartTestBarUpdate() begin to add and subtract value from created test actors. - New API: _detalhes:StopTestBarUpdate() stop the bar update test. - New Event: DETAILS_INSTANCE_NEWROW triggers when a new row is created. Signature: [1] instance [2] bar object.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
["DETAILS_INSTANCE_CHANGESEGMENT"] = {},
|
||||
["DETAILS_INSTANCE_CHANGEATTRIBUTE"] = {},
|
||||
["DETAILS_INSTANCE_CHANGEMODE"] = {},
|
||||
["DETAILS_INSTANCE_NEWROW"] = {},
|
||||
|
||||
--> data
|
||||
["DETAILS_DATA_RESET"] = {},
|
||||
@@ -68,6 +69,7 @@ local common_events = {
|
||||
["DETAILS_INSTANCE_CHANGESEGMENT"] = true,
|
||||
["DETAILS_INSTANCE_CHANGEATTRIBUTE"] = true,
|
||||
["DETAILS_INSTANCE_CHANGEMODE"] = true,
|
||||
["DETAILS_INSTANCE_NEWROW"] = true,
|
||||
["DETAILS_DATA_RESET"] = true,
|
||||
["DETAILS_DATA_SEGMENTREMOVED"] = true,
|
||||
["COMBAT_PLAYER_ENTER"] = true,
|
||||
@@ -198,6 +200,7 @@ local common_events = {
|
||||
function _detalhes:SendEvent (event, object, ...)
|
||||
|
||||
--> send event to all registred plugins
|
||||
|
||||
if (event == "PLUGIN_DISABLED" or event == "PLUGIN_ENABLED") then
|
||||
return object:OnDetailsEvent (event, ...)
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ function _detalhes:ResetProfile (profile_name)
|
||||
instance:AtivarInstancia()
|
||||
end
|
||||
instance.skin = ""
|
||||
instance:ChangeSkin ("Minimalistic")
|
||||
instance:ChangeSkin ("Minimalistic v2")
|
||||
end
|
||||
|
||||
for index, instance in pairs (_detalhes.unused_instances) do
|
||||
@@ -161,7 +161,7 @@ function _detalhes:ResetProfile (profile_name)
|
||||
instance:AtivarInstancia()
|
||||
end
|
||||
instance.skin = ""
|
||||
instance:ChangeSkin ("Minimalistic")
|
||||
instance:ChangeSkin ("Minimalistic v2")
|
||||
end
|
||||
|
||||
--> reset the profile
|
||||
@@ -280,7 +280,7 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy)
|
||||
--> apply default config on this instance (flat skin texture was 'ResetInstanceConfig' running).
|
||||
instance1:ResetInstanceConfig()
|
||||
instance1.skin = "no skin"
|
||||
instance1:ChangeSkin ("Minimalistic")
|
||||
instance1:ChangeSkin ("Minimalistic v2")
|
||||
|
||||
--> release the snap and lock
|
||||
instance1:LoadLocalInstanceConfig()
|
||||
|
||||
+87
-9
@@ -143,12 +143,77 @@ local _
|
||||
|
||||
show_sidebars = false,
|
||||
show_statusbar = false,
|
||||
color = {.3, .3, .3, 1},
|
||||
color = {.3, .3, .3, 0.81},
|
||||
bg_alpha = 0.2,
|
||||
|
||||
row_info = {
|
||||
texture = "Blizzard Character Skills Bar",
|
||||
font_face = "Arial Narrow",
|
||||
texture_background_class_color = false,
|
||||
texture_background = "Details Serenity",
|
||||
fixed_texture_background_color = {0, 0, 0, 0.3186}
|
||||
},
|
||||
attribute_text = {enabled = true, side = 1, text_size = 11, anchor = {-18, 4}, text_color = {1, 1, 1, 1}, text_face = "Arial Narrow"},
|
||||
},
|
||||
|
||||
callback = function (skin, instance, just_updating)
|
||||
--none
|
||||
end,
|
||||
|
||||
})
|
||||
|
||||
_detalhes:InstallSkin ("Minimalistic v2", {
|
||||
file = [[Interface\AddOns\Details\images\skins\classic_skin]],
|
||||
author = "Details!",
|
||||
version = "1.0",
|
||||
site = "unknown",
|
||||
desc = "classic skin.",
|
||||
|
||||
micro_frames = {color = {1, 1, 1, 1}, font = "Friz Quadrata TT", size = 10},
|
||||
|
||||
can_change_alpha_head = true,
|
||||
icon_anchor_main = {-1, -5},
|
||||
icon_anchor_plugins = {-7, -13},
|
||||
icon_plugins_size = {19, 18},
|
||||
|
||||
--anchors:
|
||||
icon_point_anchor = {-37, 0},
|
||||
left_corner_anchor = {-107, 0},
|
||||
right_corner_anchor = {96, 0},
|
||||
|
||||
icon_point_anchor_bottom = {-37, 12},
|
||||
left_corner_anchor_bottom = {-107, 0},
|
||||
right_corner_anchor_bottom = {96, 0},
|
||||
|
||||
--overwrites
|
||||
instance_cprops = {
|
||||
hide_icon = true,
|
||||
|
||||
menu_anchor = {-60, 0, side = 2},
|
||||
menu_anchor_down = {-55, -1},
|
||||
menu2_anchor = {32, 3},
|
||||
menu2_anchor_down = {32, 2},
|
||||
|
||||
menu_icons_size = 0.8,
|
||||
plugins_grow_direction = 1,
|
||||
|
||||
instancebutton_config = {size = {20, 16}, anchor = {5, 0}, textcolor = {.8, .6, .0, 0.8}, textsize = 11, textfont = "Friz Quadrata TT", highlight_texture = [[Interface\Buttons\UI-Panel-MinimizeButton-Highlight]]},
|
||||
resetbutton_config = {size = {13, 13}, anchor = {2, 0}, normal_texture = [[Interface\Addons\Details\Images\reset_button2]], highlight_texture = [[Interface\Addons\Details\Images\reset_button2]]},
|
||||
closebutton_config = {size = {19, 19}, alpha = 0.8},
|
||||
|
||||
show_sidebars = false,
|
||||
show_statusbar = false,
|
||||
color = {.3, .3, .3, 0.80},
|
||||
bg_alpha = 0.2,
|
||||
|
||||
row_info = {
|
||||
texture = "Details Serenity",
|
||||
font_face = "Arial Narrow",
|
||||
texture_background_class_color = false,
|
||||
texture_background = "Details Serenity",
|
||||
fixed_texture_background_color = {0, 0, 0, 0.3186},
|
||||
icon_file = [[Interface\AddOns\Details\images\classes_small_alpha]],
|
||||
start_after_icon = false,
|
||||
},
|
||||
attribute_text = {enabled = true, side = 1, text_size = 11, anchor = {-18, 4}, text_color = {1, 1, 1, 1}, text_face = "Arial Narrow"},
|
||||
},
|
||||
@@ -188,22 +253,34 @@ local _
|
||||
row_info = {
|
||||
textL_outline = false,
|
||||
textR_outline = false,
|
||||
texture = "Blizzard Character Skills Bar",
|
||||
texture = "Details Serenity",
|
||||
texture_background = "Details Serenity",
|
||||
texture_background_class_color = false,
|
||||
fixed_texture_background_color = {0, 0, 0, .2},
|
||||
fixed_texture_background_color = {1, 1, 1, .2557},
|
||||
icon_file = [[Interface\AddOns\Details\images\classes_small_bw]],
|
||||
},
|
||||
|
||||
menu_anchor = {2, -2, side = 1},
|
||||
menu_anchor_down = {2, -4},
|
||||
menu2_anchor = {32, 2},
|
||||
menu_anchor = {-60, 0, side = 2},
|
||||
menu_anchor_down = {-55, -1},
|
||||
menu2_anchor = {32, 3},
|
||||
menu2_anchor_down = {32, 2},
|
||||
|
||||
menu_icons_size = 0.8,
|
||||
plugins_grow_direction = 1,
|
||||
|
||||
hide_icon = true,
|
||||
desaturated_menu = true,
|
||||
desaturated_menu2 = true,
|
||||
|
||||
attribute_text = {enabled = true, anchor = {-20, 4}, text_face = "Friz Quadrata TT", text_size = 10, text_color = {1, 1, 1, .7}, side = 1, shadow = true},
|
||||
|
||||
instancebutton_config = {size = {20, 16}, anchor = {5, 1}, textcolor = {.9, .9, .9, 1}, textsize = 10, textfont = "Friz Quadrata TT", highlight_texture = [[Interface\Buttons\UI-Panel-MinimizeButton-Highlight]]},
|
||||
resetbutton_config = {size = {8, 16}, anchor = {1, -1}},
|
||||
|
||||
bg_alpha = 0.3,
|
||||
|
||||
show_statusbar = false,
|
||||
color = {1, 1, 1, 0.92},
|
||||
bg_alpha = 0.40,
|
||||
}
|
||||
})
|
||||
|
||||
@@ -545,7 +622,8 @@ local _
|
||||
fixed_texture_background_color = {0, 0, 0, 0.471},
|
||||
space = {left = 1, right = -2, between = 1},
|
||||
backdrop = {enabled = true, size = 4, color = {0, 0, 0, 1}, texture = "Details BarBorder 2"},
|
||||
icon_file = [[Interface\AddOns\Details\images\classes_small_alpha]]
|
||||
icon_file = [[Interface\AddOns\Details\images\classes_small_alpha]],
|
||||
start_after_icon = false,
|
||||
},
|
||||
|
||||
wallpaper = {
|
||||
@@ -664,7 +742,7 @@ local _
|
||||
},
|
||||
["backdrop"] = {
|
||||
["enabled"] = true,
|
||||
["size"] = 20,
|
||||
["size"] = 10,
|
||||
["color"] = {
|
||||
0, -- [1]
|
||||
0, -- [2]
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ local UnitGUID = UnitGUID
|
||||
local tonumber= tonumber
|
||||
local LoggingCombat = LoggingCombat
|
||||
|
||||
SLASH_DETAILS1, SLASH_DETAILS2, SLASH_DETAILS3 = "/details", "/dt", "/d"
|
||||
SLASH_DETAILS1, SLASH_DETAILS2, SLASH_DETAILS3 = "/details", "/dt", "/de"
|
||||
|
||||
function SlashCmdList.DETAILS (msg, editbox)
|
||||
|
||||
|
||||
@@ -69,6 +69,10 @@ do
|
||||
[124465] = {name = GetSpellInfo (124465) .. " (" .. Loc ["STRING_MASTERY"] .. ")"}, --> vampiric touch mastery proc (priest)
|
||||
[124468] = {name = GetSpellInfo (124468) .. " (" .. Loc ["STRING_MASTERY"] .. ")"}, --> mind flay mastery proc (priest)
|
||||
[124469] = {name = GetSpellInfo (124469) .. " (" .. Loc ["STRING_MASTERY"] .. ")"}, --> mind sear mastery proc (priest)
|
||||
[94472] = {name = GetSpellInfo (94472) .. " (" .. Loc ["STRING_CRITICAL_ONLY"] .. ")"}, --> Atonement critical hit (priest)
|
||||
[140816] = {name = GetSpellInfo (140816) .. " (" .. Loc ["STRING_CRITICAL_ONLY"] .. ")"}, --> Power Word: Solace critical hit (priest)
|
||||
|
||||
[33778] = {name = GetSpellInfo (33778) .. " (bloom)"}, --lifebloom (bloom)
|
||||
|
||||
[121414] = {name = GetSpellInfo (121414) .. " (Glaive #1)"}, --> glaive toss (hunter)
|
||||
[120761] = {name = GetSpellInfo (120761) .. " (Glaive #2)"}, --> glaive toss (hunter)
|
||||
@@ -77,9 +81,9 @@ do
|
||||
[45284] = {name = GetSpellInfo (45284) .. " (" .. Loc ["STRING_MASTERY"] .. ")"}, --> lightningbolt (shaman)
|
||||
[45297] = {name = GetSpellInfo (45297) .. " (" .. Loc ["STRING_MASTERY"] .. ")"}, --> chain lightning (shaman)
|
||||
|
||||
[131079] = {name = GetSpellInfo (131079) .. " (Icy Veins)"}, --> frostbolt with icy veins glyph (mage)
|
||||
[131080] = {name = GetSpellInfo (131080) .. " (Icy Veins)"}, --> ice lance with icy veins glyph (mage)
|
||||
[131081] = {name = GetSpellInfo (131081) .. " (Icy Veins)"}, --> frostfire with icy veins glyph (mage)
|
||||
[131079] = {name = GetSpellInfo (131079) .. " (" .. GetSpellInfo (12472) .. ")"}, --> frostbolt with icy veins glyph (mage)
|
||||
[131080] = {name = GetSpellInfo (131080) .. " (" .. GetSpellInfo (12472) .. ")"}, --> ice lance with icy veins glyph (mage)
|
||||
[131081] = {name = GetSpellInfo (131081) .. " (" .. GetSpellInfo (12472) .. ")"}, --> frostfire with icy veins glyph (mage)
|
||||
|
||||
[108686] = {name = GetSpellInfo (108686) .. " (" .. GetSpellInfo (108683) .. ")" }, --> immolate (brimstone)
|
||||
[108685] = {name = GetSpellInfo (108685) .. " (" .. GetSpellInfo (108683) .. ")" }, --> conflagrate (brimstone)
|
||||
|
||||
Reference in New Issue
Block a user