<Ui>

	<Button name="TellMeWhen_TypeCheckRuneTemplate" virtual="true">
		<Size x="27.5" y="27.5"/>

		<Attributes>
			<Attribute name="tmw-class" type="string" value="Config_Button_Rune"/>
		</Attributes>

		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentCheck" parentKey="Check" file="">
					<Size x="24" y="24"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="texture" file="Interface\PlayerFrame\UI-PlayerFrame-Deathknight-Blood">
					<Size x="28" y="28"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				self:SetChecked(not self:GetChecked())
			</OnClick>
			<OnLoad>
				TMW:CInit(self, {
					setting = "RuneSlots"
				})
			</OnLoad>
		</Scripts>
	</Button>
	<Frame name="TellMeWhen_Runes" inherits="TellMeWhen_OptionsModuleContainer" virtual="true">
		<Size y="70"/>
		<Frames>
			<Button name="$parentBlood1" parentKey="1" inherits="TellMeWhen_TypeCheckRuneTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" x="7" y="-6"/>
				</Anchors>
			</Button>
			<Button name="$parentBlood2" parentKey="2" inherits="TellMeWhen_TypeCheckRuneTemplate" id="2">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentBlood1" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentUnholy1" parentKey="3" inherits="TellMeWhen_TypeCheckRuneTemplate" id="3">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentBlood2" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentUnholy2" parentKey="4" inherits="TellMeWhen_TypeCheckRuneTemplate" id="4">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentUnholy1" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentFrost1" parentKey="5" inherits="TellMeWhen_TypeCheckRuneTemplate" id="5">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentUnholy2" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentFrost2" parentKey="6" inherits="TellMeWhen_TypeCheckRuneTemplate" id="6">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentFrost1" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			
			<Button name="$parentBlood1Death" parentKey="7" inherits="TellMeWhen_TypeCheckRuneTemplate" id="7">
				<Anchors>
					<Anchor point="LEFT" x="7"/>
					<Anchor point="TOP" relativeTo="$parentBlood1" relativePoint="BOTTOM" y="-4"/>
				</Anchors>
			</Button>
			<Button name="$parentBlood2Death" parentKey="8" inherits="TellMeWhen_TypeCheckRuneTemplate" id="8">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentBlood1Death" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentUnholy1Death" parentKey="9" inherits="TellMeWhen_TypeCheckRuneTemplate" id="9">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentBlood2Death" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentUnholy2Death" parentKey="10" inherits="TellMeWhen_TypeCheckRuneTemplate" id="10">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentUnholy1Death" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentFrost1Death" parentKey="11" inherits="TellMeWhen_TypeCheckRuneTemplate" id="11">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentUnholy2Death" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
			<Button name="$parentFrost2Death" parentKey="12" inherits="TellMeWhen_TypeCheckRuneTemplate" id="12">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentFrost1Death" relativePoint="RIGHT"/>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self.Header:SetText(TMW.L["RUNES"])
				TMW.IE:DistributeFrameAnchorsLaterally(self, 6,
					self["1"],
					self["2"],
					self["3"],
					self["4"],
					self["5"],
					self["6"]
				)
				
				TMW.IE:DistributeFrameAnchorsLaterally(self, 6,
					self["7"],
					self["8"],
					self["9"],
					self["10"],
					self["11"],
					self["12"]
				)
				
			</OnLoad>
		</Scripts>
	</Frame>
 
</Ui>