@@ -509,7 +509,87 @ </HighlightTexture> </Button> - <!-- Looking for AchievementProgressBarTemplate? It's in WatchFrame.xml, since tracking needs it!, --> + <StatusBar name="AchievementProgressBarTemplate" virtual="true"> + <Size> + <AbsDimension x="212" y="14"/> + </Size> + <Anchors> + <Anchor point="CENTER"/> + </Anchors> + <Layers> + <Layer level="BACKGROUND"> + <Texture name="$parentBG"> + <Anchors> + <Anchor point="TOPLEFT"/> + <Anchor point="BOTTOMRIGHT"/> + </Anchors> + <Color r="0" g="0" b="0" a=".4"/> + </Texture> + </Layer> + <Layer level="OVERLAY"> + <FontString name="$parentText" inherits="GameFontHighlightSmall" text="700/700" justifyV="TOP"> + <Size x="0" y="0"/> + <Anchors> + <Anchor point="CENTER"> + <Offset x="0" y="0"/> + </Anchor> + </Anchors> + </FontString> + </Layer> + <Layer level="ARTWORK"> + <Texture name="$parentBorderLeft" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border"> + <Size x="16" y="0"/> + <Anchors> + <Anchor point="TOPLEFT"> + <Offset> + <AbsDimension x="-6" y="5"/> + </Offset> + </Anchor> + <Anchor point="BOTTOMLEFT"> + <Offset> + <AbsDimension x="-6" y="-5"/> + </Offset> + </Anchor> + </Anchors> + <TexCoords left="0" right="0.0625" top="0" bottom="0.75"/> + </Texture> + <Texture name="$parentBorderRight" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border"> + <Size x="16" y="0"/> + <Anchors> + <Anchor point="TOPRIGHT"> + <Offset> + <AbsDimension x="6" y="5"/> + </Offset> + </Anchor> + <Anchor point="BOTTOMRIGHT"> + <Offset> + <AbsDimension x="6" y="-5"/> + </Offset> + </Anchor> + </Anchors> + <TexCoords left="0.812" right="0.8745" top="0" bottom="0.75"/> + </Texture> + <Texture name="$parentBorderCenter" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border"> + <Size x="16"/> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parentBorderLeft" relativePoint="TOPRIGHT"/> + <Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderRight" relativePoint="BOTTOMLEFT"/> + </Anchors> + <TexCoords left="0.0625" right="0.812" top="0" bottom="0.75"/> + </Texture> + </Layer> + </Layers> + <Scripts> + <OnLoad> + self:SetStatusBarColor(0, .6, 0, 1); + self:SetMinMaxValues(0, 100); + self:SetValue(0); + self.text = _G[self:GetName() .. "Text"]; + self:GetStatusBarTexture():SetDrawLayer("BORDER"); + </OnLoad> + </Scripts> + <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/> + </StatusBar> <StatusBar name="AchievementHeaderStatusBarTemplate" virtual="true"> <Anchors> @@ -974,11 +1054,10 @ <AbsDimension x="0" y="0"/> </Size> <Anchors> - <Anchor point="TOPLEFT"> - <Offset x="-75" y="-30"/> - </Anchor> - <Anchor point="TOPRIGHT"> - <Offset x="75" y="-30"/> + <Anchor point="TOP"> + <Offset> + <AbsDimension x="0" y="-30"/> + </Offset> </Anchor> </Anchors> </FontString>