- new API: Details:GetEncounterInfoFromEncounterName (ID, encountername), returns encounter info.

- Tweaks for Legion Dungeon.
- Framework update to v35.
- Solved an issue with bookmarks where the background sometimes was a light silver.
- Sovelod an issue with the display menu where sometimes it wasn't changeing the display.
- new tooltip design.
This commit is contained in:
Tercio
2016-08-11 00:13:27 -03:00
parent ba033e79b3
commit 07ed01c097
16 changed files with 206 additions and 72 deletions
+73 -5
View File
@@ -90,9 +90,13 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
if (method == 0x1) then
f_auto:Show()
f_manual:Hide()
f.desc_label.text = "Auras are being tracked automatically, the addon controls what to show. You may entry an aura to ignore.\nCast spells to fill the Buff and Buff available boxes."
f.desc_label:SetPoint ("topleft", f.tracking_method, "topright", 10, 8)
elseif (method == 0x2) then
f_auto:Hide()
f_manual:Show()
f.desc_label.text = "Auras are being tracked manually, the addon only check for auras you entered below."
f.desc_label:SetPoint ("topleft", f.tracking_method, "topright", 10, 1)
end
end
@@ -112,6 +116,11 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
tracking_method.tooltip = "Choose which aura tracking method you want to use."
f.tracking_method = tracking_method
f.desc_label = self:CreateLabel (f, "", 10, "silver")
f.desc_label:SetSize (400, 40)
f.desc_label:SetPoint ("topleft", tracking_method, "topright", 10, 8)
f.desc_label:SetJustifyV ("top")
--------automatic
local ALL_BUFFS = {}
@@ -169,7 +178,7 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
--como ira preencher ela no inicio e como ficara o lance dos profiles
local y = -30
local y = -40
buff_available:SetPoint ("topleft", f_auto, "topleft", 0, y)
buff_ignored:SetPoint ("topleft", f_auto, "topleft", 6 + width, y)
debuff_available:SetPoint ("topleft", f_auto, "topleft", 12 + (width*2), y)
@@ -231,8 +240,11 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
local scroll_lines = 15
local scroll_line_height = 20
local backdrop_color = {.8, .8, .8, 0.2}
local backdrop_color_on_enter = {.8, .8, .8, 0.4}
local line_onenter = function (self)
self:SetBackdropColor (.3, .3, .3, 0.4)
self:SetBackdropColor (unpack (backdrop_color_on_enter))
local spellid = select (7, GetSpellInfo (self.value))
if (spellid) then
GameTooltip:SetOwner (self, "ANCHOR_RIGHT");
@@ -242,8 +254,9 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
GameTooltip:Show()
end
end
local line_onleave = function (self)
self:SetBackdropColor (0, 0, 0, 0.2)
self:SetBackdropColor (unpack (backdrop_color))
GameTooltip:Hide()
end
local line_onclick = function (self)
@@ -269,7 +282,7 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
line:SetScript ("OnClick", line_onclick)
line:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
line:SetBackdropColor (0, 0, 0, 0.2)
line:SetBackdropColor (unpack (backdrop_color))
local icon = line:CreateTexture ("$parentIcon", "overlay")
icon:SetSize (scroll_line_height, scroll_line_height)
@@ -349,7 +362,18 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
new_buff_entry:SetText ("")
new_buff_entry:ClearFocus()
if (text ~= "") then
--> check for more than one spellname
if (text:find (";")) then
for _, spellname in ipairs ({strsplit (";", text)}) do
spellname = self:trim (spellname)
if (string.len (spellname) > 0) then
tinsert (f.db.aura_tracker.buff, spellname)
end
end
else
tinsert (f.db.aura_tracker.buff, text)
end
buffs_added:Refresh()
end
end, 100, 20, "Add Buff", nil, nil, nil, nil, nil, nil, DF:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"))
@@ -358,17 +382,61 @@ function DF:CreateAuraConfigPanel (parent, name, db, method_change_callback, opt
new_debuff_entry:SetText ("")
new_debuff_entry:ClearFocus()
if (text ~= "") then
--> check for more than one spellname
if (text:find (";")) then
for _, spellname in ipairs ({strsplit (";", text)}) do
spellname = self:trim (spellname)
if (string.len (spellname) > 0) then
tinsert (f.db.aura_tracker.debuff, spellname)
end
end
else
tinsert (f.db.aura_tracker.debuff, text)
end
debuffs_added:Refresh()
end
end, 100, 20, "Add Debuff", nil, nil, nil, nil, nil, nil, DF:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"))
local multiple_spells_label = DF:CreateLabel (buffs_added, "You can add multiple auras at once by separating them with ';'.\nExample: Fireball; Frostbolt; Flamestrike", 10, "gray")
multiple_spells_label:SetSize (350, 60)
multiple_spells_label:SetJustifyV ("top")
local export_box = self:CreateTextEntry (f_manual, function()end, 242, 20, "ExportAuraTextBox", _, _, options_dropdown_template)
local export_buff_button = self:CreateButton (f_manual, function()
local str = ""
for _, spellname in ipairs (f.db.aura_tracker.buff) do
str = str .. spellname .. "; "
end
export_box.text = str
export_box:SetFocus (true)
export_box:HighlightText()
end, 120, 20, "Export Buffs", nil, nil, nil, nil, nil, nil, DF:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"))
local export_debuff_button = self:CreateButton (f_manual, function()
local str = ""
for _, spellname in ipairs (f.db.aura_tracker.debuff) do
str = str .. spellname .. "; "
end
export_box.text = str
export_box:SetFocus (true)
export_box:HighlightText()
end, 120, 20, "Export Debuffs", nil, nil, nil, nil, nil, nil, DF:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"))
multiple_spells_label:SetPoint ("topleft", f_manual, "topleft", 480, -120)
export_buff_button:SetPoint ("topleft", f_manual, "topleft", 480, -160)
export_debuff_button:SetPoint ("left",export_buff_button, "right", 2, 0)
export_box:SetPoint ("topleft", f_manual, "topleft", 480, -185)
new_buff_string:SetPoint ("topleft", f_manual, "topleft", 480, -40)
new_buff_entry:SetPoint ("topleft", new_buff_string, "bottomleft", 0, -2)
add_buff_button:SetPoint ("left", new_buff_entry, "right", 2, 0)
add_buff_button.tooltip = "Add the aura to be tracked.\n\nClick an aura on the list to remove it."
new_debuff_string:SetPoint ("topleft", f_manual, "topleft", 480, -200)
new_debuff_string:SetPoint ("topleft", f_manual, "topleft", 480, -80)
new_debuff_entry:SetPoint ("topleft", new_debuff_string, "bottomleft", 0, -2)
add_debuff_button:SetPoint ("left", new_debuff_entry, "right", 2, 0)
add_debuff_button.tooltip = "Add the aura to be tracked.\n\nClick an aura on the list to remove it."
+26 -27
View File
@@ -183,7 +183,7 @@ function DF:CreateCoolTip()
frame2 = GameCooltipFrame2
end
frame2:SetPoint ("bottomleft", frame1, "bottomright")
frame2:SetPoint ("bottomleft", frame1, "bottomright", 4, 0)
GameCooltipFrame2_FrameBackgroundCenter:SetTexture (DF.folder .. "cooltip_background")
GameCooltipFrame2_FrameBackgroundCenter:SetTexCoord (0.10546875, 0.89453125, 0, 1)
@@ -598,11 +598,11 @@ function DF:CreateCoolTip()
frame.selectedTop:ClearAllPoints()
frame.selectedBottom:ClearAllPoints()
frame.selectedTop:SetPoint ("topleft", button, "topleft", left, top) --
frame.selectedTop:SetPoint ("topright", button, "topright", right, top) --
frame.selectedTop:SetPoint ("topleft", button, "topleft", left+1, top) --
frame.selectedTop:SetPoint ("topright", button, "topright", right-1, top) --
frame.selectedBottom:SetPoint ("bottomleft", button, "bottomleft", left, bottom) --
frame.selectedBottom:SetPoint ("bottomright", button, "bottomright", right, bottom) --
frame.selectedBottom:SetPoint ("bottomleft", button, "bottomleft", left+1, bottom) --
frame.selectedBottom:SetPoint ("bottomright", button, "bottomright", right-1, bottom) --
CoolTip:ShowSelectedTexture (frame)
end
@@ -871,7 +871,7 @@ function DF:CreateCoolTip()
end
end
else
menuButton.leftText:SetWidth (CoolTip.OptionsTable.FixedWidth - menuButton.leftIcon:GetWidth() - menuButton.rightText:GetStringWidth() - menuButton.rightIcon:GetWidth() - 30)
menuButton.leftText:SetWidth (CoolTip.OptionsTable.FixedWidth - menuButton.leftIcon:GetWidth() - menuButton.rightText:GetStringWidth() - menuButton.rightIcon:GetWidth() - 22)
end
else
if (not CoolTip.OptionsTable.FixedWidthSub) then
@@ -882,7 +882,7 @@ function DF:CreateCoolTip()
end
end
else
menuButton.leftText:SetWidth (CoolTip.OptionsTable.FixedWidthSub - menuButton.leftIcon:GetWidth() - 20)
menuButton.leftText:SetWidth (CoolTip.OptionsTable.FixedWidthSub - menuButton.leftIcon:GetWidth() - 12)
end
end
@@ -1016,15 +1016,14 @@ function DF:CreateCoolTip()
--> setup statusbar
CoolTip:StatusBar (menuButton, CoolTip.StatusBarTableSub [mainMenuIndex] and CoolTip.StatusBarTableSub [mainMenuIndex] [index])
--> click
menuButton:RegisterForClicks ("LeftButtonDown")
menuButton:ClearAllPoints()
menuButton:SetPoint ("center", frame2, "center")
menuButton:SetPoint ("top", frame2, "top", 0, (((index-1)*20)*-1)-3)
menuButton:SetPoint ("left", frame2, "left")
menuButton:SetPoint ("right", frame2, "right")
menuButton:SetPoint ("left", frame2, "left", -4, 0)
menuButton:SetPoint ("right", frame2, "right", 4, 0)
DF:FadeFrame (menuButton, 0)
@@ -1165,8 +1164,8 @@ function DF:CreateCoolTip()
menuButton:ClearAllPoints()
menuButton:SetPoint ("center", frame2, "center")
menuButton:SetPoint ("left", frame2, "left")
menuButton:SetPoint ("right", frame2, "right")
menuButton:SetPoint ("left", frame2, "left", -4, 0)
menuButton:SetPoint ("right", frame2, "right", 4, 0)
menuButton.rightText:SetText ("")
@@ -1209,8 +1208,8 @@ function DF:CreateCoolTip()
if (CoolTip.OptionsTable.YSpacingModSub) then
spacing = spacing + CoolTip.OptionsTable.YSpacingModSub
end
menuButton:SetPoint ("left", frame2, "left")
menuButton:SetPoint ("right", frame2, "right")
menuButton:SetPoint ("left", frame2, "left", -4, 0)
menuButton:SetPoint ("right", frame2, "right", 4, 0)
if (menuButton.divbar) then
menuButton.divbar:Hide()
@@ -1253,21 +1252,21 @@ function DF:CreateCoolTip()
local button = frame1.Lines [index]
frame2:ClearAllPoints()
frame2:SetPoint ("left", button, "right")
frame2:SetPoint ("left", button, "right", 4, 0)
elseif (CoolTip.OptionsTable.SubFollowButton and CoolTip.frame2_leftside) then
local button = frame1.Lines [index]
frame2:ClearAllPoints()
frame2:SetPoint ("right", button, "left")
frame2:SetPoint ("right", button, "left", -4, 0)
elseif (CoolTip.frame2_leftside) then
frame2:ClearAllPoints()
frame2:SetPoint ("bottomright", frame1, "bottomleft")
frame2:SetPoint ("bottomright", frame1, "bottomleft", -4, 0)
else
frame2:ClearAllPoints()
frame2:SetPoint ("bottomleft", frame1, "bottomright")
frame2:SetPoint ("bottomleft", frame1, "bottomright", 4, 0)
end
end
@@ -1344,8 +1343,8 @@ function DF:CreateCoolTip()
menuButton:ClearAllPoints()
menuButton:SetPoint ("center", frame1, "center")
menuButton:SetPoint ("left", frame1, "left")
menuButton:SetPoint ("right", frame1, "right")
menuButton:SetPoint ("left", frame1, "left", -4, 0)
menuButton:SetPoint ("right", frame1, "right", 4, 0)
--> height
if (CoolTip.OptionsTable.AlignAsBlizzTooltip) then
@@ -1536,8 +1535,8 @@ function DF:CreateCoolTip()
menuButton:SetHeight (4)
--> points
menuButton:ClearAllPoints()
menuButton:SetPoint ("left", frame1, "left")
menuButton:SetPoint ("right", frame1, "right")
menuButton:SetPoint ("left", frame1, "left", -4, 0)
menuButton:SetPoint ("right", frame1, "right", 4, 0)
menuButton:SetPoint ("center", frame1, "center")
local div_size_up = tonumber (CoolTip.LeftTextTable [i] [2])
@@ -1579,8 +1578,8 @@ function DF:CreateCoolTip()
if (CoolTip.OptionsTable.YSpacingMod) then
spacing = spacing + CoolTip.OptionsTable.YSpacingMod
end
menuButton:SetPoint ("left", frame1, "left")
menuButton:SetPoint ("right", frame1, "right")
menuButton:SetPoint ("left", frame1, "left", -4, 0)
menuButton:SetPoint ("right", frame1, "right", 4, 0)
if (menuButton.divbar) then
menuButton.divbar:Hide()
@@ -1716,7 +1715,7 @@ function DF:CreateCoolTip()
CoolTip.overlap_checked = true
frame2:ClearAllPoints()
frame2:SetPoint ("bottomright", frame1, "bottomleft")
frame2:SetPoint ("bottomright", frame1, "bottomleft", 4, 0)
CoolTip.frame2_leftside = true
--> diff
return CoolTip:SetMyPoint (host, CoolTip.internal_x_mod , CoolTip.internal_y_mod)
@@ -1748,7 +1747,7 @@ function DF:CreateCoolTip()
local diff = f2_start_point - f1_end_point
frame2:ClearAllPoints()
frame2:SetPoint ("bottomright", frame1, "bottomleft")
frame2:SetPoint ("bottomright", frame1, "bottomleft", 4, 0)
CoolTip.frame2_leftside = true
end
@@ -1976,7 +1975,7 @@ function DF:CreateCoolTip()
function CoolTip:Reset()
frame2:ClearAllPoints()
frame2:SetPoint ("bottomleft", frame1, "bottomright")
frame2:SetPoint ("bottomleft", frame1, "bottomright", 4, 0)
CoolTip:HideSelectedTexture (frame1)
CoolTip:HideSelectedTexture (frame2)
+2 -2
View File
@@ -69,8 +69,8 @@
<Layer level="BACKGROUND" textureSubLevel="4">
<Texture name="$parent_FrameWallPaper" parentKey="frameWallpaper">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="3" y="-3"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
+5 -1
View File
@@ -1,5 +1,5 @@
local dversion = 34
local dversion = 35
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -1194,6 +1194,10 @@ function DF:CreateAnimation (animation, type, order, duration, arg1, arg2, arg3,
elseif (type == "ROTATION") then
anim:SetDegrees (arg1) --degree
anim:SetOrigin (arg2 or "center", arg3 or 0, arg4 or 0) --point, x, y
elseif (type == "TRANSLATION") then
anim:SetOffset (arg1, arg2)
end
animation.NextAnimation = animation.NextAnimation + 1
+4 -3
View File
@@ -4,7 +4,7 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
_detalhes.build_counter = 2761 --it's 2755 for release
_detalhes.userversion = "v5.16"
_detalhes.userversion = "v5.17"
_detalhes.realversion = 110 --core version
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
Details = _detalhes
@@ -21,7 +21,8 @@ do
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
--[[
|cFFFFFF00v5.16 (|cFFFFCC00August 8, 2016|r|cFFFFFF00)|r:\n\n
|cFFFFFF00v5.17 (|cFFFFCC00August 10, 2016|r|cFFFFFF00)|r:\n\n
|cFFFFFF00-|r boss detection for Legion dungeons.\n\n
|cFFFFFF00-|r priest spec detection review (thanks Yakumile-Azralon).\n\n
--]]
--
@@ -29,7 +30,7 @@ do
--Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.16 (|cFFFFCC00August 8, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r priest spec detection review (thanks Yakumile-Azralon).\n\n|cFFFFFF00v5.15 (|cFFFFCC00August 5, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r fix for an error which happen sometimes during encounter start.\n\n|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.17 (|cFFFFCC00August 10, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r boss detection for Legion dungeons.\n\n|cFFFFFF00-|r priest spec detection review (thanks Yakumile-Azralon).\n\n|cFFFFFF00v5.15 (|cFFFFCC00August 5, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r fix for an error which happen sometimes during encounter start.\n\n|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r "
+4
View File
@@ -2023,6 +2023,10 @@ function _detalhes:TrocaTabela (instancia, segmento, atributo, sub_atributo, ini
instancia = self
end
if (iniciando_instancia == "LeftButton") then
iniciando_instancia = nil
end
if (_type (instancia) == "number") then
sub_atributo = atributo
atributo = segmento
+5 -3
View File
@@ -1306,6 +1306,8 @@
end
end
local bgColor, borderColor = {0.37, 0.37, 0.37, 1}, {0, 0, 0, .2}
function _detalhes:BuildInstanceBarTooltip (frame)
local GameCooltip = GameCooltip
@@ -1318,8 +1320,8 @@
GameCooltip:SetOption ("TextColorRight", _detalhes.tooltip.fontcolor_right)
GameCooltip:SetOption ("TextShadow", _detalhes.tooltip.fontshadow and "OUTLINE")
GameCooltip:SetOption ("LeftBorderSize", -8)
GameCooltip:SetOption ("RightBorderSize", 8)
GameCooltip:SetOption ("LeftBorderSize", -4)
GameCooltip:SetOption ("RightBorderSize", 4)
GameCooltip:SetOption ("ButtonsYMod", 4)
GameCooltip:SetOption ("RightTextMargin", 0)
@@ -1328,7 +1330,7 @@
GameCooltip:SetOption ("StatusBarTexture", [[Interface\AddOns\Details\images\bar_background]])
--GameCooltip:SetBackdrop (1, _detalhes.tooltip_backdrop, backgroundColor, _detalhes.tooltip_border_color) --{.090, .090, .188, .1}
GameCooltip:SetBackdrop (1, _detalhes.cooltip_preset2_backdrop, {0.37, 0.37, 0.37, 1}, {0, 0, 0, 1})
GameCooltip:SetBackdrop (1, _detalhes.cooltip_preset2_backdrop, bgColor, borderColor)
local myPoint = _detalhes.tooltip.anchor_point
local anchorPoint = _detalhes.tooltip.anchor_relative
+7
View File
@@ -121,6 +121,13 @@
[1] = true, --0x1 star
}
local override_spellId = {
[184707] = 218617, --warrior rampage
[184709] = 218617, --warrior rampage
[201364] = 218617, --warrior rampage
[201363] = 218617, --warrior rampage
}
local WARRIOR_RAMPAGE = {
[184707] = true,
[184709] = true,
+13
View File
@@ -189,6 +189,19 @@ do
return _detalhes.EncounterInformation [mapid] and _detalhes.EncounterInformation [mapid].encounters [bossindex]
end
function _detalhes:GetEncounterInfoFromEncounterName (EJID, encountername)
EJ_SelectInstance (EJID)
for i = 1, 20 do
local name = EJ_GetEncounterInfoByIndex (i, EJID)
if (not name) then
return
end
if (name == encountername or name:find (encountername)) then
return i, EJ_GetEncounterInfoByIndex (i, EJID)
end
end
end
--> return the wallpaper for the raid instance
function _detalhes:GetRaidBackground (mapid)
local bosstables = _detalhes.EncounterInformation [mapid]
+8 -7
View File
@@ -350,7 +350,7 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section)
instances:SetPoint ("bottomright", window, "bottomright", -17, 09)
instances:SetHook ("OnEnter", function()
GameCooltip:Reset()
_detalhes:CooltipPreset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (Loc ["STRING_MINITUTORIAL_OPTIONS_PANEL1"])
GameCooltip:ShowCooltip (instances.widget, "tooltip")
end)
@@ -390,7 +390,7 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section)
group_editing_help_frame:SetHook ("OnEnter", function()
group_editing_help:SetTexture ([[Interface\GossipFrame\ActiveQuestIcon]])
GameCooltip:Reset()
_detalhes:CooltipPreset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (Loc ["STRING_MINITUTORIAL_OPTIONS_PANEL3"])
GameCooltip:ShowCooltip (group_editing_help_frame, "tooltip")
end)
@@ -1118,7 +1118,8 @@ local menus2 = {
end
if (self.parent and self.parent.info) then
_detalhes:CooltipPreset (2)
--GameCooltip:Preset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (self.parent.info)
GameCooltip:ShowCooltip (self, "tooltip")
return true
@@ -3782,7 +3783,7 @@ function window:CreateFrame1()
frame1.ChooseAvatarLabel:SetTextColor (1, 1, 1)
end
_detalhes:CooltipPreset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (Loc ["STRING_OPTIONS_AVATAR_DESC"])
GameCooltip:ShowCooltip (frame1.chooseAvatarButton.widget, "tooltip")
--frame1.avatarPreview:SetBlendMode ("ADD")
@@ -4566,7 +4567,7 @@ function window:CreateFrame13()
exclamation_frame_texture:SetAllPoints()
exclamation_frame:SetScript ("OnEnter", function (self)
--show tooltip
_detalhes:CooltipPreset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (Loc ["STRING_OPTIONS_PROFILE_OVERWRITTEN"])
GameCooltip:ShowCooltip (self, "tooltip")
end)
@@ -7483,7 +7484,7 @@ function window:CreateFrame6()
window:CreateLineBackground2 (frame6, "WindowScaleSlider", "WindowScaleLabel", Loc ["STRING_OPTIONS_WINDOW_SCALE_DESC"])
frame6.WindowScaleSlider:SetHook ("OnEnter", function()
_detalhes:CooltipPreset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (string.format (Loc ["STRING_OPTIONS_WINDOW_SCALE_DESC"], _G.DetailsOptionsWindow.instance.window_scale))
GameCooltip:ShowCooltip (frame6.WindowScaleSlider.widget, "tooltip")
return true
@@ -10416,7 +10417,7 @@ function window:CreateFrame12()
if (self.plugin) then
local desc = self.plugin:GetPluginDescription()
if (desc) then
_detalhes:CooltipPreset (2)
GameCooltip:Preset (2)
GameCooltip:AddLine (desc)
GameCooltip:SetType ("tooltip")
GameCooltip:SetOwner (self, "bottomleft", "topleft", 150, -2)
+45 -11
View File
@@ -115,6 +115,16 @@ end
-- icones: 365 = 0.35693359375 // 397 = 0.38720703125
local menus_backdrop = {
edgeFile = [[Interface\Buttons\WHITE8X8]],
edgeSize=1,
bgFile="Interface\\DialogFrame\\UI-DialogBox-Background-Dark",
tileSize=16,
tile=true,
insets = {top=0, right=0, left=0, bottom=0}
}
local menus_bordercolor = {0, 0, 0, .25}
function _detalhes:AtualizarScrollBar (x) --> x = quantas barras esta sendo mostrado
local cabe = self.rows_fit_in_window --> quantas barras cabem na janela
@@ -5710,9 +5720,8 @@ local build_mode_list = function (self, elapsed)
_detalhes:SetMenuOwner (self, instancia)
CoolTip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
--CoolTip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
CoolTip:SetBackdrop (2, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
CoolTip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
CoolTip:SetBackdrop (2, menus_backdrop, nil, menus_bordercolor)
CoolTip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
show_anti_overlap (instancia, self, "top")
@@ -5934,6 +5943,18 @@ local build_segment_list = function (self, elapsed)
local portrait = _detalhes:GetBossPortrait (thisCombat.is_boss.mapid, thisCombat.is_boss.index) or thisCombat.is_boss.bossimage
if (portrait) then
CoolTip:AddIcon (portrait, 2, "top", 128, 64)
else
local encounter_name = thisCombat.is_boss.encounter
local instanceID = thisCombat.is_boss.ej_instance_id
if (encounter_name and instanceID) then
local index, name, description, encounterID, rootSectionID, link = _detalhes:GetEncounterInfoFromEncounterName (instanceID, encounter_name)
if (index and name and encounterID) then
local id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo (index, encounterID)
if (iconImage) then
CoolTip:AddIcon (iconImage, 2, "top", 128, 64)
end
end
end
end
CoolTip:AddIcon ([[Interface\AddOns\Details\images\icons]], "main", "left", 16, 16, 0.96875, 1, 0, 0.03125)
@@ -6060,6 +6081,19 @@ local build_segment_list = function (self, elapsed)
local portrait = _detalhes:GetBossPortrait (_detalhes.tabela_vigente.is_boss.mapid, _detalhes.tabela_vigente.is_boss.index) or _detalhes.tabela_vigente.is_boss.bossimage
if (portrait) then
CoolTip:AddIcon (portrait, 2, "top", 128, 64)
else
local thisCombat = _detalhes.tabela_vigente
local encounter_name = thisCombat.is_boss.encounter
local instanceID = thisCombat.is_boss.ej_instance_id
if (encounter_name and instanceID) then
local index, name, description, encounterID, rootSectionID, link = _detalhes:GetEncounterInfoFromEncounterName (instanceID, encounter_name)
if (index and name and encounterID) then
local id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo (index, encounterID)
if (iconImage) then
CoolTip:AddIcon (iconImage, 2, "top", 128, 64)
end
end
end
end
if (_detalhes.tooltip.submenu_wallpaper) then
@@ -6219,8 +6253,8 @@ local build_segment_list = function (self, elapsed)
CoolTip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
CoolTip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
CoolTip:SetBackdrop (2, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
CoolTip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
CoolTip:SetBackdrop (2, menus_backdrop, nil, menus_bordercolor)
show_anti_overlap (instancia, self, "top")
@@ -7783,7 +7817,7 @@ end
GameCooltip:AddMenu (1, _detalhes.tabela_historico.resetar)
GameCooltip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
GameCooltip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
show_anti_overlap (self.instance, self, "top")
@@ -7892,8 +7926,8 @@ end
GameCooltip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
GameCooltip:SetWallpaper (2, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
GameCooltip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
GameCooltip:SetBackdrop (2, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
GameCooltip:SetBackdrop (2, menus_backdrop, nil, menus_bordercolor)
show_anti_overlap (self.instance, self, "top")
@@ -7993,7 +8027,7 @@ local report_on_enter = function (self, motion, forced, from_click)
GameCooltip:AddMenu (1, _detalhes.Reportar, instancia, nil, "INSTANCE" .. instancia.meu_id)
GameCooltip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
GameCooltip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
show_anti_overlap (instancia, self, "top")
_detalhes:SetMenuOwner (self, instancia)
@@ -8068,8 +8102,8 @@ local atributo_on_enter = function (self, motion, forced, from_click)
_detalhes:MontaAtributosOption (instancia)
end
GameCooltip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
GameCooltip:SetBackdrop (2, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
GameCooltip:SetBackdrop (2, menus_backdrop, nil, menus_bordercolor)
GameCooltip:SetOption ("TextSize", _detalhes.font_sizes.menus)
_detalhes:SetMenuOwner (self, instancia)
+4 -4
View File
@@ -39,11 +39,11 @@ do
frame.background = frame:CreateTexture (nil, "background")
frame.background:SetTexture ("Interface\\AddOns\\Details\\images\\background")
--frame.background:SetTexture ([[Interface\SPELLBOOK\Spellbook-Page-1]])
frame.background:SetTexCoord (331/512, 63/512, 109/512, 143/512)
--frame.background:SetTexCoord (331/512, 63/512, 109/512, 143/512)
frame.background:SetAllPoints()
frame.background:SetDesaturated (true)
--frame.background:SetVertexColor (1, 1, 1, 0.1)
frame.background:SetVertexColor (.8, .8, .8, 0.8)
frame.background:SetVertexColor (0, 0, 0, .8)
frame.topbg = frame:CreateTexture (nil, "background")
frame.topbg:SetTexture ("Interface\\AddOns\\Details\\images\\background")
@@ -543,7 +543,7 @@ do
function _detalhes.switch:CloseMe()
_detalhes.switch.frame:Hide()
GameCooltip:Hide()
_detalhes.switch.frame:SetBackdropColor (24/255, 24/255, 24/255, .8)
_detalhes.switch.frame:SetBackdropColor (0, 0, 0, .7)
_detalhes.switch.current_instancia:StatusBarAlert (nil)
_detalhes.switch.current_instancia = nil
end
@@ -847,7 +847,7 @@ function _detalhes.switch:ShowMe (instancia)
_detalhes.switch.frame:SetPoint ("topleft", instancia.baseframe, "topleft", 0, 1)
_detalhes.switch.frame:SetPoint ("bottomright", instancia.baseframe, "bottomright", 0, 1)
_detalhes.switch.frame:SetBackdropColor (0.094, 0.094, 0.094, .8)
_detalhes.switch.frame:SetBackdropColor (0, 0, 0, .7)
local altura = instancia.baseframe:GetHeight()
local mostrar_quantas = _math_floor (altura / _detalhes.switch.button_height) * 2
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4 -3
View File
@@ -500,13 +500,14 @@ function _G._detalhes:Start()
dev_text:SetAlpha (.3)
if (self.tutorial.logons < 50) then
dev_text:SetText ("Details is Under\nDevelopment")
dev_icon:SetTexture ([[Interface\DialogFrame\UI-Dialog-Icon-AlertOther]])
--dev_text:SetText ("Details is Under\nDevelopment")
--dev_icon:SetTexture ([[Interface\DialogFrame\UI-Dialog-Icon-AlertOther]])
end
--version
self.gump:Fade (instance._version, 0)
instance._version:SetText ("Details! Beta " .. _detalhes.userversion .. " (core: " .. self.realversion .. ")")
instance._version:SetText ("Details! " .. _detalhes.userversion .. " (core " .. self.realversion .. ")")
instance._version:SetTextColor (1, 1, 1, .35)
instance._version:SetPoint ("bottomleft", instance.baseframe, "bottomleft", 5, 1)
if (instance.auto_switch_to_old) then