- Removed bookmark tutorial popup.
- Major Framework update to fix already existing XML warnings. - Added more alias for the basic api, old calls won't be changed: * Details:GetWindow -> GetInstance * Window:IsShown() -> Instance:IsActive() * Window:HideWindow() -> Instance:ShutDown() * Window:ShowWindow() -> Instance:EnableInstance()
This commit is contained in:
+27
-1
@@ -966,6 +966,30 @@ end
|
||||
------------------------------------------------------------------------------------------------------------
|
||||
--> object constructor
|
||||
|
||||
local build_button = function (self)
|
||||
self:SetSize (100, 20)
|
||||
|
||||
self.text = self:CreateFontString ("$parent_Text", "ARTWORK", "GameFontNormal")
|
||||
self.text:SetJustifyH ("CENTER")
|
||||
DF:SetFontSize (self.text, 10)
|
||||
self.text:SetPoint ("CENTER", self, "CENTER", 0, 0)
|
||||
|
||||
self.texture_disabled = self:CreateTexture ("$parent_TextureDisabled", "OVERLAY")
|
||||
self.texture_disabled:SetAllPoints()
|
||||
self.texture_disabled:Hide()
|
||||
self.texture_disabled:SetTexture ("Interface\\Tooltips\\UI-Tooltip-Background")
|
||||
|
||||
self:SetScript ("OnDisable", function (self)
|
||||
self.texture_disabled:Show()
|
||||
self.texture_disabled:SetVertexColor (0, 0, 0)
|
||||
self.texture_disabled:SetAlpha (.5)
|
||||
end)
|
||||
|
||||
self:SetScript ("OnEnable", function (self)
|
||||
self.texture_disabled:Hide()
|
||||
end)
|
||||
end
|
||||
|
||||
function DF:CreateButton (parent, func, w, h, text, param1, param2, texture, member, name, short_method, button_template, text_template)
|
||||
return DF:NewButton (parent, parent, name, member, w, h, func, param1, param2, texture, text, short_method, button_template, text_template)
|
||||
end
|
||||
@@ -1006,7 +1030,9 @@ function DF:NewButton (parent, container, name, member, w, h, func, param1, para
|
||||
ButtonObject.container = container
|
||||
ButtonObject.options = {OnGrab = false}
|
||||
|
||||
ButtonObject.button = CreateFrame ("button", name, parent, "DetailsFrameworkButtonTemplate")
|
||||
ButtonObject.button = CreateFrame ("button", name, parent)
|
||||
build_button (ButtonObject.button)
|
||||
|
||||
ButtonObject.widget = ButtonObject.button
|
||||
|
||||
--ButtonObject.button:SetBackdrop ({bgFile = DF.folder .. "background", tileSize = 64, edgeFile = DF.folder .. "border_2", edgeSize = 10, insets = {left = 1, right = 1, top = 1, bottom = 1}})
|
||||
|
||||
@@ -1,42 +1,3 @@
|
||||
<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="button.lua"/>
|
||||
|
||||
<Button name="DetailsFrameworkButtonTemplate" virtual="true">
|
||||
<Size x="100" y="20"/>
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
|
||||
<!-- text -->
|
||||
<FontString name="$parent_Text" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" nonspacewrap="false">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<Texture name="$parent_TextureDisabled" setAllPoints="true" hidden="true" parentKey="texture_disabled" file = "Interface\Tooltips\UI-Tooltip-Background"/>
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
|
||||
<Scripts>
|
||||
|
||||
<OnDisable>
|
||||
self.texture_disabled:Show()
|
||||
self.texture_disabled:SetVertexColor (0, 0, 0)
|
||||
self.texture_disabled:SetAlpha (.5)
|
||||
</OnDisable>
|
||||
|
||||
<OnEnable>
|
||||
self.texture_disabled:Hide()
|
||||
</OnEnable>
|
||||
|
||||
</Scripts>
|
||||
|
||||
</Button>
|
||||
</Ui>
|
||||
|
||||
+223
-3
@@ -161,10 +161,118 @@ function DF:CreateCoolTip()
|
||||
|
||||
--> create frames
|
||||
|
||||
local build_main_frame = function (self)
|
||||
|
||||
self:SetSize (500, 500)
|
||||
self:SetPoint ("CENTER", UIParent, "CENTER")
|
||||
self:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = [[Interface\Buttons\WHITE8X8]], tile = true, edgeSize = 1, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}})
|
||||
self:SetBackdropColor (0.09019, 0.09019, 0.18823, 1)
|
||||
self:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
|
||||
if (not self.framebackgroundCenter) then
|
||||
self.framebackgroundCenter = self:CreateTexture ("$parent_FrameBackgroundCenter", "BACKGROUND")
|
||||
self.framebackgroundCenter:SetDrawLayer ("BACKGROUND", 2)
|
||||
self.framebackgroundCenter:SetColorTexture (0, 0, 0, .5)
|
||||
self.framebackgroundCenter:SetPoint ("TOPLEFT", self, "TOPLEFT", 35, -3)
|
||||
self.framebackgroundCenter:SetPoint ("TOPRIGHT", self, "TOPRIGHT", -35, -3)
|
||||
self.framebackgroundCenter:SetPoint ("BOTTOMLEFT", self, "BOTTOMLEFT", 35, 3)
|
||||
self.framebackgroundCenter:SetPoint ("BOTTOMRIGHT", self, "BOTTOMRIGHT", -35, 3)
|
||||
end
|
||||
|
||||
if (not self.framebackgroundLeft) then
|
||||
self.framebackgroundLeft = self:CreateTexture ("$parent_FrameBackgroundLeft", "BACKGROUND")
|
||||
self.framebackgroundLeft:SetDrawLayer ("BACKGROUND", 3)
|
||||
self.framebackgroundLeft:SetColorTexture (0, 0, 0, .5)
|
||||
self.framebackgroundLeft:SetPoint ("TOPLEFT", self, "TOPLEFT", 3, -3)
|
||||
self.framebackgroundLeft:SetPoint ("BOTTOMLEFT", self, "BOTTOMLEFT", 3, 3)
|
||||
self.framebackgroundLeft:SetWidth (32)
|
||||
end
|
||||
|
||||
if (not self.framebackgroundRight) then
|
||||
self.framebackgroundRight = self:CreateTexture ("$parent_FrameBackgroundRight", "BACKGROUND")
|
||||
self.framebackgroundRight:SetDrawLayer ("BACKGROUND", 3)
|
||||
self.framebackgroundRight:SetColorTexture (0, 0, 0, .5)
|
||||
self.framebackgroundRight:SetPoint ("TOPRIGHT", self, "TOPRIGHT", -3, -3)
|
||||
self.framebackgroundRight:SetPoint ("BOTTOMRIGHT", self, "BOTTOMRIGHT", -3, 3)
|
||||
self.framebackgroundRight:SetWidth (32)
|
||||
end
|
||||
|
||||
if (not self.frameWallpaper) then
|
||||
self.frameWallpaper = self:CreateTexture ("$parent_FrameWallPaper", "BACKGROUND")
|
||||
self.frameWallpaper:SetDrawLayer ("BACKGROUND", 4)
|
||||
self.frameWallpaper:SetPoint ("TOPLEFT", self, "TOPLEFT", 0, 0)
|
||||
self.frameWallpaper:SetPoint ("BOTTOMRIGHT", self, "BOTTOMRIGHT", 0, 0)
|
||||
end
|
||||
|
||||
if (not self.selectedTop) then
|
||||
self.selectedTop = self:CreateTexture ("$parent_SelectedTop", "ARTWORK")
|
||||
self.selectedTop:SetColorTexture (.5, .5, .5, .75)
|
||||
self.selectedTop:SetHeight (3)
|
||||
end
|
||||
|
||||
if (not self.selectedBottom) then
|
||||
self.selectedBottom = self:CreateTexture ("$parent_SelectedBottom", "ARTWORK")
|
||||
self.selectedBottom:SetColorTexture (.5, .5, .5, .75)
|
||||
self.selectedBottom:SetHeight (3)
|
||||
end
|
||||
|
||||
if (not self.selectedMiddle) then
|
||||
self.selectedMiddle = self:CreateTexture ("$parent_Selected", "ARTWORK")
|
||||
self.selectedMiddle:SetColorTexture (.5, .5, .5, .75)
|
||||
self.selectedMiddle:SetPoint ("TOPLEFT", self.selectedTop, "BOTTOMLEFT")
|
||||
self.selectedMiddle:SetPoint ("BOTTOMRIGHT", self.selectedBottom, "TOPRIGHT")
|
||||
end
|
||||
|
||||
if (not self.upperImage2) then
|
||||
self.upperImage2 = self:CreateTexture ("$parent_UpperImage2", "ARTWORK")
|
||||
self.upperImage2:Hide()
|
||||
self.upperImage2:SetPoint ("CENTER", self, "CENTER", 0, -3)
|
||||
self.upperImage2:SetPoint ("BOTTOM", self, "TOP", 0, -3)
|
||||
end
|
||||
|
||||
if (not self.upperImage) then
|
||||
self.upperImage = self:CreateTexture ("$parent_UpperImage", "OVERLAY")
|
||||
self.upperImage:Hide()
|
||||
self.upperImage:SetPoint ("CENTER", self, "CENTER", 0, -3)
|
||||
self.upperImage:SetPoint ("BOTTOM", self, "TOP", 0, -3)
|
||||
end
|
||||
|
||||
if (not self.upperImageText) then
|
||||
self.upperImageText = self:CreateFontString ("$parent_UpperImageText", "OVERLAY", "GameTooltipHeaderText")
|
||||
self.upperImageText:SetJustifyH ("LEFT")
|
||||
self.upperImageText:SetPoint ("LEFT", self.upperImage, "RIGHT", 5, 0)
|
||||
DF:SetFontSize (self.upperImageText, 13)
|
||||
end
|
||||
|
||||
if (not self.upperImageText2) then
|
||||
self.upperImageText2 = self:CreateFontString ("$parent_UpperImageText2", "OVERLAY", "GameTooltipHeaderText")
|
||||
self.upperImageText2:SetJustifyH ("LEFT")
|
||||
self.upperImageText2:SetPoint ("BOTTOMRIGHT", self, "LEFT", 0, 3)
|
||||
DF:SetFontSize (self.upperImageText2, 13)
|
||||
end
|
||||
|
||||
if (not self.titleIcon) then
|
||||
self.titleIcon = self:CreateTexture ("$parent_TitleIcon", "OVERLAY")
|
||||
self.titleIcon:SetTexture ("Interface\\Challenges\\challenges-main")
|
||||
self.titleIcon:SetTexCoord (0.1521484375, 0.563671875, 0.160859375, 0.234375)
|
||||
self.titleIcon:SetPoint ("CENTER", self, "CENTER")
|
||||
self.titleIcon:SetPoint ("BOTTOM", self, "TOP", 0, -22)
|
||||
self.titleIcon:Hide()
|
||||
end
|
||||
|
||||
if (not self.titleText) then
|
||||
self.titleText = self:CreateFontString ("$parent_TitleText", "OVERLAY", "GameFontHighlightSmall")
|
||||
self.titleText:SetJustifyH ("LEFT")
|
||||
DF:SetFontSize (self.titleText, 10)
|
||||
self.titleText:SetPoint ("CENTER", self.titleIcon, "CENTER", 0, 6)
|
||||
end
|
||||
end
|
||||
|
||||
--> main frame
|
||||
local frame1
|
||||
if (not GameCooltipFrame1) then
|
||||
frame1 = CreateFrame ("Frame", "GameCooltipFrame1", UIParent, "DFCooltipMainFrameTemplate")
|
||||
frame1 = CreateFrame ("Frame", "GameCooltipFrame1", UIParent)
|
||||
|
||||
tinsert (UISpecialFrames, "GameCooltipFrame1")
|
||||
DF:CreateFlashAnimation (frame1)
|
||||
|
||||
@@ -175,6 +283,9 @@ function DF:CreateCoolTip()
|
||||
frame1 = GameCooltipFrame1
|
||||
end
|
||||
|
||||
--> build widgets for frame
|
||||
build_main_frame (frame1)
|
||||
|
||||
GameCooltipFrame1_FrameBackgroundCenter:SetTexture (DF.folder .. "cooltip_background")
|
||||
GameCooltipFrame1_FrameBackgroundCenter:SetTexCoord (0.10546875, 0.89453125, 0, 1)
|
||||
GameCooltipFrame1_FrameBackgroundLeft:SetTexture (DF.folder .. "cooltip_background")
|
||||
@@ -185,7 +296,8 @@ function DF:CreateCoolTip()
|
||||
--> secondary frame
|
||||
local frame2
|
||||
if (not GameCooltipFrame2) then
|
||||
frame2 = CreateFrame ("Frame", "GameCooltipFrame2", UIParent, "DFCooltipMainFrameTemplate")
|
||||
frame2 = CreateFrame ("Frame", "GameCooltipFrame2", UIParent)
|
||||
|
||||
tinsert (UISpecialFrames, "GameCooltipFrame2")
|
||||
DF:CreateFlashAnimation (frame2)
|
||||
frame2:SetClampedToScreen (true)
|
||||
@@ -196,6 +308,9 @@ function DF:CreateCoolTip()
|
||||
else
|
||||
frame2 = GameCooltipFrame2
|
||||
end
|
||||
|
||||
--> build widgets for frame
|
||||
build_main_frame (frame2)
|
||||
|
||||
frame2:SetPoint ("bottomleft", frame1, "bottomright", 4, 0)
|
||||
|
||||
@@ -380,6 +495,109 @@ function DF:CreateCoolTip()
|
||||
--> Button Creation Functions
|
||||
----------------------------------------------------------------------
|
||||
|
||||
local build_button = function (self)
|
||||
|
||||
self:SetSize (1, 20)
|
||||
|
||||
--> status bar
|
||||
self.statusbar = CreateFrame ("StatusBar", "$Parent_StatusBar", self)
|
||||
self.statusbar:SetPoint ("LEFT", self, "LEFT", 10, 0)
|
||||
self.statusbar:SetPoint ("RIGHT", self, "RIGHT", -10, 0)
|
||||
self.statusbar:SetPoint ("TOP", self, "TOP", 0, 0)
|
||||
self.statusbar:SetPoint ("BOTTOM", self, "BOTTOM", 0, 0)
|
||||
self.statusbar:SetHeight (20)
|
||||
|
||||
local statusbar = self.statusbar
|
||||
|
||||
statusbar.texture = statusbar:CreateTexture ("$parent_Texture", "BACKGROUND")
|
||||
statusbar.texture:SetTexture ("Interface\\PaperDollInfoFrame\\UI-Character-Skills-Bar")
|
||||
statusbar.texture:SetSize (300, 14)
|
||||
statusbar:SetStatusBarTexture (statusbar.texture)
|
||||
statusbar:SetMinMaxValues (0, 100)
|
||||
|
||||
statusbar.spark = statusbar:CreateTexture ("$parent_Spark", "BACKGROUND")
|
||||
statusbar.spark:Hide()
|
||||
statusbar.spark:SetTexture ("Interface\\CastingBar\\UI-CastingBar-Spark")
|
||||
statusbar.spark:SetBlendMode ("ADD")
|
||||
statusbar.spark:SetSize (12, 24)
|
||||
statusbar.spark:SetPoint ("LEFT", statusbar, "RIGHT", -20, -1)
|
||||
|
||||
statusbar.background = statusbar:CreateTexture ("$parent_Background", "ARTWORK")
|
||||
statusbar.background:Hide()
|
||||
statusbar.background:SetTexture ("Interface\\FriendsFrame\\UI-FriendsFrame-HighlightBar")
|
||||
statusbar.background:SetPoint ("LEFT", statusbar, "LEFT", -6, 0)
|
||||
statusbar.background:SetPoint ("RIGHT", statusbar, "RIGHT", 6, 0)
|
||||
statusbar.background:SetPoint ("TOP", statusbar, "TOP", 0, 0)
|
||||
statusbar.background:SetPoint ("BOTTOM", statusbar, "BOTTOM", 0, 0)
|
||||
|
||||
self.background = statusbar.background
|
||||
|
||||
statusbar.leftIcon = statusbar:CreateTexture ("$parent_LeftIcon", "OVERLAY")
|
||||
statusbar.leftIcon:SetSize (16, 16)
|
||||
statusbar.leftIcon:SetPoint ("LEFT", statusbar, "LEFT", 0, 0)
|
||||
|
||||
statusbar.rightIcon = statusbar:CreateTexture ("$parent_RightIcon", "OVERLAY")
|
||||
statusbar.rightIcon:SetSize (16, 16)
|
||||
statusbar.rightIcon:SetPoint ("RIGHT", statusbar, "RIGHT", 0, 0)
|
||||
|
||||
statusbar.spark2 = statusbar:CreateTexture ("$parent_Spark2", "OVERLAY")
|
||||
statusbar.spark2:SetSize (32, 32)
|
||||
statusbar.spark2:SetPoint ("LEFT", statusbar, "RIGHT", -17, -1)
|
||||
statusbar.spark2:SetBlendMode ("ADD")
|
||||
statusbar.spark2:SetTexture ("Interface\\CastingBar\\UI-CastingBar-Spark")
|
||||
statusbar.spark2:Hide()
|
||||
|
||||
statusbar.subMenuArrow = statusbar:CreateTexture ("$parent_SubMenuArrow", "OVERLAY")
|
||||
statusbar.subMenuArrow:SetSize (12, 12)
|
||||
statusbar.subMenuArrow:SetPoint ("RIGHT", statusbar, "RIGHT", 3, 0)
|
||||
statusbar.subMenuArrow:SetBlendMode ("ADD")
|
||||
statusbar.subMenuArrow:SetTexture ("Interface\\CHATFRAME\\ChatFrameExpandArrow")
|
||||
statusbar.subMenuArrow:Hide()
|
||||
|
||||
statusbar.leftText = statusbar:CreateFontString ("$parent_LeftText", "OVERLAY", "GameTooltipHeaderText")
|
||||
statusbar.leftText:SetJustifyH ("LEFT")
|
||||
statusbar.leftText:SetPoint ("LEFT", statusbar.leftIcon, "RIGHT", 3, 0)
|
||||
DF:SetFontSize (statusbar.leftText, 10)
|
||||
|
||||
statusbar.rightText = statusbar:CreateFontString ("$parent_TextRight", "OVERLAY", "GameTooltipHeaderText")
|
||||
statusbar.rightText:SetJustifyH ("RIGHT")
|
||||
statusbar.rightText:SetPoint ("RIGHT", statusbar.rightIcon, "LEFT", -3, 0)
|
||||
DF:SetFontSize (statusbar.leftText, 10)
|
||||
|
||||
--> background status bar
|
||||
self.statusbar2 = CreateFrame ("StatusBar", "$Parent_StatusBarBackground", self)
|
||||
self.statusbar2:SetPoint ("LEFT", self.statusbar, "LEFT")
|
||||
self.statusbar2:SetPoint ("RIGHT", self.statusbar, "RIGHT")
|
||||
self.statusbar2:SetPoint ("TOP", self.statusbar, "TOP")
|
||||
self.statusbar2:SetPoint ("BOTTOM", self.statusbar, "BOTTOM")
|
||||
|
||||
local statusbar2 = self.statusbar2
|
||||
|
||||
statusbar2.texture = statusbar2:CreateTexture ("$parent_Texture", "BACKGROUND")
|
||||
statusbar2.texture:SetTexture ("Interface\\PaperDollInfoFrame\\UI-Character-Skills-Bar")
|
||||
statusbar2.texture:SetSize (300, 14)
|
||||
statusbar2:SetStatusBarTexture (statusbar2.texture)
|
||||
statusbar2:SetMinMaxValues (0, 100)
|
||||
|
||||
--> on load
|
||||
self:RegisterForClicks ("LeftButtonDown")
|
||||
self.leftIcon = self.statusbar.leftIcon
|
||||
self.rightIcon = self.statusbar.rightIcon
|
||||
self.texture = self.statusbar.texture
|
||||
self.spark = self.statusbar.spark
|
||||
self.spark2 = self.statusbar.spark2
|
||||
self.leftText = self.statusbar.leftText
|
||||
self.rightText = self.statusbar.rightText
|
||||
self.statusbar:SetFrameLevel (self:GetFrameLevel()+2)
|
||||
self.statusbar2:SetFrameLevel (self.statusbar:GetFrameLevel()-1)
|
||||
self.statusbar2:SetValue (0)
|
||||
|
||||
--> scripts
|
||||
self:SetScript ("OnMouseDown", GameCooltipButtonMouseDown)
|
||||
self:SetScript ("OnMouseUp", GameCooltipButtonMouseUp)
|
||||
|
||||
end
|
||||
|
||||
function GameCooltipButtonMouseDown (button)
|
||||
local mod = CoolTip.OptionsTable.TextHeightMod or 0
|
||||
button.leftText:SetPoint ("center", button.leftIcon, "center", 0, 0+mod)
|
||||
@@ -393,7 +611,9 @@ function DF:CreateCoolTip()
|
||||
end
|
||||
|
||||
function CoolTip:CreateButton (index, frame, name)
|
||||
local new_button = CreateFrame ("Button", name, frame, "DFCooltipButtonTemplate")
|
||||
local new_button = CreateFrame ("Button", name, frame)
|
||||
build_button (new_button)
|
||||
|
||||
frame.Lines [index] = new_button
|
||||
return new_button
|
||||
end
|
||||
|
||||
@@ -1,318 +1,5 @@
|
||||
<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">
|
||||
|
||||
<Frame name="DFCooltipMainFrameTemplate" virtual="true" frameStrata="TOOLTIP">
|
||||
<Size x="500" y="500"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
|
||||
</Anchors>
|
||||
|
||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background-Dark" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="16"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="16"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="3" right="3" top="4" bottom="4"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetBackdropColor (0.09019, 0.09019, 0.18823, 1)
|
||||
self:SetBackdropBorderColor (1, 1, 1, 1)
|
||||
self.framebackgroundLeft:SetWidth (32)
|
||||
self.framebackgroundRight:SetWidth (32)
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="BACKGROUND" textureSubLevel="2">
|
||||
<Texture name="$parent_FrameBackgroundCenter" parentKey="framebackgroundCenter" file = "Interface\AddOns\Details\framework\cooltip_background">
|
||||
<Color a = "1" r = "0" g = "1" b = "0" />
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="35" y="-3"/>
|
||||
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-35" y="-3"/>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="35" y="3"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-35" y="3"/>
|
||||
</Anchors>
|
||||
<TexCoords left="0.10546875" right="0.89453125" top="0" bottom="1"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="BACKGROUND" textureSubLevel="3">
|
||||
<Texture name="$parent_FrameBackgroundLeft" parentKey="framebackgroundLeft" file = "Interface\AddOns\Details\framework\cooltip_background">
|
||||
<Color a = "1" r = "0" g = "1" b = "0" />
|
||||
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="3" y="-3"/>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="3" y="3"/>
|
||||
</Anchors>
|
||||
|
||||
<TexCoords left="0" right="0.103515625" top="0" bottom="1"/>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parent_FrameBackgroundRight" parentKey="framebackgroundRight" file = "Interface\AddOns\Details\framework\cooltip_background">
|
||||
<Color a = "1" r = "0" g = "1" b = "0" />
|
||||
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-3" y="-3"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/>
|
||||
</Anchors>
|
||||
|
||||
<TexCoords left="0.896484375" right="1" top="0" bottom="1"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="BACKGROUND" textureSubLevel="4">
|
||||
<Texture name="$parent_FrameWallPaper" parentKey="frameWallpaper">
|
||||
<Anchors>
|
||||
<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>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- selected bar -->
|
||||
|
||||
<!-- top -->
|
||||
<Texture name="$parent_SelectedTop" parentKey="selectedTop" file = "Interface\AddOns\Details\images\cooltip_selected">
|
||||
<Size y="3"/>
|
||||
<TexCoords left="0" right="1" top="0" bottom="0.09375"/>
|
||||
</Texture>
|
||||
|
||||
<!-- bottom -->
|
||||
<Texture name="$parent_SelectedBottom" parentKey="selectedBottom" file = "Interface\AddOns\Details\images\cooltip_selected">
|
||||
<Size y="3"/>
|
||||
<TexCoords left="0" right="1" top="0.90625" bottom="1"/>
|
||||
</Texture>
|
||||
|
||||
<!-- middle -->
|
||||
<Texture name="$parent_Selected" parentKey="selectedMiddle" file = "Interface\AddOns\Details\images\cooltip_selected">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent_SelectedTop" relativePoint="BOTTOMLEFT"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent_SelectedBottom" relativePoint="TOPRIGHT"/>
|
||||
</Anchors>
|
||||
|
||||
<TexCoords left="0" right="1" top="0.125" bottom="0.875"/>
|
||||
</Texture>
|
||||
|
||||
<!-- banner image -->
|
||||
<Texture name="$parent_UpperImage2" hidden="true" parentKey="upperImage2">
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="-3"/>
|
||||
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-3"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<!-- upper image2 -->
|
||||
<Texture name="$parent_UpperImage" hidden="true" parentKey="upperImage">
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="-3"/>
|
||||
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-3"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<FontString name="$parent_UpperImageText" parentKey="upperImageText" inherits="GameTooltipHeaderText" justifyH="LEFT" nonspacewrap="true">
|
||||
<FontHeight val="13"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent_UpperImage" relativePoint="RIGHT" x="5" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<FontString name="$parent_UpperImageText2" parentKey="upperImageText2" inherits="GameTooltipHeaderText" justifyH="LEFT" nonspacewrap="true">
|
||||
<FontHeight val="13"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="0" y="3"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<!-- title icon -->
|
||||
<Texture name="$parent_TitleIcon" hidden="true" parentKey="titleIcon" file = "Interface\Challenges\challenges-main">
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
|
||||
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-22"/>
|
||||
</Anchors>
|
||||
<TexCoords left="0.1521484375" right="0.563671875" top="0.160859375" bottom="0.234375"/>
|
||||
</Texture>
|
||||
<!-- title text -->
|
||||
<FontString name="$parent_TitleText" parentKey="titleText" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent_TitleIcon" relativePoint="CENTER" x="0" y="6"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
</Frame>
|
||||
|
||||
<Button name="DFCooltipButtonTemplate" virtual="true">
|
||||
<Size x="1" y="20"/>
|
||||
|
||||
<Frames>
|
||||
|
||||
<StatusBar name="$Parent_StatusBar" parentKey="statusbar">
|
||||
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="10" y="0"/>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/>
|
||||
<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
|
||||
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="0"/>
|
||||
</Anchors>
|
||||
|
||||
<Size y="20" />
|
||||
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- statusbar texture -->
|
||||
<Texture name="$parent_Texture" hidden="false" parentKey="texture" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "1" r = "1" g = "1" b = "1" />
|
||||
</Texture>
|
||||
<!-- spark -->
|
||||
<Texture name="$parent_Spark" hidden="true" parentKey="spark" file = "Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
|
||||
<Size>
|
||||
<AbsDimension x="12" y="24"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-20" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- background texture -->
|
||||
<Texture name="$parent_Background" hidden="true" parentKey="background" file = "Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" horizTile="false" vertTile="false">
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="-6" y="0"/>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="6" y="0"/>
|
||||
<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
|
||||
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<!-- left icon texture -->
|
||||
<Texture name="$parent_LeftIcon" parentKey="leftIcon">
|
||||
<Size x="16" y="16" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<!-- right icon texture -->
|
||||
<Texture name="$parent_RightIcon" parentKey="rightIcon">
|
||||
<Size x="16" y="16" />
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- left text -->
|
||||
<FontString name="$parent_LeftText" parentKey="leftText" inherits="GameTooltipHeaderText" justifyH="LEFT" nonspacewrap="false">
|
||||
<FontHeight val="10"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent_LeftIcon" relativePoint="CENTER" x="0" y="0"/>
|
||||
<Anchor point="LEFT" relativeTo="$parent_LeftIcon" relativePoint="RIGHT" x="3" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
<!-- right text -->
|
||||
<FontString name="$parent_TextRight" parentKey="rightText" inherits="GameTooltipHeaderText" justifyH="RIGHT" nonspacewrap="false">
|
||||
<FontHeight val="10"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent_RightIcon" relativePoint="CENTER" x="0" y="0"/>
|
||||
<Anchor point="RIGHT" relativeTo="$parent_RightIcon" relativePoint="LEFT" x="-3" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<!-- spark 2 -->
|
||||
<Texture name="$parent_Spark2" hidden="true" parentKey="spark2" file = "Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
|
||||
<Size>
|
||||
<AbsDimension x="32" y="32"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-17" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<!-- sub menu arrow -->
|
||||
<Texture name="$parent_SubMenuArrow" hidden="true" parentKey="subMenuArrow" file = "Interface\CHATFRAME\ChatFrameExpandArrow" alphaMode="BLEND">
|
||||
<Size>
|
||||
<AbsDimension x="12" y="12"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="3" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetStatusBarTexture (self.texture);
|
||||
<!-- note to my self, never forget statusbar MinMaxValues -->
|
||||
self:SetMinMaxValues (0, 100);
|
||||
self:GetParent().background = self.background
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
|
||||
</StatusBar>
|
||||
|
||||
<StatusBar name="$Parent_StatusBarBackground" parentKey="statusbar2">
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$Parent_StatusBar" relativePoint="LEFT"/>
|
||||
<Anchor point="RIGHT" relativeTo="$Parent_StatusBar" relativePoint="RIGHT"/>
|
||||
<Anchor point="TOP" relativeTo="$Parent_StatusBar" relativePoint="TOP"/>
|
||||
<Anchor point="BOTTOM" relativeTo="$Parent_StatusBar" relativePoint="BOTTOM"/>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- statusbar texture -->
|
||||
<Texture name="$parent_Texture" hidden="false" parentKey="texture" file = "Interface\AddOns\Details\images\bar4_reverse" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "1" r = "1" g = "1" b = "1" />
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetStatusBarTexture (self.texture);
|
||||
self:SetMinMaxValues (0, 100);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</StatusBar>
|
||||
|
||||
</Frames>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:RegisterForClicks ("LeftButtonDown")
|
||||
self.leftIcon = self.statusbar.leftIcon
|
||||
self.rightIcon = self.statusbar.rightIcon
|
||||
self.texture = self.statusbar.texture
|
||||
self.spark = self.statusbar.spark
|
||||
self.spark2 = self.statusbar.spark2
|
||||
self.leftText = self.statusbar.leftText
|
||||
self.rightText = self.statusbar.rightText
|
||||
self.statusbar:SetFrameLevel (self:GetFrameLevel()+2)
|
||||
self.statusbar2:SetFrameLevel (self.statusbar:GetFrameLevel()-1)
|
||||
self.statusbar2:SetValue (0)
|
||||
</OnLoad>
|
||||
|
||||
<OnMouseDown>
|
||||
GameCooltipButtonMouseDown (self);
|
||||
</OnMouseDown>
|
||||
|
||||
<OnMouseUp>
|
||||
GameCooltipButtonMouseUp (self);
|
||||
</OnMouseUp>
|
||||
|
||||
</Scripts>
|
||||
</Button>
|
||||
|
||||
<Script file="cooltip.lua"/>
|
||||
|
||||
</Ui>
|
||||
|
||||
@@ -602,7 +602,6 @@ function DetailsFrameworkDropDownOnMouseDown (button)
|
||||
local name = button:GetName() .. "Row" .. i
|
||||
local parent = scrollChild
|
||||
|
||||
--_this_row = CreateFrame ("Button", name, parent, "DetailsFrameworkDropDownOptionTemplate")
|
||||
_this_row = DF:CreateDropdownButton (parent, name)
|
||||
local anchor_i = i-1
|
||||
_this_row:SetPoint ("topleft", parent, "topleft", 5, (-anchor_i*20)-5)
|
||||
@@ -947,7 +946,6 @@ function DF:NewDropDown (parent, container, name, member, w, h, func, default, t
|
||||
--> misc
|
||||
DropDownObject.container = container
|
||||
|
||||
--DropDownObject.dropdown = CreateFrame ("Button", name, parent, "DetailsFrameworkDropDownTemplate")
|
||||
DropDownObject.dropdown = DF:CreateNewDropdownFrame (parent, name)
|
||||
|
||||
DropDownObject.widget = DropDownObject.dropdown
|
||||
|
||||
@@ -1,252 +1,4 @@
|
||||
<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="dropdown.lua"/>
|
||||
|
||||
<Button name="DetailsFrameworkDropDownTemplate" virtual="true">
|
||||
<Size x="150" y="20"/>
|
||||
|
||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="10"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="16"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="1" right="1" top="0" bottom="1"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- statusbar texture -->
|
||||
<Texture name="$parent_StatusBarTexture" parentKey="statusbar">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="3" y="-3"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- icon texture -->
|
||||
<Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\COMMON\UI-ModelControlPanel">
|
||||
<Color r="1" g="1" b="1" a="0.4"/>
|
||||
<TexCoords left="0.625" right="0.78125" top="0.328125" bottom="0.390625"/>
|
||||
<Size x="20" y="20" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<!-- text -->
|
||||
<FontString name="$parent_Text" parentKey="text" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true" text="no option selected">
|
||||
<Color r="1" g="1" b="1" a="0.4"/>
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
<!-- <Texture name="$parent_ArrowTextureDisabled" parentKey="textureDisabled" file = "Interface\Buttons\UI-ScrollBar-UI-ScrollBar-ScrollDownButton-Disabled">
|
||||
<Size x="32" y="32" />
|
||||
</Texture> -->
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<Texture name="$parent_ArrowTexture2" alphaMode="ADD" parentKey="arrowTexture2" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" hidden="true">
|
||||
<Size x="32" y="28"/>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="5" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<!-- button textures -->
|
||||
<Texture name="$parent_ArrowTexture" parentKey="arrowTexture" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up">
|
||||
<Size x="32" y="28"/>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="5" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
|
||||
<Frames>
|
||||
|
||||
<Frame name="$Parent_Border" parentKey="dropdownborder" hidden="true" frameStrata="FULLSCREEN">
|
||||
<Size x="150" y="170"/>
|
||||
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT"/>
|
||||
</Anchors>
|
||||
|
||||
<Backdrop edgeFile="Interface\Buttons\WHITE8X8">
|
||||
<EdgeSize>
|
||||
<AbsValue val="1"/>
|
||||
</EdgeSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="0" right="0" top="0" bottom="0"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
<Scripts>
|
||||
<OnHide>
|
||||
DetailsFrameworkDropDownOptionsFrameOnHide (self);
|
||||
</OnHide>
|
||||
<OnLoad>
|
||||
self:SetBackdropColor (0, 0, 0, 0.92);
|
||||
self:SetBackdropBorderColor (0, 0, 0, 1);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
|
||||
</Frame>
|
||||
|
||||
<ScrollFrame name="$Parent_ScrollFrame" parentKey="dropdownframe" hidden="true" frameStrata="FULLSCREEN">
|
||||
<Size x="150" y="170"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT" x="0" y="-10" />
|
||||
</Anchors>
|
||||
|
||||
<ScrollChild>
|
||||
<Frame name="$Parent_ScrollChild" frameStrata="FULLSCREEN" parentKey="scrollchild">
|
||||
|
||||
<Size x="150" y="170"/>
|
||||
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="TOPLEFT" x="0" y="0" />
|
||||
</Anchors>
|
||||
|
||||
<Backdrop bgFile="Interface\FrameGeneral\UI-Background-Marble" tile="true">
|
||||
<TileSize>
|
||||
<AbsValue val="256"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="0" right="0" top="0" bottom="0"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- selected texture // we don't know where the file is it -->
|
||||
<Texture name="$parent_SelectedTexture" parentKey="selected" hidden="true" file="Interface\RAIDFRAME\Raid-Bar-Hp-Fill">
|
||||
<Size x="150" y="16" />
|
||||
<!--<TexCoords left="0.31250000" right="0.78515625" top="0.00390625" bottom="0.36328125"/>-->
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- mouse over texture -->
|
||||
<Texture name="$parent_MouseOverTexture" alphaMode="ADD" parentKey="mouseover" hidden="true" file="Interface\Buttons\UI-Listbox-Highlight">
|
||||
<Size x="150" y="15" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
|
||||
</Frame>
|
||||
|
||||
</ScrollChild>
|
||||
|
||||
</ScrollFrame>
|
||||
|
||||
</Frames>
|
||||
|
||||
<Scripts>
|
||||
|
||||
<OnLoad>
|
||||
self:SetBackdropColor (1, 1, 1, .5);
|
||||
self.arrowTexture:SetDrawLayer ("OVERLAY", 1);
|
||||
self.arrowTexture2:SetDrawLayer ("OVERLAY", 2);
|
||||
|
||||
tinsert (UISpecialFrames, self.dropdownborder:GetName());
|
||||
tinsert (UISpecialFrames, self.dropdownframe:GetName());
|
||||
</OnLoad>
|
||||
|
||||
<OnShow>
|
||||
<!--DetailsFrameworkDropDownOnShow (self);-->
|
||||
</OnShow>
|
||||
|
||||
<OnHide>
|
||||
<!--DetailsFrameworkDropDownOnHide (self);-->
|
||||
</OnHide>
|
||||
|
||||
<OnEnter>
|
||||
<!--DetailsFrameworkDropDownOnEnter (self);-->
|
||||
</OnEnter>
|
||||
|
||||
<OnLeave>
|
||||
<!--DetailsFrameworkDropDownOnLeave (self);-->
|
||||
</OnLeave>
|
||||
|
||||
<OnSizeChanged>
|
||||
DetailsFrameworkDropDownOnSizeChanged (self);
|
||||
</OnSizeChanged>
|
||||
|
||||
<OnMouseDown>
|
||||
DetailsFrameworkDropDownOnMouseDown (self);
|
||||
</OnMouseDown>
|
||||
</Scripts>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button name="DetailsFrameworkDropDownOptionTemplate" virtual="true" frameStrata="TOOLTIP">
|
||||
<Size x="150" y="20" />
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- statusbar texture -->
|
||||
<Texture name="$parent_StatusBarTexture" parentKey="statusbar">
|
||||
<Size x="150" y="20" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="1" y="0"/>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<!-- icon texture -->
|
||||
<Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\ICONS\Spell_ChargePositive">
|
||||
<Size x="20" y="20" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<!-- text -->
|
||||
<FontString name="$parent_Text" parentKey="label" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="false">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetFrameStrata (self:GetParent():GetFrameStrata())
|
||||
self:SetFrameLevel (self:GetParent():GetFrameLevel()+10)
|
||||
</OnLoad>
|
||||
<OnMouseDown>
|
||||
DetailsFrameworkDropDownOptionClick (self);
|
||||
</OnMouseDown>
|
||||
|
||||
<OnEnter>
|
||||
DetailsFrameworkDropDownOptionOnEnter (self);
|
||||
</OnEnter>
|
||||
|
||||
<OnLeave>
|
||||
DetailsFrameworkDropDownOptionOnLeave (self);
|
||||
</OnLeave>
|
||||
|
||||
</Scripts>
|
||||
|
||||
</Button>
|
||||
|
||||
</Ui>
|
||||
|
||||
|
||||
+11
-46
@@ -1,5 +1,5 @@
|
||||
|
||||
local dversion = 85
|
||||
local dversion = 86
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -265,7 +265,7 @@ else
|
||||
elseif (numero > 999) then
|
||||
return format ("%.1f", (numero/1000)) .. "K"
|
||||
end
|
||||
return format ("%.1f", numero)
|
||||
return floor (numero)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -926,42 +926,15 @@ end
|
||||
|
||||
function DF:ShowTutorialAlertFrame (maintext, desctext, clickfunc)
|
||||
|
||||
local TutorialAlertFrame = _G.DetailsFrameworkTutorialAlertFrame
|
||||
local TutorialAlertFrame = _G.DetailsFrameworkAlertFrame
|
||||
|
||||
if (not TutorialAlertFrame) then
|
||||
|
||||
TutorialAlertFrame = CreateFrame ("ScrollFrame", "DetailsFrameworkTutorialAlertFrame", UIParent, "DetailsFrameworkTutorialAlertFrameTemplate")
|
||||
|
||||
TutorialAlertFrame = CreateFrame ("frame", "DetailsFrameworkAlertFrame", UIParent, "MicroButtonAlertTemplate")
|
||||
TutorialAlertFrame.isFirst = true
|
||||
TutorialAlertFrame:SetPoint ("left", UIParent, "left", -20, 100)
|
||||
|
||||
TutorialAlertFrame:SetWidth (290)
|
||||
TutorialAlertFrame.ScrollChild:SetWidth (256)
|
||||
|
||||
local scrollname = TutorialAlertFrame.ScrollChild:GetName()
|
||||
_G [scrollname .. "BorderTopLeft"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderTopRight"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderBotLeft"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderBotRight"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderLeft"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderRight"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderBottom"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "BorderTop"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
|
||||
local iconbg = _G [scrollname .. "QuestIconBg"]
|
||||
iconbg:SetTexture ([[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]])
|
||||
iconbg:SetTexCoord (0, 1, 0, 1)
|
||||
iconbg:SetSize (100, 100)
|
||||
iconbg:ClearAllPoints()
|
||||
iconbg:SetPoint ("bottomleft", TutorialAlertFrame.ScrollChild, "bottomleft")
|
||||
|
||||
_G [scrollname .. "Exclamation"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
_G [scrollname .. "QuestionMark"]:SetVertexColor (1, 0.8, 0, 1)
|
||||
|
||||
_G [scrollname .. "TopText"]:SetText ("Details!") --string
|
||||
_G [scrollname .. "QuestName"]:SetText ("") --string
|
||||
_G [scrollname .. "BottomText"]:SetText ("") --string
|
||||
|
||||
TutorialAlertFrame.ScrollChild.IconShine:SetTexture ([[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]])
|
||||
TutorialAlertFrame:SetFrameStrata ("TOOLTIP")
|
||||
TutorialAlertFrame:Hide()
|
||||
|
||||
TutorialAlertFrame:SetScript ("OnMouseUp", function (self)
|
||||
if (self.clickfunc and type (self.clickfunc) == "function") then
|
||||
@@ -972,21 +945,13 @@ end
|
||||
TutorialAlertFrame:Hide()
|
||||
end
|
||||
|
||||
if (type (maintext) == "string") then
|
||||
TutorialAlertFrame.ScrollChild.QuestName:SetText (maintext)
|
||||
else
|
||||
TutorialAlertFrame.ScrollChild.QuestName:SetText ("")
|
||||
end
|
||||
|
||||
if (type (desctext) == "string") then
|
||||
TutorialAlertFrame.ScrollChild.BottomText:SetText (desctext)
|
||||
else
|
||||
TutorialAlertFrame.ScrollChild.BottomText:SetText ("")
|
||||
end
|
||||
--
|
||||
TutorialAlertFrame.label = type (maintext) == "string" and maintext or type (desctext) == "string" and desctext or ""
|
||||
MicroButtonAlert_SetText (TutorialAlertFrame, alert.label)
|
||||
--
|
||||
|
||||
TutorialAlertFrame.clickfunc = clickfunc
|
||||
TutorialAlertFrame:Show()
|
||||
DetailsTutorialAlertFrame_SlideInFrame (TutorialAlertFrame, "AUTOQUEST")
|
||||
end
|
||||
|
||||
local refresh_options = function (self)
|
||||
|
||||
+63
-1
@@ -650,6 +650,66 @@ function DetailsFrameworkNormalBar_OnCreate (self)
|
||||
return true
|
||||
end
|
||||
|
||||
local build_statusbar = function (self)
|
||||
|
||||
self:SetSize (300, 14)
|
||||
|
||||
self.background = self:CreateTexture ("$parent_background", "BACKGROUND")
|
||||
self.background:Hide()
|
||||
self.background:SetAllPoints()
|
||||
self.background:SetTexture ([[Interface\PaperDollInfoFrame\UI-Character-Skills-Bar]])
|
||||
self.background:SetVertexColor (.3, .3, .3, .3)
|
||||
|
||||
self.timertexture = self:CreateTexture ("$parent_timerTexture", "ARTWORK")
|
||||
self.timertexture:Hide()
|
||||
self.timertexture:SetSize (300, 14)
|
||||
self.timertexture:SetTexture ([[Interface\PaperDollInfoFrame\UI-Character-Skills-Bar]])
|
||||
self.timertexture:SetPoint ("LEFT", self, "LEFT")
|
||||
|
||||
self.timertextureR = self:CreateTexture ("$parent_timerTextureR", "ARTWORK")
|
||||
self.timertextureR:Hide()
|
||||
self.timertextureR:SetSize (300, 14)
|
||||
self.timertextureR:SetTexture ([[Interface\PaperDollInfoFrame\UI-Character-Skills-Bar]])
|
||||
self.timertextureR:SetPoint ("TOPRIGHT", self, 0, 0)
|
||||
self.timertextureR:SetPoint ("BOTTOMRIGHT", self, 0, 0)
|
||||
|
||||
self.texture = self:CreateTexture ("$parent_statusbarTexture", "ARTWORK")
|
||||
self.texture:SetSize (300, 14)
|
||||
self.texture:SetTexture ([[Interface\PaperDollInfoFrame\UI-Character-Skills-Bar]])
|
||||
|
||||
self:SetStatusBarTexture (self.texture)
|
||||
|
||||
self.icontexture = self:CreateTexture ("$parent_icon", "OVERLAY")
|
||||
self.icontexture:SetSize (14, 14)
|
||||
self.icontexture:SetPoint ("LEFT", self, "LEFT")
|
||||
|
||||
self.sparkmouseover = self:CreateTexture ("$parent_sparkMouseover", "OVERLAY")
|
||||
self.sparkmouseover:SetSize (32, 32)
|
||||
self.sparkmouseover:SetTexture ([[Interface\CastingBar\UI-CastingBar-Spark]])
|
||||
self.sparkmouseover:SetBlendMode ("ADD")
|
||||
self.sparkmouseover:SetPoint ("LEFT", self, "RIGHT", -16, -1)
|
||||
self.sparkmouseover:Hide()
|
||||
|
||||
self.sparktimer = self:CreateTexture ("$parent_sparkTimer", "OVERLAY")
|
||||
self.sparktimer:SetSize (32, 32)
|
||||
self.sparktimer:SetPoint ("LEFT", self.timertexture, "RIGHT", -16, -1)
|
||||
self.sparktimer:SetTexture ([[Interface\CastingBar\UI-CastingBar-Spark]])
|
||||
self.sparktimer:SetBlendMode ("ADD")
|
||||
self.sparktimer:Hide()
|
||||
|
||||
self.lefttext = self:CreateFontString ("$parent_TextLeft", "OVERLAY", "GameFontHighlight")
|
||||
self.lefttext:SetJustifyH ("LEFT")
|
||||
self.lefttext:SetPoint ("LEFT", self.icontexture, "RIGHT", 3, 0)
|
||||
DF:SetFontSize (self.lefttext, 10)
|
||||
|
||||
self.righttext = self:CreateFontString ("$parent_TextRight", "OVERLAY", "GameFontHighlight")
|
||||
self.righttext:SetJustifyH ("LEFT")
|
||||
DF:SetFontSize (self.righttext, 10)
|
||||
self.righttext:SetPoint ("RIGHT", self, "RIGHT", -3, 0)
|
||||
|
||||
DetailsFrameworkNormalBar_OnCreate (self)
|
||||
end
|
||||
|
||||
function DF:CreateBar (parent, texture, w, h, value, member, name)
|
||||
return DF:NewBar (parent, parent, name, member, w, h, value, texture)
|
||||
end
|
||||
@@ -695,7 +755,9 @@ function DF:NewBar (parent, container, name, member, w, h, value, texture_name)
|
||||
BarObject.container = container
|
||||
|
||||
--> create widgets
|
||||
BarObject.statusbar = CreateFrame ("statusbar", name, parent, "DetailsFrameworkNormalBarTemplate")
|
||||
BarObject.statusbar = CreateFrame ("statusbar", name, parent)
|
||||
build_statusbar (BarObject.statusbar)
|
||||
|
||||
BarObject.widget = BarObject.statusbar
|
||||
|
||||
if (not APIBarFunctions) then
|
||||
|
||||
@@ -1,98 +1,3 @@
|
||||
<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="normal_bar.lua"/>
|
||||
|
||||
<StatusBar name="DetailsFrameworkNormalBarTemplate" virtual="true">
|
||||
<Size x="300" y="14"/>
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- background texture -->
|
||||
<Texture name="$parent_background" hidden="false" setAllPoints="true" parentKey="background" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "0.3" r = "0.3" g = "0.3" b = "0.3" />
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- timer texture -->
|
||||
<Texture name="$parent_timerTexture" hidden="true" parentKey="timertexture" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "1" r = "1" g = "1" b = "1" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<Texture name="$parent_timerTextureR" hidden="true" parentKey="timertextureR" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "1" r = "1" g = "1" b = "1" />
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" relativeTo="$parent" x="0" y="0"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- statusbar texture -->
|
||||
<Texture name="$parent_statusbarTexture" hidden="false" parentKey="texture" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "1" r = "1" g = "1" b = "1" />
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<!-- icon texture -->
|
||||
<Texture name="$parent_icon" parentKey="icontexture">
|
||||
<Size x="14" y="14" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- spark mouse over -->
|
||||
<Texture name="$parent_sparkMouseover" hidden="true" parentKey="sparkmouseover" file = "Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
|
||||
<Size>
|
||||
<AbsDimension x="32" y="32"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-16" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- timer spark -->
|
||||
<Texture name="$parent_sparkTimer" hidden="true" parentKey="sparktimer" file = "Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
|
||||
<Size>
|
||||
<AbsDimension x="32" y="32"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent_timerTexture" relativePoint="RIGHT" x="-16" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- left text -->
|
||||
<FontString name="$parent_TextLeft" parentKey="lefttext" inherits="GameFontHighlight" justifyH="LEFT" nonspacewrap="false">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent_icon" relativePoint="RIGHT" x="3" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
<!-- right text -->
|
||||
<FontString name="$parent_TextRight" parentKey="righttext" inherits="GameFontHighlight" justifyH="RIGHT" nonspacewrap="false">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-3" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetStatusBarTexture (self.texture);
|
||||
DetailsFrameworkNormalBar_OnCreate (self);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</StatusBar>
|
||||
</Ui>
|
||||
|
||||
+8
-1
@@ -490,7 +490,14 @@ function DF:NewPanel (parent, container, name, member, w, h, backdrop, backdropc
|
||||
PanelObject.container = container
|
||||
PanelObject.rightButtonClose = false
|
||||
|
||||
PanelObject.frame = CreateFrame ("frame", name, parent, "DetailsFrameworkPanelTemplate")
|
||||
PanelObject.frame = CreateFrame ("frame", name, parent)
|
||||
PanelObject.frame:SetSize (100, 100)
|
||||
PanelObject.frame.Gradient = {
|
||||
["OnEnter"] = {0.3, 0.3, 0.3, 0.5},
|
||||
["OnLeave"] = {0.9, 0.7, 0.7, 1}
|
||||
}
|
||||
PanelObject.frame:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background]], edgeFile = "Interface\DialogFrame\UI-DialogBox-Border", edgeSize = 10, tileSize = 64, tile = true})
|
||||
|
||||
PanelObject.widget = PanelObject.frame
|
||||
|
||||
if (not APIFrameFunctions) then
|
||||
|
||||
@@ -1,32 +1,3 @@
|
||||
<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="panel.lua"/>
|
||||
|
||||
<Frame name="DetailsFrameworkPanelTemplate" virtual="true">
|
||||
|
||||
<Size x="100" y="100"/>
|
||||
|
||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="10"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="16"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="1" right="1" top="0" bottom="1"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self.Gradient = {
|
||||
["OnEnter"] = {0.3, 0.3, 0.3, 0.5},
|
||||
["OnLeave"] = {0.9, 0.7, 0.7, 1}
|
||||
}
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
|
||||
</Frame>
|
||||
|
||||
</Ui>
|
||||
|
||||
+46
-1
@@ -526,6 +526,50 @@ function DF:CreateSplitBar (parent, parent, w, h, member, name)
|
||||
return DF:NewSplitBar (parent, container, name, member, w, h)
|
||||
end
|
||||
|
||||
local build_statusbar = function (self)
|
||||
self:SetSize (300, 14)
|
||||
|
||||
self.background = self:CreateTexture ("$parent_StatusBarBackground", "BACKGROUND")
|
||||
self.background:SetAllPoints()
|
||||
self.background:SetTexture ([[Interface\PaperDollInfoFrame\UI-Character-Skills-Bar]])
|
||||
self.background:SetVertexColor (.5, .5, .5, 1)
|
||||
|
||||
self.texture = self:CreateTexture ("$parent_StatusBarTexture", "ARTWORK")
|
||||
self.texture:Hide()
|
||||
self.texture:SetSize (300, 14)
|
||||
self.texture:SetTexture ([[Interface\PaperDollInfoFrame\UI-Character-Skills-Bar]])
|
||||
|
||||
self.lefticon = self:CreateTexture ("$parent_IconLeft", "OVERLAY")
|
||||
self.lefticon:SetSize (14, 14)
|
||||
self.lefticon:SetPoint ("LEFT", self, "LEFT")
|
||||
|
||||
self.righticon = self:CreateTexture ("$parent_IconRight", "OVERLAY")
|
||||
self.righticon:SetSize (14, 14)
|
||||
self.righticon:SetPoint ("RIGHT", self, "RIGHT")
|
||||
|
||||
self.spark = self:CreateTexture ("$parent_Spark", "OVERLAY")
|
||||
self.spark:SetTexture ([[Interface\CastingBar\UI-CastingBar-Spark]])
|
||||
self.spark:SetBlendMode ("ADD")
|
||||
self.spark:SetSize (32, 32)
|
||||
self.spark:SetPoint ("LEFT", self, "RIGHT", -17, -1)
|
||||
|
||||
self.lefttext = self:CreateFontString ("$parent_TextLeft", "OVERLAY", "GameFontHighlight")
|
||||
DF:SetFontSize (self.lefttext, 10)
|
||||
self.lefttext:SetJustifyH ("left")
|
||||
self.lefttext:SetPoint ("LEFT", self.lefticon, "RIGHT", 3, 0)
|
||||
|
||||
self.righttext = self:CreateFontString ("$parent_TextRight", "OVERLAY", "GameFontHighlight")
|
||||
DF:SetFontSize (self.righttext, 10)
|
||||
self.righttext:SetJustifyH ("right")
|
||||
self.righttext:SetPoint ("RIGHT", self.righticon, "LEFT", -3, 0)
|
||||
|
||||
self:SetStatusBarTexture (self.texture)
|
||||
self:SetMinMaxValues (1, 100)
|
||||
self:SetValue (50)
|
||||
DetailsFrameworkSplitlBar_OnCreate (self)
|
||||
end
|
||||
|
||||
|
||||
function DF:NewSplitBar (parent, container, name, member, w, h)
|
||||
|
||||
if (not name) then
|
||||
@@ -563,7 +607,8 @@ function DF:NewSplitBar (parent, container, name, member, w, h)
|
||||
SplitBarObject.container = container
|
||||
|
||||
--> create widgets
|
||||
SplitBarObject.statusbar = CreateFrame ("statusbar", name, parent, "DetailsFrameworkSplitBarTemplate")
|
||||
SplitBarObject.statusbar = CreateFrame ("statusbar", name, parent)
|
||||
build_statusbar (SplitBarObject.statusbar)
|
||||
SplitBarObject.widget = SplitBarObject.statusbar
|
||||
|
||||
if (not APISplitBarFunctions) then
|
||||
|
||||
@@ -1,82 +1,3 @@
|
||||
<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="split_bar.lua"/>
|
||||
|
||||
<StatusBar name="DetailsFrameworkSplitBarTemplate" virtual="true">
|
||||
<Size x="300" y="14"/>
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- background texture -->
|
||||
<Texture name="$parent_StatusBarBackground" setAllPoints="true" parentKey="background" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Color a = "1" r = ".5" g = ".5" b = ".5" />
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="ARTWORK">
|
||||
<!-- statusbar texture -->
|
||||
<Texture name="$parent_StatusBarTexture" hidden="true" parentKey="texture" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
|
||||
<Size x="300" y="14" />
|
||||
<Color a = "1" r = "1" g = "1" b = "1" />
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<!-- left icon -->
|
||||
<Texture name="$parent_IconLeft" parentKey="lefticon">
|
||||
<Size x="14" y="14" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- right icon -->
|
||||
<Texture name="$parent_IconRight" parentKey="righticon">
|
||||
<Size x="14" y="14" />
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<!-- left text -->
|
||||
<FontString name="$parent_TextLeft" parentKey="lefttext" inherits="GameFontHighlight" justifyH="LEFT" nonspacewrap="false">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent_IconLeft" relativePoint="RIGHT" x="3" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
<!-- right text -->
|
||||
<FontString name="$parent_TextRight" parentKey="righttext" inherits="GameFontHighlight" justifyH="RIGHT" nonspacewrap="false">
|
||||
<FontHeight val="10.5"/>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent_IconRight" relativePoint="LEFT" x="-3" y="0"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
<!-- div spark -->
|
||||
<Texture name="$parent_Spark" parentKey="spark" file = "Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
|
||||
<Size>
|
||||
<AbsDimension x="32" y="32"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-17" y="-1"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetStatusBarTexture (self.texture);
|
||||
self:SetMinMaxValues (1, 100);
|
||||
self:SetValue (50);
|
||||
DetailsFrameworkSplitlBar_OnCreate (self);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
|
||||
</StatusBar>
|
||||
</Ui>
|
||||
|
||||
+24
-2
@@ -583,7 +583,14 @@ function DF:NewTextEntry (parent, container, name, member, w, h, func, param1, p
|
||||
TextEntryObject.container = container
|
||||
TextEntryObject.have_tooltip = nil
|
||||
|
||||
TextEntryObject.editbox = CreateFrame ("EditBox", name, parent, "DetailsFrameworkEditBoxTemplate2")
|
||||
TextEntryObject.editbox = CreateFrame ("EditBox", name, parent)
|
||||
TextEntryObject.editbox:SetSize (232, 20)
|
||||
TextEntryObject.editbox:SetBackdrop ({bgFile = [["Interface\DialogFrame\UI-DialogBox-Background"]], tileSize = 64, tile = true, edgeFile = [[Interface\DialogFrame\UI-DialogBox-Border]], edgeSize = 10, insets = {left = 1, right = 1, top = 0, bottom = 0}})
|
||||
|
||||
TextEntryObject.editbox.label = TextEntryObject.editbox:CreateFontString ("$parent_Desc", "OVERLAY", "GameFontHighlightSmall")
|
||||
TextEntryObject.editbox.label:SetJustifyH ("left")
|
||||
TextEntryObject.editbox.label:SetPoint ("RIGHT", TextEntryObject.editbox, "LEFT", -2, 0)
|
||||
|
||||
TextEntryObject.widget = TextEntryObject.editbox
|
||||
|
||||
TextEntryObject.editbox:SetTextInsets (3, 0, 0, -3)
|
||||
@@ -1079,7 +1086,22 @@ function DF:NewSpecialLuaEditorEntry (parent, w, h, member, name, nointent)
|
||||
parent [member] = borderframe
|
||||
end
|
||||
|
||||
local scrollframe = CreateFrame ("ScrollFrame", name, borderframe, "DetailsFrameworkEditBoxMultiLineTemplate")
|
||||
local scrollframe = CreateFrame ("ScrollFrame", name, borderframe, "UIPanelScrollFrameTemplate")
|
||||
scrollframe:SetSize (232, 20)
|
||||
scrollframe.editbox = CreateFrame ("editbox", "$parentEditBox", scrollframe)
|
||||
scrollframe.editbox:SetMultiLine (true)
|
||||
scrollframe.editbox:SetAutoFocus (false)
|
||||
scrollframe.editbox:SetSize (232, 20)
|
||||
scrollframe.editbox:SetAllPoints()
|
||||
|
||||
scrollframe.editbox:SetScript ("OnCursorChanged", _G.ScrollingEdit_OnCursorChanged)
|
||||
scrollframe.editbox:SetScript ("OnEscapePressed", _G.EditBox_ClearFocus)
|
||||
scrollframe.editbox:SetFontObject ("GameFontHighlightSmall")
|
||||
|
||||
scrollframe:SetScrollChild (scrollframe.editbox)
|
||||
|
||||
--letters="255"
|
||||
--countInvisibleLetters="true"
|
||||
|
||||
borderframe.SetAsAutoComplete = TextEntryMetaFunctions.SetAsAutoComplete
|
||||
|
||||
|
||||
@@ -1,62 +1,3 @@
|
||||
<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="textentry.lua"/>
|
||||
|
||||
<EditBox name="DetailsFrameworkEditBoxTemplate2" virtual="true">
|
||||
<Size x="232" y="20"/>
|
||||
|
||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="10"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="16"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="1" right="1" top="0" bottom="1"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
<Layers>
|
||||
|
||||
<Layer level="OVERLAY">
|
||||
<!-- box description -->
|
||||
<FontString name="$parent_Desc" text="" parentKey="label" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="false">
|
||||
<Color r = "0.8" g = "0.8" b = "0.8" a = "1"/>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="-2" y="0" />
|
||||
</Anchors>
|
||||
</FontString>
|
||||
|
||||
</Layer>
|
||||
|
||||
</Layers>
|
||||
|
||||
</EditBox>
|
||||
|
||||
<ScrollFrame name="DetailsFrameworkEditBoxMultiLineTemplate" inherits="UIPanelScrollFrameTemplate" virtual="true">
|
||||
<Size x="232" y="20"/>
|
||||
<ScrollChild>
|
||||
<EditBox name="$parentEditBox" multiLine="true" letters="255" autoFocus="false" countInvisibleLetters="true" parentKey="editbox">
|
||||
<Size x="232" y="20"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" />
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" />
|
||||
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" />
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" />
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnTextChanged>
|
||||
<!-- ScrollingEdit_OnTextChanged (self, self:GetParent()); -->
|
||||
</OnTextChanged>
|
||||
<OnCursorChanged function="ScrollingEdit_OnCursorChanged"/>
|
||||
<OnUpdate>
|
||||
<!-- ScrollingEdit_OnUpdate (self, elapsed, self:GetParent());-->
|
||||
</OnUpdate>
|
||||
<OnEscapePressed function="EditBox_ClearFocus"/>
|
||||
</Scripts>
|
||||
<FontString inherits="GameFontHighlightSmall"/>
|
||||
</EditBox>
|
||||
</ScrollChild>
|
||||
</ScrollFrame>
|
||||
</Ui>
|
||||
|
||||
+1
-246
@@ -1,247 +1,2 @@
|
||||
<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">
|
||||
|
||||
<!-- raw copy from MoP WatchFrames, got removed on WoD -->
|
||||
|
||||
<ScrollFrame name="DetailsFrameworkTutorialAlertFrameTemplate" enableMouse="true" virtual="true">
|
||||
<Size x="224" y="72"/>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetHorizontalScroll(-28.5);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
<ScrollChild>
|
||||
<Frame name="$parentScrollChild" parentKey="ScrollChild">
|
||||
<Size x="190" y="60"/>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<Texture name="$parentBg" setAllPoints="true">
|
||||
<Color r="0" g="0" b="0" a="0.5"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
<Layer level="BORDER">
|
||||
<Texture name="$parentBorderTopLeft" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="16" y="16"/>
|
||||
<TexCoords left="0.02539063" right="0.05664063" top="0.01562500" bottom="0.26562500"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="-4" y="4" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderTopRight" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="16" y="16"/>
|
||||
<TexCoords left="0.02539063" right="0.05664063" top="0.29687500" bottom="0.54687500"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" x="4" y="4" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderBotLeft" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="16" y="16"/>
|
||||
<TexCoords left="0.02539063" right="0.05664063" top="0.57812500" bottom="0.82812500"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" x="-4" y="-4" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderBotRight" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="16" y="16"/>
|
||||
<TexCoords left="0.06054688" right="0.09179688" top="0.01562500" bottom="0.26562500"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMRIGHT" x="4" y="-4"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderLeft" file="Interface\QuestFrame\AutoQuestToastBorder-LeftRight" vertTile="true">
|
||||
<Size x="8" y="16"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="BOTTOMLEFT"/>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBotLeft" relativePoint="TOPLEFT"/>
|
||||
</Anchors>
|
||||
<TexCoords left="0" right="0.5" top="0" bottom="1"/>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderRight" file="Interface\QuestFrame\AutoQuestToastBorder-LeftRight" vertTile="true">
|
||||
<Size x="8" y="16"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="BOTTOMRIGHT"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBotRight" relativePoint="TOPRIGHT"/>
|
||||
</Anchors>
|
||||
<TexCoords left="0.5" right="1" top="0" bottom="1"/>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderTop" file="Interface\QuestFrame\AutoQuestToastBorder-TopBot" horizTile="true">
|
||||
<Size x="16" y="8"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="TOPRIGHT"/>
|
||||
<Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="TOPLEFT"/>
|
||||
</Anchors>
|
||||
<TexCoords left="0" right="1" top="0" bottom="0.5"/>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentBorderBottom" file="Interface\QuestFrame\AutoQuestToastBorder-TopBot" horizTile="true">
|
||||
<Size x="16" y="8"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBotLeft" relativePoint="BOTTOMRIGHT"/>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBotRight" relativePoint="BOTTOMLEFT"/>
|
||||
</Anchors>
|
||||
<TexCoords left="0" right="1" top="0.5" bottom="1"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
<Layer level="ARTWORK">
|
||||
<Texture name="$parentQuestIconBg" inherits="QuestIcon-Large">
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativePoint="LEFT"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
<Layer level="ARTWORK" textureSubLevel="1">
|
||||
<Texture name="$parentExclamation" parentKey="Exclamation" hidden="true" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="19" y="33"/>
|
||||
<TexCoords left="0.13476563" right="0.17187500" top="0.01562500" bottom="0.53125000"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parentQuestIconBg" x="0.5" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
|
||||
<Texture name="$parentQuestionMark" parentKey="QuestionMark" hidden="true" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="19" y="33"/>
|
||||
<TexCoords left="0.17578125" right="0.21289063" top="0.01562500" bottom="0.53125000"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parentQuestIconBg" x="0.5" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
<Layer level="BORDER">
|
||||
<FontString name="$parentQuestName" inherits="QuestFont_Large" parentKey="QuestName">
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parentQuestIconBg" relativePoint="RIGHT" x="-6"/>
|
||||
<Anchor point="RIGHT" x="-8"/>
|
||||
<Anchor point="TOP" x="0" y="-24"/>
|
||||
</Anchors>
|
||||
<Color r="1" g="1" b="1"/>
|
||||
</FontString>
|
||||
<FontString name="$parentTopText" inherits="GameFontNormalSmall" parentKey="TopText">
|
||||
<Anchors>
|
||||
<Anchor point="TOP" x="0" y="-4"/>
|
||||
<Anchor point="LEFT" relativeTo="$parentQuestIconBg" relativePoint="RIGHT" x="-6"/>
|
||||
<Anchor point="RIGHT" x="-8"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<FontString name="$parentBottomText" inherits="GameFontDisableSmall" parentKey="BottomText">
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOM" x="0" y="4"/>
|
||||
<Anchor point="LEFT" relativeTo="$parentQuestIconBg" relativePoint="RIGHT" x="-6"/>
|
||||
<Anchor point="RIGHT" x="-8"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
<Layer level="BORDER" textureSubLevel="1">
|
||||
<Texture name="$parentShine" alphaMode="ADD" alpha="0" hidden="true" parentKey="Shine">
|
||||
<Animations>
|
||||
<AnimationGroup name="$parentFlash" parentKey="Flash">
|
||||
<Alpha startDelay="0" change="0.4" duration="0.25" order="1"/>
|
||||
<Alpha startDelay="0.05" change="-0.4" duration="0.25" order="2"/>
|
||||
<Scripts>
|
||||
<OnStop>
|
||||
self:GetParent():Hide();
|
||||
</OnStop>
|
||||
<OnFinished>
|
||||
self:GetParent():Hide();
|
||||
</OnFinished>
|
||||
</Scripts>
|
||||
</AnimationGroup>
|
||||
</Animations>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="-1" y="1"/>
|
||||
<Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
|
||||
</Anchors>
|
||||
<Color r="1" g="1" b="1"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
<Layer level="OVERLAY">
|
||||
<Texture name="$parentIconShine" alphaMode="ADD" alpha="0" hidden="true" parentKey="IconShine" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="42" y="42"/>
|
||||
<TexCoords left="0.21679688" right="0.29882813" top="0.01562500" bottom="0.67187500"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parentQuestIconBg"/>
|
||||
</Anchors>
|
||||
<Animations>
|
||||
<AnimationGroup name="$parentFlash" parentKey="Flash">
|
||||
<Alpha change="0.9" duration="0.25" order="1"/>
|
||||
<Alpha startDelay="0.05" change="-0.9" duration="0.25" order="2"/>
|
||||
<Scripts>
|
||||
<OnStop>
|
||||
self:GetParent():Hide();
|
||||
</OnStop>
|
||||
<OnFinished>
|
||||
self:GetParent():Hide();
|
||||
--if (self:GetParent():GetParent():GetParent().type=="COMPLETED") then
|
||||
--self:GetParent():GetParent().Flash:Show();
|
||||
--end
|
||||
</OnFinished>
|
||||
</Scripts>
|
||||
</AnimationGroup>
|
||||
</Animations>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Frames>
|
||||
<Frame name="$parentFlash" useParentLevel="true" setAllPoints="true" hidden="true" parentKey="Flash">
|
||||
<Layers>
|
||||
<Layer level="BORDER">
|
||||
<Texture name="QuestLogFrameCompleteButtonFlash" inherits="UIPanelButtonHighlightTexture" parentKey="Flash">
|
||||
<Size x="180" y="28"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="14" y="-2"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
<Layer level="OVERLAY">
|
||||
<Texture name="$parentIconFlash" alphaMode="ADD" alpha="0.5" parentKey="IconFlash" file="Interface\QuestFrame\AutoQuest-Parts">
|
||||
<Size x="42" y="42"/>
|
||||
<TexCoords left="0.21679688" right="0.29882813" top="0.01562500" bottom="0.67187500"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativePoint="LEFT"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self.IconFlash:SetVertexColor(1, 0, 0);
|
||||
</OnLoad>
|
||||
<OnShow>
|
||||
UIFrameFlash(self, 0.75, 0.75, -1, nil);
|
||||
</OnShow>
|
||||
<OnHide>
|
||||
UIFrameFlashStop(self);
|
||||
</OnHide>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
</Frames>
|
||||
</Frame>
|
||||
</ScrollChild>
|
||||
</ScrollFrame>
|
||||
|
||||
<Frame name="DetailsFrameworkBoxAlertTemplateUp" inherits="GlowBoxTemplate" hidden="false" frameStrata="FULLSCREEN" virtual="true">
|
||||
<Layers>
|
||||
<Layer level="OVERLAY">
|
||||
<FontString name="$parentText" parentKey="text" inherits="GameFontHighlightLeft" justifyV="TOP" text="">
|
||||
<Size x="280" y="0"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="16" y="-15"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Size x="300" y="150"/>
|
||||
<Frames>
|
||||
<Frame name="$parentArrow" parentKey="arrow" inherits="GlowBoxArrowTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativePoint="BOTTOM" x="40" y="1"/>
|
||||
</Anchors>
|
||||
</Frame>
|
||||
</Frames>
|
||||
</Frame>
|
||||
<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">
|
||||
</Ui>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||
_detalhes.build_counter = 5986
|
||||
_detalhes.build_counter = 6003
|
||||
_detalhes.userversion = "v8.0.1." .. _detalhes.build_counter
|
||||
_detalhes.realversion = 131 --core version
|
||||
_detalhes.realversion = 132 --core version
|
||||
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
|
||||
_detalhes.BFACORE = 131
|
||||
Details = _detalhes
|
||||
|
||||
@@ -152,6 +152,10 @@ end
|
||||
function _detalhes:GetInstance (id)
|
||||
return _detalhes.tabela_instancias [id]
|
||||
end
|
||||
--> user friendly alias
|
||||
function _detalhes:GetWindow (id)
|
||||
return _detalhes.tabela_instancias [id]
|
||||
end
|
||||
|
||||
function _detalhes:GetId()
|
||||
return self.meu_id
|
||||
@@ -281,7 +285,11 @@ end
|
||||
function _detalhes:IsAtiva()
|
||||
return self.ativa
|
||||
end
|
||||
|
||||
--> english alias
|
||||
function _detalhes:IsShown()
|
||||
return self.ativa
|
||||
end
|
||||
function _detalhes:IsEnabled()
|
||||
return self.ativa
|
||||
end
|
||||
@@ -333,6 +341,10 @@ end
|
||||
end
|
||||
end
|
||||
|
||||
--> alias
|
||||
function _detalhes:HideWindow()
|
||||
return self:DesativarInstancia()
|
||||
end
|
||||
function _detalhes:ShutDown()
|
||||
return self:DesativarInstancia()
|
||||
end
|
||||
@@ -538,6 +550,9 @@ end
|
||||
end
|
||||
|
||||
--> alias
|
||||
function _detalhes:ShowWindow (temp)
|
||||
return self:AtivarInstancia (temp)
|
||||
end
|
||||
function _detalhes:EnableInstance (temp)
|
||||
return self:AtivarInstancia (temp)
|
||||
end
|
||||
|
||||
+1
-44
@@ -1118,52 +1118,9 @@
|
||||
end
|
||||
end
|
||||
|
||||
--> tutorial bookmark
|
||||
--> tutorial bookmark (removed)
|
||||
function _detalhes:TutorialBookmark (instance)
|
||||
|
||||
_detalhes:SetTutorialCVar ("ATTRIBUTE_SELECT_TUTORIAL1", true)
|
||||
|
||||
local func = function()
|
||||
local f = CreateFrame ("frame", nil, instance.baseframe)
|
||||
f:SetAllPoints();
|
||||
f:SetFrameStrata ("FULLSCREEN")
|
||||
f:SetBackdrop ({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 16})
|
||||
f:SetBackdropColor (0, 0, 0, 0.8)
|
||||
|
||||
f.alert = CreateFrame ("frame", "DetailsTutorialBookmarkAlert", UIParent, "ActionBarButtonSpellActivationAlert")
|
||||
f.alert:SetPoint ("topleft", f, "topleft")
|
||||
f.alert:SetPoint ("bottomright", f, "bottomright")
|
||||
f.alert.animOut:Stop()
|
||||
f.alert.animIn:Play()
|
||||
|
||||
f.text = f:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
f.text:SetText (Loc ["STRING_MINITUTORIAL_BOOKMARK1"])
|
||||
f.text:SetWidth (f:GetWidth()-15)
|
||||
f.text:SetPoint ("center", f)
|
||||
f.text:SetJustifyH ("center")
|
||||
|
||||
f.bg = f:CreateTexture (nil, "border")
|
||||
f.bg:SetTexture ([[Interface\ACHIEVEMENTFRAME\UI-Achievement-Parchment-Horizontal-Desaturated]])
|
||||
f.bg:SetAllPoints()
|
||||
f.bg:SetAlpha (0.8)
|
||||
|
||||
f.textbg = f:CreateTexture (nil, "artwork")
|
||||
f.textbg:SetTexture ([[Interface\ACHIEVEMENTFRAME\UI-Achievement-RecentHeader]])
|
||||
f.textbg:SetPoint ("center", f)
|
||||
f.textbg:SetAlpha (0.4)
|
||||
f.textbg:SetTexCoord (0, 1, 0, 24/32)
|
||||
|
||||
f:SetScript ("OnMouseDown", function (self, button)
|
||||
if (button == "RightButton") then
|
||||
f.alert.animIn:Stop()
|
||||
f.alert.animOut:Play()
|
||||
_detalhes.switch:ShowMe (instance)
|
||||
f:Hide()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
_detalhes:GetFramework():ShowTutorialAlertFrame ("How to Use Bookmarks", "switch fast between displays", func)
|
||||
end
|
||||
|
||||
--> translate window
|
||||
|
||||
@@ -4704,6 +4704,7 @@ function _detalhes:InstanceRefreshRows (instancia)
|
||||
if (textL_outline_small) then
|
||||
local c = textL_outline_small_color
|
||||
row.texto_esquerdo:SetShadowColor (c[1], c[2], c[3], c[4])
|
||||
--row.texto_esquerdo:SetShadowOffset (3, -2)
|
||||
else
|
||||
row.texto_esquerdo:SetShadowColor (0, 0, 0, 0)
|
||||
end
|
||||
|
||||
@@ -1826,6 +1826,7 @@ function _G._detalhes:Start()
|
||||
_detalhes:RefreshPlaterIntegration()
|
||||
end)
|
||||
|
||||
--[=[
|
||||
--> suppress warnings for the first few seconds
|
||||
CLOSE_SCRIPTERRORWINDOW = function()
|
||||
if (ScriptErrorsFrame) then
|
||||
@@ -1837,6 +1838,7 @@ function _G._detalhes:Start()
|
||||
ScriptErrorsFrame:Hide()
|
||||
end
|
||||
C_Timer.After (5, function() _G ["CLOSE_SCRIPTERRORWINDOW"] = nil end)
|
||||
--]=]
|
||||
end
|
||||
|
||||
_detalhes.AddOnLoadFilesTime = GetTime()
|
||||
|
||||
Reference in New Issue
Block a user