Quantcast
<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">
      <CheckButton name="CliqueIconTemplate" virtual="true">
                <Size>
                        <AbsDimension x="36" y="36"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture file="Interface\Buttons\UI-EmptySlot-Disabled">
                                        <Size>
                                                <AbsDimension x="64" y="64"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="CENTER">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-1"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                        </Layer>
                </Layers>
                <NormalTexture name="$parentIcon">
                        <Size>
                                <AbsDimension x="36" y="36"/>
                        </Size>
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="-1"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </NormalTexture>
                <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
                <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
        <Scripts>
            <OnClick>
                Clique:SetSpellIcon(self)
            </OnClick>
        </Scripts>
        </CheckButton>

	<Frame name="CliqueEditTemplate" virtual="true" hidden="true">
		  <Size>
			<AbsDimension x="286" y="106"/>
		  </Size>
			<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			  <BackgroundInsets>
				<AbsInset left="4" right="4" top="4" bottom="4" />
			  </BackgroundInsets>
			  <TileSize>
				<AbsValue val="16" />
			  </TileSize>
			  <EdgeSize>
				<AbsValue val="16" />
			  </EdgeSize>
			</Backdrop>
		<Frames>
		  <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="8" y="-8"/></Offset>
				</Anchor>
				<Anchor point="BOTTOMRIGHT">
					<Offset><AbsDimension x="-8" y="8"/></Offset>
				</Anchor>
			</Anchors>
			<ScrollChild>
			  <EditBox name="$parentEditBox" multiLine="true" letters="255" autoFocus="false">
				<Size>
				  <AbsDimension x="270" y="90"/>
				</Size>
				<Scripts>
				  <OnTextChanged>
					local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
					this:GetParent():UpdateScrollChildRect();
					local min;
					local max;
					min, max = scrollBar:GetMinMaxValues();
					if ( max > 0 and (this.max ~= max) ) then
					this.max = max;
					scrollBar:SetValue(max);
					end
				  </OnTextChanged>
				  <OnEscapePressed>
					this:ClearFocus();
				  </OnEscapePressed>
				</Scripts>
				<FontString inherits="GameFontHighlightSmall"/>
			  </EditBox>
			</ScrollChild>
		  </ScrollFrame>
		</Frames>
	</Frame>
</Ui>