- Added four more abbreviation types.
- Abbreviations now are applied on all numbers in the bar. - Minimum amount of instances was lowered to 3. - Fixed issue where the instance menu wasn't respecting the amount limit of instances. - Added options for cutomize the right text of a row. - Added a option to be able to chance the framestrata of an window. - Added shift, ctrl, alt interaction for rows which shows all spells, targets or pets when pressed. - Fixed a issue where changing the alpha of a window makes it disappear on the next logon. - Added a option for auto transparency to ignore rows. - Added option to be able to set shadow on the attribute text. - Fixed a issue with window snap where disabled statusbar makes a gap between the windows. - Fixed issue where mini displayes wasn't saved and back to default values on every logon. - Mini display 'instance segment' now have a option to show the encounter name instead the number of the segment. - Added a new experimental library called hotcorners, this library create a menu hidden on the top left corner. - New API: instance:GetId() return the id of the instance.
This commit is contained in:
@@ -670,6 +670,10 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
map_id = _combat_object.is_boss.mapid
|
||||
boss_info = _detalhes:GetBossDetails (_combat_object.is_boss.mapid, _combat_object.is_boss.index)
|
||||
|
||||
if (not boss_info) then
|
||||
return EncounterDetails:Msg (Loc ["STRING_BOSS_NOT_REGISTRED"])
|
||||
end
|
||||
|
||||
-------------- set boss name and zone name --------------
|
||||
EncounterDetailsFrame.boss_name:SetText (_combat_object.is_boss.encounter)
|
||||
EncounterDetailsFrame.raid_name:SetText (_combat_object.is_boss.zone)
|
||||
|
||||
@@ -35,6 +35,8 @@ Loc ["STRING_TOOLTIP"] = "Show Encounter Details Window"
|
||||
Loc ["STRING_LAST_COOLDOWN"] = "last cooldown used"
|
||||
Loc ["STRING_NOLAST_COOLDOWN"] = "no cooldown used"
|
||||
|
||||
Loc ["STRING_BOSS_NOT_REGISTRED"] = "This encounter isn't registred on Details!\nMake sure this raid is enabled over addon control panel on the character selection screen."
|
||||
|
||||
Loc ["STRING_HOLDSHIFT"] = "SHIFT For Spell Description"
|
||||
|
||||
Loc ["STRING_ADDS_HELP"] = "Mouse over |cFF00FF00Arrow Up|r\nfor dmg received, |cFFFF0000Arrow\n|cFFFF0000Down|r for dmg dealt. |cFFFFFF00Click\n|cFFFFFF00Arrow|r: Report the data\nshown on tooltip."
|
||||
|
||||
@@ -104,24 +104,6 @@ local function CreatePluginFrames (data)
|
||||
ThreatMeterFrame:SetWidth (300)
|
||||
ThreatMeterFrame:SetHeight (100)
|
||||
|
||||
--[[
|
||||
ThreatMeterFrame:SetBackdrop ({
|
||||
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
|
||||
tile = true, tileSize = 16,
|
||||
insets = {left = 1, right = 1, top = 0, bottom = 1},})
|
||||
ThreatMeterFrame:SetBackdropColor (.3, .3, .3, .3)
|
||||
|
||||
local icon1 = DetailsFrameWork:NewImage (ThreatMeterFrame, nil, nil, "titleIcon", 64, 64, "Interface\\HELPFRAME\\HelpIcon-ItemRestoration")
|
||||
icon1:SetPoint (10, -10)
|
||||
local title = DetailsFrameWork:NewLabel (ThreatMeterFrame, nil, nil, "titleText", "Tiny Threat", "CoreAbilityFont", 26)
|
||||
title:SetPoint ("left", icon1, "right", 2)
|
||||
title.color = "white"
|
||||
DetailsFrameWork:Fade (icon1, 1)
|
||||
DetailsFrameWork:Fade (title, 1)
|
||||
local title2 = DetailsFrameWork:NewLabel (ThreatMeterFrame, nil, nil, "titleText2", "A (very) small threat meter.", "GameFontHighlightSmall", 9)
|
||||
title2:SetPoint ("bottomright", title, "bottomright", 0, -10)
|
||||
--]]
|
||||
|
||||
function ThreatMeter:UpdateContainers()
|
||||
for _, row in _ipairs (ThreatMeter.Rows) do
|
||||
row:SetContainer (instance.baseframe)
|
||||
|
||||
@@ -361,7 +361,7 @@ local function CreatePluginFrames (data)
|
||||
local healPerSecondNumber = DetailsFrameWork:NewLabel (infoFrame, nil, "VanguardInfoHealHealHpsAmount", nil, "0", "GameFontHighlightSmall", 9.5)
|
||||
healPerSecondNumber:SetPoint ("left", healPerSecond, "right", 2)
|
||||
|
||||
local icon1 = DetailsFrameWork:NewImage (infoFrame, nil, "VanguardInfoHealTop1Icon", nil, 14, 14)
|
||||
local icon1 = DetailsFrameWork:NewImage (infoFrame, nil, 14, 14, nil, nil, nil, "VanguardInfoHealTop1Icon")
|
||||
local topHealer1 = DetailsFrameWork:NewLabel (infoFrame, nil, "VanguardInfoHealTop1", nil, "", "GameFontHighlightSmall", 9.5)
|
||||
topHealer1:SetWidth (80)
|
||||
topHealer1:SetHeight (10)
|
||||
@@ -370,7 +370,7 @@ local function CreatePluginFrames (data)
|
||||
topHealer1:SetPoint ("left", icon1, "right", 2)
|
||||
topHealer1Amount:SetPoint ("left", topHealer1, "right", 2)
|
||||
|
||||
local icon2 = DetailsFrameWork:NewImage (infoFrame, nil, "VanguardInfoHealTop2Icon", nil, 14, 14)
|
||||
local icon2 = DetailsFrameWork:NewImage (infoFrame, nil, 14, 14, nil, nil, nil, "VanguardInfoHealTop2Icon")
|
||||
local topHealer2 = DetailsFrameWork:NewLabel (infoFrame, nil, "VanguardInfoHealTop2", nil, "", "GameFontHighlightSmall", 9.5)
|
||||
topHealer2:SetWidth (80)
|
||||
topHealer2:SetHeight (10)
|
||||
@@ -379,7 +379,7 @@ local function CreatePluginFrames (data)
|
||||
topHealer2:SetPoint ("left", icon2, "right", 2)
|
||||
topHealer2Amount:SetPoint ("left", topHealer2, "right", 2)
|
||||
|
||||
local icon3 = DetailsFrameWork:NewImage (infoFrame, nil, "VanguardInfoHealTop3Icon", nil, 14, 14)
|
||||
local icon3 = DetailsFrameWork:NewImage (infoFrame, nil, 14, 14, nil, nil, nil, "VanguardInfoHealTop3Icon")
|
||||
local topHealer3 = DetailsFrameWork:NewLabel (infoFrame, nil, "VanguardInfoHealTop3", nil, "", "GameFontHighlightSmall", 9.5)
|
||||
topHealer3:SetWidth (80)
|
||||
topHealer3:SetHeight (10)
|
||||
@@ -388,7 +388,7 @@ local function CreatePluginFrames (data)
|
||||
topHealer3:SetPoint ("left", icon3, "right", 2)
|
||||
topHealer3Amount:SetPoint ("left", topHealer3, "right", 2)
|
||||
|
||||
local icon4 = DetailsFrameWork:NewImage (infoFrame, nil, "VanguardInfoHealTop4Icon", nil, 14, 14)
|
||||
local icon4 = DetailsFrameWork:NewImage (infoFrame, nil, 14, 14, nil, nil, nil, "VanguardInfoHealTop4Icon")
|
||||
local topHealer4 = DetailsFrameWork:NewLabel (infoFrame, nil, "VanguardInfoHealTop4", nil, "", "GameFontHighlightSmall", 9.5)
|
||||
topHealer4:SetWidth (80)
|
||||
topHealer4:SetHeight (10)
|
||||
@@ -758,7 +758,7 @@ local function CreatePluginFrames (data)
|
||||
life:SetFrameLevel (-1, Frame)
|
||||
ThisBoxObject.Life = life
|
||||
|
||||
local tanknameTexture = DetailsFrameWork:NewImage (Frame, Frame, "DetailsVanguardTankName"..i.."bG", "tanknamebg", 80, 10, "Interface\\ACHIEVEMENTFRAME\\UI-Achievement-Parchment-Highlight")
|
||||
local tanknameTexture = DetailsFrameWork:NewImage (Frame, "Interface\\ACHIEVEMENTFRAME\\UI-Achievement-Parchment-Highlight", 80, 10, nil, nil, "tanknamebg", "DetailsVanguardTankName"..i.."bG" )
|
||||
|
||||
tanknameTexture:SetTexCoord (0.15234375, 0.82421875, 0, 0.2734375)
|
||||
tanknameTexture:SetPoint ("center", Frame)
|
||||
@@ -772,7 +772,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
|
||||
local Icon1 = DetailsFrameWork:NewImage (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."Icon1", nil, 24, 24, "Interface\\ICONS\\Ability_Creature_Amber_02")
|
||||
local Icon1 = DetailsFrameWork:NewImage (Frame, "Interface\\ICONS\\Ability_Creature_Amber_02", 24, 24, nil, nil, nil, "DetailsVanguardFrameBox"..i.."Icon1")
|
||||
Icon1:SetDrawLayer ("overlay", 1)
|
||||
Icon1:SetPoint ("bottomleft", ThisBoxObject.Frame.frame, 4, 3)
|
||||
|
||||
@@ -786,7 +786,7 @@ local function CreatePluginFrames (data)
|
||||
local Icon1Text = DetailsFrameWork:NewLabel (ThisBoxObject.Frame.frame, Vanguard, "DetailsVanguardFrameBox"..i.."Text1", nil, "25", "GameFontHighlightLarge", 18, {1, 1, 0, 1})
|
||||
Icon1Text:SetPoint ("center", Icon1, "center")
|
||||
|
||||
local blackbg1 = DetailsFrameWork:NewImage (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."BlackBG1", nil, 12, 12)
|
||||
local blackbg1 = DetailsFrameWork:NewImage (Frame, nil, 12, 12, nil, nil, nil, "DetailsVanguardFrameBox"..i.."BlackBG1")
|
||||
blackbg1:SetDrawLayer ("overlay", 2)
|
||||
blackbg1:SetTexture (0, 0, 0, 1)
|
||||
blackbg1:SetPoint ("bottomright", Icon1, 5, -5)
|
||||
@@ -802,7 +802,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
|
||||
local Icon2 = DetailsFrameWork:NewImage (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."Icon2", nil, 24, 24, "Interface\\ICONS\\Ability_Creature_Amber_02")
|
||||
local Icon2 = DetailsFrameWork:NewImage (Frame, "Interface\\ICONS\\Ability_Creature_Amber_02", 24, 24, nil, nil, nil, "DetailsVanguardFrameBox"..i.."Icon2")
|
||||
Icon2:SetDrawLayer ("overlay", 1)
|
||||
Icon2:SetPoint ("bottomleft", Frame, 37, 3)
|
||||
|
||||
@@ -816,7 +816,7 @@ local function CreatePluginFrames (data)
|
||||
local Icon2Text = DetailsFrameWork:NewLabel (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."Text2", nil, "3", "GameFontHighlightLarge", 18, {1, 1, 0, 1})
|
||||
Icon2Text:SetPoint ("center", Icon2, "center")
|
||||
|
||||
local blackbg2 = DetailsFrameWork:NewImage (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."BlackBG2", nil, 12, 12)
|
||||
local blackbg2 = DetailsFrameWork:NewImage (Frame, nil, 12, 12, nil, nil, nil, "DetailsVanguardFrameBox"..i.."BlackBG2")
|
||||
blackbg2:SetDrawLayer ("overlay", 2)
|
||||
blackbg2:SetTexture (0, 0, 0, 1)
|
||||
blackbg2:SetPoint ("bottomright", Icon2, 5, -5)
|
||||
@@ -832,7 +832,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
|
||||
local Icon3 = DetailsFrameWork:NewImage (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."Icon3", nil, 24, 24, "Interface\\ICONS\\Ability_Creature_Amber_02")
|
||||
local Icon3 = DetailsFrameWork:NewImage (Frame, "Interface\\ICONS\\Ability_Creature_Amber_02", 24, 24, nil, nil, nil, "DetailsVanguardFrameBox"..i.."Icon3")
|
||||
Icon3:SetDrawLayer ("overlay", 1)
|
||||
Icon3:SetPoint ("bottomleft", ThisBoxObject.Frame.frame, 70, 3)
|
||||
|
||||
@@ -846,7 +846,7 @@ local function CreatePluginFrames (data)
|
||||
local Icon3Text = DetailsFrameWork:NewLabel (ThisBoxObject.Frame.frame, Vanguard, "DetailsVanguardFrameBox"..i.."Text3", nil, "5", "GameFontHighlightLarge", 18, {1, 1, 0, 1})
|
||||
Icon3Text:SetPoint ("center", Icon3, "center")
|
||||
|
||||
local blackbg3 = DetailsFrameWork:NewImage (Frame, Vanguard, "DetailsVanguardFrameBox"..i.."BlackBG3", nil, 12, 12)
|
||||
local blackbg3 = DetailsFrameWork:NewImage (Frame, nil, 12, 12, nil, nil, nil, "DetailsVanguardFrameBox"..i.."BlackBG3")
|
||||
blackbg3:SetDrawLayer ("overlay", 2)
|
||||
blackbg3:SetTexture (0, 0, 0, 1)
|
||||
blackbg3:SetPoint ("bottomright", Icon3, 5, -5)
|
||||
|
||||
@@ -105,7 +105,7 @@ local function CreatePluginFrames()
|
||||
c:SetFrameLevel (YouAreNotPreparedFrame:GetFrameLevel()+1)
|
||||
|
||||
--background image
|
||||
local b = DetailsFrameWork:NewImage (YouAreNotPreparedFrame, nil, "$parentBackground", nil, 512, 256, [[Interface\AddOns\Details_YouAreNotPrepared\background]])
|
||||
local b = DetailsFrameWork:NewImage (YouAreNotPreparedFrame, [[Interface\AddOns\Details_YouAreNotPrepared\background]], 512, 256, nil, nil, nil, "$parentBackground")
|
||||
b:SetPoint ("topleft", YouAreNotPreparedFrame, "topleft")
|
||||
|
||||
--title
|
||||
@@ -256,7 +256,7 @@ local function CreatePluginFrames()
|
||||
b_texture:SetDesaturated (true)
|
||||
button.widget.b_texture = b_texture
|
||||
|
||||
local icon = DetailsFrameWork:NewImage (button, _, "$parentIcon", "icon", 20, 20)
|
||||
local icon = DetailsFrameWork:NewImage (button, nil, 20, 20, nil, nil, "icon", "$parentIcon")
|
||||
icon:SetTexCoord (0, 0.4921875, 0, 0.4921875) --0.0078125
|
||||
icon:SetPoint ("left", button, "left", 1, 0)
|
||||
icon.texture = [[Interface\WorldStateFrame\SkullBones]]
|
||||
|
||||
Reference in New Issue
Block a user