<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="GlueTemplates.lua"/>
<Button name="GlueCloseButton" virtual="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Scripts>
<OnClick>
self:GetParent():Hide();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
</Button>
<Texture name="GlueScrollBarButton" virtual="true">
<TexCoords left="0.23" right="0.77" top="0.23" bottom="0.77"/>
</Texture>
<Button name="GlueScrollUpButtonTemplate" virtual="true">
<Size>
<AbsDimension x="18" y="18"/>
</Size>
<NormalTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/>
<PushedTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/>
<DisabledTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
<HighlightTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight" alphaMode="ADD"/>
</Button>
<Button name="GlueScrollDownButtonTemplate" virtual="true">
<Size>
<AbsDimension x="18" y="18"/>
</Size>
<NormalTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/>
<PushedTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/>
<DisabledTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
<HighlightTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" alphaMode="ADD"/>
</Button>
<Texture name="GluePanelButtonDisabledDownTexture" file="Interface\Buttons\UI-Panel-Button-Disabled-Down" virtual="true">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
</Texture>
<Button name="GluePanelButtonTemplate" virtual="true">
<ButtonText name="$parentText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="1"/>
</Offset>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont style="GlueFontNormal"/>
<HighlightFont style="GlueFontHighlight"/>
<DisabledFont style="GlueFontDisable"/>
<NormalTexture inherits="GluePanelButtonUpTexture"/>
<PushedTexture inherits="GluePanelButtonDownTexture"/>
<DisabledTexture inherits="GluePanelButtonDisabledTexture"/>
<HighlightTexture inherits="GluePanelButtonHighlightTexture"/>
</Button>
<Button name="GluePanelButtonGrayTemplate" virtual="true">
<NormalFont style="GlueFontHighlight"/>
<HighlightFont style="GlueFontHighlight"/>
<DisabledFont style="GlueFontDisable"/>
<NormalTexture inherits="GluePanelButtonDisabledTexture"/>
<PushedTexture inherits="GluePanelButtonDisabledDownTexture"/>
<DisabledTexture inherits="GluePanelButtonDisabledTexture"/>
<HighlightTexture inherits="GluePanelButtonHighlightTexture"/>
</Button>
<CheckButton name="GlueCheckButtonTemplate" virtual="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="GlueFontNormalSmall">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
</CheckButton>
<Slider name="GlueScrollBarTemplate" virtual="true">
<Size>
<AbsDimension x="16" y="0"/>
</Size>
<Frames>
<Button name="$parentScrollUpButton" inherits="GlueScrollUpButtonTemplate">
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP"/>
</Anchors>
<Scripts>
<OnClick>
local parent = self:GetParent();
parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
PlaySound("UChatScrollButton");
</OnClick>
</Scripts>
</Button>
<Button name="$parentScrollDownButton" inherits="GlueScrollDownButtonTemplate">
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM"/>
</Anchors>
<Scripts>
<OnClick>
local parent = self:GetParent();
parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
PlaySound("UChatScrollButton");
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad>
self.changingValue = nil;
</OnLoad>
<OnValueChanged>
-- avoid recursion here - see bug 193707 and task 36371
if(self.changingValue == nil) then
self.changingValue = true;
self:GetParent():SetVerticalScroll(value);
self.changingValue = nil;
end
</OnValueChanged>
</Scripts>
<ThumbTexture inherits="GlueScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
<Size>
<AbsDimension x="18" y="24"/>
</Size>
<TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
</ThumbTexture>
</Slider>
<ScrollFrame name="GlueScrollFrameTemplate" virtual="true">
<Frames>
<Slider name="$parentScrollBar" inherits="GlueScrollBarTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="6" y="-16"/>
</Offset>
</Anchor>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="6" y="16"/>
</Offset>
</Anchor>
</Anchors>
</Slider>
</Frames>
<Scripts>
<OnLoad>
_G[self:GetName().."ScrollBarScrollDownButton"]:Disable();
_G[self:GetName().."ScrollBarScrollUpButton"]:Disable();
GlueScrollFrame_OnScrollRangeChanged(self);
</OnLoad>
<OnScrollRangeChanged>
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
</OnScrollRangeChanged>
<OnVerticalScroll>
GlueScrollFrame_OnVerticalScroll(self, offset);
</OnVerticalScroll>
<OnMouseWheel>
GlueScrollFrameTemplate_OnMouseWheel(self, delta);
</OnMouseWheel>
</Scripts>
</ScrollFrame>
</Ui>