Bug fixes
- Fixed an error showing SetBorderSizes(). - Fixed an error while on a Battleground. - Fixed tiny threat green icon.
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\..\FrameXML\UI.xsd">
|
||||
<Script file="DFFramesInclude.lua" />
|
||||
|
||||
<Frame name="DFNamePlateFullBorderTemplate" mixin="DFNamePlateBorderTemplateMixin" ignoreParentScale="true" setAllPoints="true" useParentLevel="true" virtual="true">
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND" textureSubLevel="-8">
|
||||
<!-- Left -->
|
||||
<Texture parentKey="Left" parentArray="Textures">
|
||||
<Size x="1.0" />
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="1.0" />
|
||||
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="0" y="-1.0" />
|
||||
</Anchors>
|
||||
<Color r="1" g="1" b="1" a="1"/>
|
||||
</Texture>
|
||||
|
||||
<!-- Right -->
|
||||
<Texture parentKey="Right" parentArray="Textures">
|
||||
<Size x="1.0" />
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="1.0" />
|
||||
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="-1.0" />
|
||||
</Anchors>
|
||||
<Color r="1" g="1" b="1" a="1"/>
|
||||
</Texture>
|
||||
|
||||
<!-- Bottom -->
|
||||
<Texture parentKey="Bottom" parentArray="Textures">
|
||||
<Size y="1.0" />
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
|
||||
<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" />
|
||||
</Anchors>
|
||||
<Color r="1" g="1" b="1" a="1"/>
|
||||
</Texture>
|
||||
|
||||
<!-- Top -->
|
||||
<Texture parentKey="Top" parentArray="Textures">
|
||||
<Size y="1.0" />
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
|
||||
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
|
||||
</Anchors>
|
||||
<Color r="1" g="1" b="1" a="1"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
</Frame>
|
||||
</Ui>
|
||||
@@ -0,0 +1,42 @@
|
||||
DFNamePlateBorderTemplateMixin = {};
|
||||
|
||||
local PixelUtil = PixelUtil or DFPixelUtil
|
||||
|
||||
function DFNamePlateBorderTemplateMixin:SetVertexColor(r, g, b, a)
|
||||
for i, texture in ipairs(self.Textures) do
|
||||
texture:SetVertexColor(r, g, b, a);
|
||||
end
|
||||
end
|
||||
|
||||
function DFNamePlateBorderTemplateMixin:SetBorderSizes(borderSize, borderSizeMinPixels, upwardExtendHeightPixels, upwardExtendHeightMinPixels)
|
||||
self.borderSize = borderSize;
|
||||
self.borderSizeMinPixels = borderSizeMinPixels;
|
||||
self.upwardExtendHeightPixels = upwardExtendHeightPixels;
|
||||
self.upwardExtendHeightMinPixels = upwardExtendHeightMinPixels;
|
||||
end
|
||||
|
||||
function DFNamePlateBorderTemplateMixin:UpdateSizes()
|
||||
local borderSize = self.borderSize or 1;
|
||||
local minPixels = self.borderSizeMinPixels or 2;
|
||||
|
||||
local upwardExtendHeightPixels = self.upwardExtendHeightPixels or borderSize;
|
||||
local upwardExtendHeightMinPixels = self.upwardExtendHeightMinPixels or minPixels;
|
||||
|
||||
PixelUtil.SetWidth(self.Left, borderSize, minPixels);
|
||||
PixelUtil.SetPoint(self.Left, "TOPRIGHT", self, "TOPLEFT", 0, upwardExtendHeightPixels, 0, upwardExtendHeightMinPixels);
|
||||
PixelUtil.SetPoint(self.Left, "BOTTOMRIGHT", self, "BOTTOMLEFT", 0, -borderSize, 0, minPixels);
|
||||
|
||||
PixelUtil.SetWidth(self.Right, borderSize, minPixels);
|
||||
PixelUtil.SetPoint(self.Right, "TOPLEFT", self, "TOPRIGHT", 0, upwardExtendHeightPixels, 0, upwardExtendHeightMinPixels);
|
||||
PixelUtil.SetPoint(self.Right, "BOTTOMLEFT", self, "BOTTOMRIGHT", 0, -borderSize, 0, minPixels);
|
||||
|
||||
PixelUtil.SetHeight(self.Bottom, borderSize, minPixels);
|
||||
PixelUtil.SetPoint(self.Bottom, "TOPLEFT", self, "BOTTOMLEFT", 0, 0);
|
||||
PixelUtil.SetPoint(self.Bottom, "TOPRIGHT", self, "BOTTOMRIGHT", 0, 0);
|
||||
|
||||
if self.Top then
|
||||
PixelUtil.SetHeight(self.Top, borderSize, minPixels);
|
||||
PixelUtil.SetPoint(self.Top, "BOTTOMLEFT", self, "TOPLEFT", 0, 0);
|
||||
PixelUtil.SetPoint(self.Top, "BOTTOMRIGHT", self, "TOPRIGHT", 0, 0);
|
||||
end
|
||||
end
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 249
|
||||
local dversion = 250
|
||||
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
|
||||
|
||||
<Script file ="DFPixelUtil.lua"/>
|
||||
<Include file ="DFFrames.xml"/>
|
||||
|
||||
<Script file="fw.lua"/>
|
||||
<Script file="addon.lua"/>
|
||||
<Script file="colors.lua"/>
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
local version, build, date, tocversion = GetBuildInfo()
|
||||
|
||||
_detalhes.build_counter = 8513
|
||||
_detalhes.alpha_build_counter = 8513 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.build_counter = 8514
|
||||
_detalhes.alpha_build_counter = 8514 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.dont_open_news = true
|
||||
_detalhes.game_version = version
|
||||
_detalhes.userversion = version .. _detalhes.build_counter
|
||||
|
||||
+6
-1
@@ -5821,7 +5821,12 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local players = GetNumBattlefieldScores()
|
||||
|
||||
for i = 1, players do
|
||||
local name, killingBlows, honorableKills, deaths, honorGained, faction, race, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec = GetBattlefieldScore(i)
|
||||
local name, killingBlows, honorableKills, deaths, honorGained, faction, race, rank, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec
|
||||
if (DetailsFramework.IsTBCWow()) then
|
||||
name, killingBlows, honorableKills, deaths, honorGained, faction, rank, race, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec = GetBattlefieldScore(i)
|
||||
else
|
||||
name, killingBlows, honorableKills, deaths, honorGained, faction, race, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec = GetBattlefieldScore(i)
|
||||
end
|
||||
|
||||
--damage done
|
||||
local actor = _detalhes.tabela_vigente(1, name)
|
||||
|
||||
@@ -4013,7 +4013,12 @@ function gump:CreateNewLine (instancia, index)
|
||||
new_row.border:SetAllPoints (new_row)
|
||||
|
||||
--border
|
||||
local lineBorder = CreateFrame("frame", nil, new_row, "NamePlateFullBorderTemplate, BackdropTemplate")
|
||||
local lineBorder
|
||||
if (DetailsFramework.IsTBCWow()) then
|
||||
lineBorder = CreateFrame("frame", nil, new_row, "DFNamePlateFullBorderTemplate, BackdropTemplate")
|
||||
else
|
||||
lineBorder = CreateFrame("frame", nil, new_row, "NamePlateFullBorderTemplate, BackdropTemplate")
|
||||
end
|
||||
new_row.lineBorder = lineBorder
|
||||
|
||||
-- search key: ~model
|
||||
|
||||
@@ -667,7 +667,7 @@ function ThreatMeter:OnEvent (_, event, ...)
|
||||
local MINIMAL_DETAILS_VERSION_REQUIRED = 1
|
||||
|
||||
--> Install
|
||||
local install, saveddata = _G._detalhes:InstallPlugin ("RAID", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\Ability_Paladin_ShieldofVengeance", ThreatMeter, "DETAILS_PLUGIN_TINY_THREAT", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.07")
|
||||
local install, saveddata = _G._detalhes:InstallPlugin ("RAID", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\Ability_Druid_Cower", ThreatMeter, "DETAILS_PLUGIN_TINY_THREAT", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.07")
|
||||
if (type (install) == "table" and install.error) then
|
||||
print (install.error)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user