<!-- MoonWell -->
<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"/>
	
	<!-- ============================================================================ -->
	<!-- TEXTURAS DE EDITBOX GLUEDARK -->
	<!-- ============================================================================ -->
	<Texture name="GlueDark_editboxLeft" file="Interface/Glues/Common/generic" virtual="true">
		<Size x="13" y="36"/>
		<TexCoords left="0.771484375" right="0.806640625" top="0.45703125" bottom="0.556640625"/>
	</Texture>
	<Texture name="GlueDark_editboxLeftHover" file="Interface/Glues/Common/generic" virtual="true">
		<Size x="13" y="36"/>
		<TexCoords left="0.236328125" right="0.271484375" top="0.865234375" bottom="0.96484375"/>
	</Texture>
	<Texture name="GlueDark_editboxMiddle" file="Interface/Glues/Common/generic" virtual="true">
		<Size x="13" y="36"/>
		<TexCoords left="0.58984375" right="0.625" top="0.677734375" bottom="0.77734375"/>
	</Texture>
	<Texture name="GlueDark_editboxMiddleHover" file="Interface/Glues/Common/generic" virtual="true">
		<Size x="13" y="36"/>
		<TexCoords left="0.197265625" right="0.232421875" top="0.865234375" bottom="0.96484375"/>
	</Texture>
	<Texture name="GlueDark_editboxRight" file="Interface/Glues/Common/generic" virtual="true">
		<Size x="13" y="36"/>
		<TexCoords left="0.859375" right="0.89453125" top="0.234375" bottom="0.333984375"/>
	</Texture>
	<Texture name="GlueDark_editboxRightHover" file="Interface/Glues/Common/generic" virtual="true">
		<Size x="13" y="36"/>
		<TexCoords left="0.30859375" right="0.34375" top="0.83984375" bottom="0.939453125"/>
	</Texture>
	<!-- ============================================================================ -->
	
	<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>
	
	<EditBox name="GlueDark_EditBoxTemplate" historyLines="1" virtual="true">
    	<Size x="54" y="37"/>
    	<HitRectInsets left="6" right="6" top="5" bottom="5"/>
    	<Layers>
        	<Layer level="BACKGROUND">
            	<Texture name="$parentLeft" parentKey="Left" inherits="GlueDark_editboxLeft">
                	<Anchors>
                    	<Anchor point="TOPLEFT"/>
                    	<Anchor point="BOTTOMLEFT"/>
                	</Anchors>
            	</Texture>
            	<Texture name="$parentRight" parentKey="Right" inherits="GlueDark_editboxRight">
                	<Anchors>
                    	<Anchor point="TOPRIGHT"/>
                    	<Anchor point="BOTTOMRIGHT"/>
                	</Anchors>
            	</Texture>
            	<Texture name="$parentMiddle" parentKey="Middle" inherits="GlueDark_editboxMiddle">
                	<Anchors>
                    	<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT" x="0"/>
                    	<Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT" x="0.3"/>
                	</Anchors>
            	</Texture>
        	</Layer>

        	<Layer level="ARTWORK">
            	<FontString name="$parentTitleText" parentKey="TitleText" inherits="GlueDark_Font_15" justifyH="CENTER">
                	<Anchors>
                    	<Anchor point="BOTTOM" relativePoint="TOP" y="0" x="0"/>
                	</Anchors>
            	</FontString>
        	</Layer>
    	</Layers>
    	<Scripts>
        	<OnEnter>
            	if not self.isFocused then
                	self.Left:SetTexCoord(0.236328125, 0.271484375, 0.865234375, 0.96484375);
                	self.Middle:SetTexCoord(0.197265625, 0.232421875, 0.865234375, 0.96484375);
                	self.Right:SetTexCoord(0.30859375, 0.34375, 0.83984375, 0.939453125);
            	end
        	</OnEnter>
        	<OnLeave>
            	if not self.isFocused then
                	self.Left:SetTexCoord(0.771484375, 0.806640625, 0.45703125, 0.556640625);
                	self.Middle:SetTexCoord(0.58984375, 0.625, 0.677734375, 0.77734375);
                	self.Right:SetTexCoord(0.859375, 0.89453125, 0.234375, 0.333984375);
            	end
        	</OnLeave>
        	<OnEditFocusGained>
            	self.isFocused = true;
            	self.Left:SetTexCoord(0.236328125, 0.271484375, 0.865234375, 0.96484375);
            	self.Middle:SetTexCoord(0.197265625, 0.232421875, 0.865234375, 0.96484375);
            	self.Right:SetTexCoord(0.30859375, 0.34375, 0.83984375, 0.939453125);
            	self:HighlightText();
        	</OnEditFocusGained>
        	<OnEditFocusLost>
            	self.isFocused = nil;
            	self:HighlightText(0, 0);
            	self.Left:SetTexCoord(0.771484375, 0.806640625, 0.45703125, 0.556640625);
            	self.Middle:SetTexCoord(0.58984375, 0.625, 0.677734375, 0.77734375);
            	self.Right:SetTexCoord(0.859375, 0.89453125, 0.234375, 0.333984375);
        	</OnEditFocusLost>
    	</Scripts>
    	<FontString inherits="GlueEditBoxFont"/>
    	<TextInsets>
        	<AbsInset left="12" right="12" top="8" bottom="8"/>
    	</TextInsets>
	</EditBox>
	
	<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>
			<OnValueChanged>
				self:GetParent():SetVerticalScroll(value);
			</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>
