Skip to content

Commit

Permalink
ToC Updates; Change logs; Framework update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 2, 2021
1 parent 1536e16 commit e701c95
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 62 deletions.
4 changes: 2 additions & 2 deletions Details.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 90100
## Interface-Mainline: 90100
## Interface: 90105
## Interface-Mainline: 90105
## Interface-BCC: 20502
## Title: Details! Damage Meter
## Notes: Essential tool to impress that chick in your raid.
Expand Down
4 changes: 2 additions & 2 deletions Libs/DF/cooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function DF:CreateCoolTip()
--> main frame
local frame1
if (not GameCooltipFrame1) then
frame1 = CreateFrame ("Frame", "GameCooltipFrame1", UIParent, "TooltipBackdropTemplate, BackdropTemplate")
frame1 = CreateFrame ("Frame", "GameCooltipFrame1", UIParent, "BackdropTemplate")

tinsert (UISpecialFrames, "GameCooltipFrame1")
DF:CreateFlashAnimation (frame1)
Expand Down Expand Up @@ -302,7 +302,7 @@ function DF:CreateCoolTip()
--> secondary frame
local frame2
if (not GameCooltipFrame2) then
frame2 = CreateFrame ("Frame", "GameCooltipFrame2", UIParent,"TooltipBackdropTemplate, BackdropTemplate")
frame2 = CreateFrame ("Frame", "GameCooltipFrame2", UIParent,"BackdropTemplate")

tinsert (UISpecialFrames, "GameCooltipFrame2")
DF:CreateFlashAnimation (frame2)
Expand Down
3 changes: 2 additions & 1 deletion Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 277
local dversion = 278
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)

Expand Down Expand Up @@ -4501,3 +4501,4 @@ end


-----------------------------------------------------------------------------------------------------------------------------------------------------------

14 changes: 12 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

local version, build, date, tocversion = GetBuildInfo()

_detalhes.build_counter = 8889
_detalhes.alpha_build_counter = 8889 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 9108
_detalhes.alpha_build_counter = 9108 --if this is higher than the regular counter, use it instead
_detalhes.bcc_counter = 28
_detalhes.dont_open_news = true
_detalhes.game_version = version
Expand All @@ -33,6 +33,16 @@ do
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale( "Details" )

local news = {
{"v9.1.5.9108.145", "November 02th, 2021"},
"Necrotic Wake: weapons damage does not count anymore for the player which uses it.",
"Necrotic Wake: a new 'fake player' is shown showing the damage done of all weapons during combat.",
"Necrotic Wake: these npcs now does not award damage done to players anymore: Brittlebone Mage, Brittlebone Warrior, Brittlebone Crossbowman",
"The Other Side: the npc Volatile Memory does not award anymore damage to players.",
"Plaguefall: the npcs Fungret Shroomtender and Plaguebound Fallen does not award anymore damage to players.",
"Sanguine Affix: the amount of healing done by sanguine pools now shows on all segments (was shown only in the overall).",
"Tiny Threat (plugin): fixed an issue when hidding the pull aggro bar makes the first line be invisible.",
"Statistics: fixed several small bugs with guild statistics (/details stats).",
"Scale slider (top left slider shown on panels) are now more responsible.",

{"v9.1.0.8888.145", "October 7th, 2021"},
"Search has been added into the options panel",
Expand Down
1 change: 1 addition & 0 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@
--plaguefall
[168365] = true, --fungret shroomtender
[168968] = true, --plaguebound fallen (at the start of the dungeon)
[168891] = true, --
--[169265] = true, --creepy crawler (summoned by decaying flesh giant)
--[168747] = true, --venomfang (summon)
--[168837] = true, --stealthlings (summon)
Expand Down
16 changes: 0 additions & 16 deletions frames/window_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5763,13 +5763,9 @@ function _detalhes:SetTooltipMinWidth()
end

function _detalhes:FormatCooltipBackdrop()

local CoolTip = GameCooltip

CoolTip:SetBackdrop (1, menus_backdrop, menus_backdropcolor, menus_bordercolor)
CoolTip:SetBackdrop (2, menus_backdrop, menus_backdropcolor_sec, menus_bordercolor)
--CoolTip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)

end

local build_mode_list = function (self, elapsed)
Expand Down Expand Up @@ -6794,10 +6790,6 @@ local build_segment_list = function (self, elapsed)
CoolTip:SetOption ("HeighMod", 12)

_detalhes:SetTooltipMinWidth()

--CoolTip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
--CoolTip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
--CoolTip:SetBackdrop (2, menus_backdrop, nil, menus_bordercolor)

_detalhes:FormatCooltipBackdrop()

Expand Down Expand Up @@ -8694,9 +8686,6 @@ end

_detalhes:FormatCooltipBackdrop()

--GameCooltip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
--GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)

show_anti_overlap (self.instance, self, "top")

_detalhes:SetMenuOwner (self, self.instance)
Expand Down Expand Up @@ -8907,9 +8896,6 @@ local report_on_enter = function (self, motion, forced, from_click)

_detalhes:FormatCooltipBackdrop()

--GameCooltip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
--GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)

show_anti_overlap (instancia, self, "top")
_detalhes:SetMenuOwner (self, instancia)

Expand Down Expand Up @@ -8989,8 +8975,6 @@ local atributo_on_enter = function (self, motion, forced, from_click)
GameCooltip:SetOption ("YSpacingModSub", -2)
end

--GameCooltip:SetBackdrop (1, menus_backdrop, nil, menus_bordercolor)
--GameCooltip:SetBackdrop (2, menus_backdrop, nil, menus_bordercolor)
GameCooltip:SetOption ("TextSize", _detalhes.font_sizes.menus)

_detalhes:FormatCooltipBackdrop()
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_DataStorage/Details_DataStorage.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90100
## Interface: 90105
## Title: Details!: Storage
## Notes: Stores information for Details! Damage Meter
## DefaultState: Enabled
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90100
## Interface: 90105
## Title: Details!: Encounter Breakdown (plugin)
## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation.
## RequiredDeps: Details
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_RaidCheck/Details_RaidCheck.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90100
## Interface: 90105
## Title: Details!: Raid Check (plugin)
## Notes: Show talents and item level for all members in your group, also shows food and flask state.
## RequiredDeps: Details
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Streamer/Details_Streamer.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90100
## Interface: 90105
## Title: Details!: Streamer (plugin)
## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps.
## RequiredDeps: Details
Expand Down
71 changes: 38 additions & 33 deletions plugins/Details_TinyThreat/Details_TinyThreat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ local function CreatePluginFrames (data)
threat_table [3] = false
threat_table [6] = 0
end

--> pet
if (UnitExists ("pet")) then
local thisplayer_name = GetUnitName ("pet", true) .. " *PET*"
Expand All @@ -393,77 +393,82 @@ local function CreatePluginFrames (data)
end
end
end

--> sort
_table_sort (ThreatMeter.player_list_indexes, sort)
for index, t in _ipairs (ThreatMeter.player_list_indexes) do
ThreatMeter.player_list_hash [t[1]] = index
end

--> no threat on this enemy
if (ThreatMeter.player_list_indexes [1] [2] < 1) then
ThreatMeter:HideBars()
return
end

local lastIndex = 0
local shownMe = false

local firstIndex = 1
local pullRow = ThreatMeter.ShownRows [1]
local pullRow = ThreatMeter.ShownRows[1]
local me = ThreatMeter.player_list_indexes [ ThreatMeter.player_list_hash [player] ]

if (me and not ThreatMeter.saveddata.hide_pull_bar) then
local hidePullBar = ThreatMeter.saveddata.hide_pull_bar

--setup the pull aggro bar
if (me and not hidePullBar) then
firstIndex = 2

local myThreat = me [6] or 0
local myRole = me [4]

local topThreat = ThreatMeter.player_list_indexes [1]
local aggro = topThreat [6] * (CheckInteractDistance(unitId, 3) and 1.1 or 1.3)
local myThreat = me[6] or 0

--get the player with most aggro
local topThreat = ThreatMeter.player_list_indexes[1]
local aggro = topThreat[6] * (CheckInteractDistance(unitId, 3) and 1.1 or 1.3)
aggro = max(aggro, 0.001)
pullRow:SetLeftText ("Pull Aggro At")
local realPercent = _math_floor (aggro / max (topThreat [6], 0.01) * 100)

pullRow:SetLeftText("Pull Aggro At")
local realPercent = _math_floor(aggro / max (topThreat [6], 0.01) * 100)
pullRow:SetRightText ("+" .. ThreatMeter:ToK2 (aggro - myThreat) .. " (" .. _math_floor (_math_abs ((myThreat / aggro * 100) - realPercent)) .. "%)") --
pullRow:SetValue (100)

local myPercentToAggro = myThreat / aggro * 100

local r, g = ThreatMeter:percent_color (myPercentToAggro)
--local r, g = myPercentToAggro / 100, (100-myPercentToAggro) / 100

local r, g = ThreatMeter:percent_color(myPercentToAggro)
pullRow:SetColor (r, g, 0)
pullRow._icon:SetTexture ([[Interface\PVPFrame\Icon-Combat]])
--pullRow._icon:SetVertexColor (r, g, 0)
pullRow._icon:SetTexCoord (0, 1, 0, 1)
pullRow:Show()
else
if (pullRow) then
pullRow:Hide()
end
end



for index = firstIndex, #ThreatMeter.ShownRows do
local thisRow = ThreatMeter.ShownRows [index]
local threat_actor = ThreatMeter.player_list_indexes [index-1]
local thisRow = ThreatMeter.ShownRows[index]
local threatActor

if (hidePullBar) then
threatActor = ThreatMeter.player_list_indexes[index]
else
threatActor = ThreatMeter.player_list_indexes[index-1]
end

if (threat_actor) then
local role = threat_actor [4]
if (threatActor) then
local role = threatActor[4]
thisRow._icon:SetTexCoord (_unpack (RoleIconCoord [role]))

thisRow:SetLeftText (ThreatMeter:GetOnlyName (threat_actor [1]))
thisRow:SetLeftText (ThreatMeter:GetOnlyName (threatActor [1]))

local pct = threat_actor [2]
local pct = threatActor [2]

thisRow:SetRightText (ThreatMeter:ToK2 (threat_actor [6]) .. " (" .. _cstr ("%.1f", pct) .. "%)")
thisRow:SetRightText (ThreatMeter:ToK2 (threatActor [6]) .. " (" .. _cstr ("%.1f", pct) .. "%)")
thisRow:SetValue (pct)

if (options.useplayercolor and threat_actor [1] == player) then
if (options.useplayercolor and threatActor [1] == player) then
thisRow:SetColor (_unpack (options.playercolor))

elseif (options.useclasscolors) then
local color = RAID_CLASS_COLORS [threat_actor [5]]
local color = RAID_CLASS_COLORS [threatActor [5]]
if (color) then
thisRow:SetColor (color.r, color.g, color.b)
else
Expand All @@ -481,7 +486,7 @@ local function CreatePluginFrames (data)
if (not thisRow.statusbar:IsShown()) then
thisRow:Show()
end
if (threat_actor [1] == player) then
if (threatActor [1] == player) then
shownMe = true
end
else
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_TinyThreat/Details_TinyThreat.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90100
## Interface: 90105
## Title: Details!: Tiny Threat (plugin)
## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel.
## RequiredDeps: Details
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Vanguard/Details_Vanguard.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90100
## Interface: 90105
## Title: Details!: Vanguard (plugin)
## Notes: Show the health and debuffs for tanks in your group.
## SavedVariablesPerCharacter: _detalhes_databaseVanguard
Expand Down

0 comments on commit e701c95

Please sign in to comment.