<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">

	<!-- Macaroon, a World of WarcraftÂ® user interface addon. -->
	<!-- CopyrightÂ© 2006-2012 Connor H. Chenoweth, aka Maul - All rights reserved. -->

	<Frame name="MacaroonObjectEditor" frameStrata="DIALOG" enableMouse="true" movable="true" parent="UIParent" clampedToScreen="true" hidden="true">
		<Size x="474" y="415"/>
		<Anchors>
			<Anchor point="TOP" relativeTo="UIParent" relativePoint="TOP">
				<Offset x="0" y="0"/>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="22"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Frames>
			<Frame name="$parentButtonOptions" parentKey="btnEditor">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Frames>
					<Frame name="$parentClose" parentKey="closed">
						<Size x="450" y="31"/>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="10" y="-39"/>
							</Anchor>
							<Anchor point="TOPRIGHT">
								<Offset x="-10" y="-39"/>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="$parentText" parentKey="text" inherits="GameFontNormal" justifyH="CENTER">
									<Anchors>
										<Anchor point="RIGHT">
											<Offset x="-10" y="-2"/>
										</Anchor>
									</Anchors>
								</FontString>
								<Texture name="$parentArrowLine1" parentKey="arrowline1">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="$parentText" relativePoint="LEFT">
											<Offset x="-180" y="-2"/>
										</Anchor>
										<Anchor point="BOTTOMRIGHT" relativeTo="$parentText" relativePoint="LEFT">
											<Offset x="-2" y="-3"/>
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1"/>
								</Texture>
								<Texture name="$parentArrowLine2" parentKey="arrowline2">
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativeTo="$parentArrowLine1" relativePoint="TOPLEFT">
											<Offset x="0" y="0"/>
										</Anchor>
										<Anchor point="TOPRIGHT" relativeTo="$parentArrowLine1" relativePoint="TOPLEFT">
											<Offset x="1" y="3"/>
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1"/>
								</Texture>
								<Texture name="$parentArrowHead" parentKey="arrowhead" file="Interface\MINIMAP\SuperTrackerArrow">
									<Size x="24" y="24"/>
									<Anchors>
										<Anchor point="BOTTOM" relativeTo="$parentArrowLine2" relativePoint="TOP">
											<Offset x="0" y="-9"/>
										</Anchor>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(0.5, 0.5, 0.5)
								self:SetBackdropColor(0,0,0,1)
								self.text:SetText(Macaroon.Strings.BTN_EDIT_OPEN_OPTIONS)
								self.elapsed = 0
								self.sign = -1
							</OnLoad>
							<OnShow>
								self.text:SetTextColor(1,0.82,0)
								self.text:SetAlpha(1)

								self.arrowline1:SetVertexColor(1,0.82,0)
								self.arrowline1:SetAlpha(1)

								self.arrowline2:SetVertexColor(1,0.82,0)
								self.arrowline2:SetAlpha(1)

								self.arrowhead:SetVertexColor(1,0.82,0)
								self.arrowhead:SetAlpha(1)
							</OnShow>
							<OnUpdate>
								Macaroon.ButtonOptionsClose_OnUpdate(self, elapsed)
							</OnUpdate>
						</Scripts>
					</Frame>
					<Frame name="$parentOptions" parentKey="options">
						<Size x="450" y="50"/>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="10" y="-20"/>
							</Anchor>
							<Anchor point="TOPRIGHT">
								<Offset x="-10" y="-20"/>
							</Anchor>
						</Anchors>
						<!--
						<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						-->
						<Frames>
							<Frame name="$parentGeneral" parentKey="general" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset x="0" y="-19"/>
									</Anchor>
									<Anchor point="BOTTOMRIGHT"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="$parentModify" parentKey="modify" inherits="GameFontNormalSmall" justifyH="LEFT">
											<Anchors>
												<Anchor point="BOTTOMLEFT">
													<Offset x="6" y="6"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<Frame name="$parentBG1" parentKey="bg1">
										<Anchors>
											<Anchor point="TOPLEFT">
												<Offset x="0" y="0"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
												<Offset x="-20" y="25"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
											<EdgeSize>
												<AbsValue val="16"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="16"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="5" right="5" top="5" bottom="5"/>
											</BackgroundInsets>
										</Backdrop>
										<Scripts>
											<OnLoad>
												self:SetBackdropBorderColor(0.5, 0.5, 0.5)
												self:SetBackdropColor(0,0,0,1)
											</OnLoad>
										</Scripts>
									</Frame>
									<Frame name="$parentBG2" parentKey="bg2">
										<Anchors>
											<Anchor point="TOPLEFT" relativeTo="$parentBG1" relativePoint="TOPRIGHT">
												<Offset x="5" y="0"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT">
												<Offset x="0" y="25"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
											<EdgeSize>
												<AbsValue val="16"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="16"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="5" right="5" top="5" bottom="5"/>
											</BackgroundInsets>
										</Backdrop>
										<Scripts>
											<OnLoad>
												self:SetBackdropBorderColor(0.5, 0.5, 0.5)
												self:SetBackdropColor(0,0,0,1)
											</OnLoad>
										</Scripts>
									</Frame>
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.5, 0.5, 0.5)
										self:SetBackdropColor(0,0,0,1)
										self.modify:SetText(Macaroon.Strings.BTN_EDIT_GENERAL_MODIFY, 1, 1, 1)
									</OnLoad>
									<OnShow>
										Macaroon.OptionsGeneral_ModifyReset()
									</OnShow>
								</Scripts>
							</Frame>
							<Button name="$parentGeneralTab" inherits="MacaroonOptionTabTemplate" parentKey="gTab" id="1">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset x="5" y="10"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										Macaroon.OptionsTab_OnLoad(self, self:GetParent(), self:GetParent().general, "GTAB")
										self.selected = true
									</OnLoad>
									<OnClick>
										Macaroon.OptionsTab_OnClick(self, self:GetParent(), button)
									</OnClick>
								</Scripts>
							</Button>
							<Frame name="$parentAdvanced" parentKey="advanced" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset x="0" y="-19"/>
									</Anchor>
									<Anchor point="BOTTOMRIGHT"/>
								</Anchors>
								<Frames>
									<Frame name="$parentBG1">
										<Anchors>
											<Anchor point="TOPLEFT">
												<Offset x="0" y="0"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
												<Offset x="-50" y="0"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
											<EdgeSize>
												<AbsValue val="16"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="16"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="5" right="5" top="5" bottom="5"/>
											</BackgroundInsets>
										</Backdrop>
										<Scripts>
											<OnLoad>
												self:SetBackdropBorderColor(0.5, 0.5, 0.5)
												self:SetBackdropColor(0,0,0,1)
											</OnLoad>
										</Scripts>
									</Frame>
									<Frame name="$parentBG2">
										<Anchors>
											<Anchor point="TOPLEFT" relativeTo="$parentBG1" relativePoint="TOPRIGHT">
												<Offset x="5" y="0"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT">
												<Offset x="0" y="0"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
											<EdgeSize>
												<AbsValue val="16"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="16"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="5" right="5" top="5" bottom="5"/>
											</BackgroundInsets>
										</Backdrop>
										<Scripts>
											<OnLoad>
												self:SetBackdropBorderColor(0.5, 0.5, 0.5)
												self:SetBackdropColor(0,0,0,1)
											</OnLoad>
										</Scripts>
									</Frame>
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.5, 0.5, 0.5)
										self:SetBackdropColor(0,0,0,1)
									</OnLoad>
								</Scripts>
							</Frame>
							<Button name="$parentAdvancedTab" inherits="MacaroonOptionTabTemplate" parentKey="aTab" id="2">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parentGeneralTab" relativePoint="TOPRIGHT">
										<Offset x="5" y="0"/>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										Macaroon.OptionsTab_OnLoad(self, self:GetParent(), self:GetParent().advanced, "ATAB")
										self:Disable()
									</OnLoad>
									<OnClick>
										Macaroon.OptionsTab_OnClick(self, self:GetParent(), button)
									</OnClick>
								</Scripts>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(0.5, 0.5, 0.5)
								self:SetBackdropColor(0,0,0,1)
							</OnLoad>
						</Scripts>
					</Frame>

					<Frame name="$parentMacroEdit" parentKey="macroedit">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentOptions" relativePoint="BOTTOMLEFT">
								<Offset x="0" y="-2"/>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset x="-10" y="45"/>
							</Anchor>
						</Anchors>
						<Frames>
							<ScrollFrame name="$parentMacroIconList"  frameStrata="TOOLTIP" enableMouse="true" parentKey="macroiconlist" inherits="MacaroonScrollFrameTemplate1" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset x="4" y="-5"/>
									</Anchor>
									<Anchor point="BOTTOMRIGHT">
										<Offset x="-27" y="5"/>
									</Anchor>
								</Anchors>
								<Frames>
									<Frame>
										<Anchors>
											<Anchor point="TOPLEFT" relativeTo="MacaroonObjectEditorButtonOptionsMacroEdit">
												<Offset x="0" y="0"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT" relativeTo="MacaroonObjectEditorButtonOptionsMacroEdit">
												<Offset x="0" y="0"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\ItemTextFrame\ItemText-Stone-TopLeft" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
											<EdgeSize>
												<AbsValue val="18"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="8"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="3" right="3" top="2" bottom="2"/>
											</BackgroundInsets>
										</Backdrop>
										<Scripts>
											<OnLoad>
												self:SetBackdropColor(0, 0, 0, 1)
												self:SetBackdropBorderColor(0.5, 0.5, 0.5, 1)
											</OnLoad>
										</Scripts>
									</Frame>
								</Frames>
								<ScrollChild>
									<Frame name="$parentScrollChildFrame">
										<Anchors>
											<Anchor point="TOPLEFT">
												<Offset x="5" y="-5"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT">
												<Offset x="-5" y="5"/>
											</Anchor>
										</Anchors>
									</Frame>
									<Scripts>
										<OnShow>
											--self:SetValue(0)
										</OnShow>
									</Scripts>
								</ScrollChild>
								<Scripts>
									<OnLoad>
										self.offset = 0
										self.scrollbar = _G[self:GetName().."ScrollBar"]
										self.scrollbarup = _G[self.scrollbar:GetName().."ScrollUpButton"]
										self.scrollbardown = _G[self.scrollbar:GetName().."ScrollDownButton"]
										self.parent = self:GetParent()
									</OnLoad>
									<OnShow>
										self.scrollbar.scrollStep = 1
										Macaroon.MacroIconListUpdate()
									</OnShow>
									<OnHide>
										self.parent.macroicon.click = false
									</OnHide>
									<OnVerticalScroll>
										FauxScrollFrame_OnVerticalScroll(self, offset, 1, Macaroon.MacroIconListUpdate)
									</OnVerticalScroll>
								</Scripts>
							</ScrollFrame>

							<Frame name="$parentActionEdit" parentKey="actionedit">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
										<Offset x="-65" y="0"/>
									</Anchor>
									<Anchor point="BOTTOMRIGHT">
										<Offset x="0" y="0"/>
									</Anchor>
								</Anchors>
								<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
									<EdgeSize>
										<AbsValue val="16"/>
									</EdgeSize>
									<TileSize>
										<AbsValue val="16"/>
									</TileSize>
									<BackgroundInsets>
										<AbsInset left="5" right="5" top="5" bottom="5"/>
									</BackgroundInsets>
								</Backdrop>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="$parentTitle" parentKey="title" inherits="GameFontNormalSmall" justifyH="CENTER">
											<Anchors>
												<Anchor point="TOP">
													<Offset x="0" y="-8"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<Slider name="$parentSlider" orientation="VERTICAL" parentKey="slider" minValue="0" maxValue="120" valueStep="1" defaultValue="1">
										<Size x="12" y="128"/>
										<Anchors>
											<Anchor point="TOPLEFT">
												<Offset x="10" y="-25"/>
											</Anchor>
											<Anchor point="BOTTOMLEFT">
												<Offset x="10" y="30"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
											<EdgeSize>
												<AbsValue val="8"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="8"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="3" right="3" top="6" bottom="6"/>
											</BackgroundInsets>
										</Backdrop>
										<Layers>
											<Layer level="ARTWORK">
												<FontString inherits="GameFontNormal" parentKey="low" text="1" justifyH="CENTER">
													<Anchors>
														<Anchor point="TOP">
															<Offset x="24" y="-10"/>
														</Anchor>
													</Anchors>
													<Color r="1" g="1" b="1" />
												</FontString>
												<FontString inherits="GameFontNormal" parentKey="high" text="120" justifyH="CENTER">
													<Anchors>
														<Anchor point="BOTTOM">
															<Offset x="24" y="10"/>
														</Anchor>
													</Anchors>
													<Color r="1" g="1" b="1" />
												</FontString>
											</Layer>
										</Layers>
										<Scripts>
											<OnShow>
												Macaroon.ActionEditSlider_OnShow(self)
											</OnShow>
											<OnValueChanged>
												Macaroon.ActionEditSlider_OnValueChanged(self)
											</OnValueChanged>
										</Scripts>
										<ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
											<Size>
												<AbsDimension x="32" y="32"/>
											</Size>
										</ThumbTexture>
									</Slider>
									<Button name="$parentRadiate" parentKey="radiate" inherits="MacaroonButtonTemplate1">
										<Size x="60" y="25"/>
										<Anchors>
											<Anchor point="BOTTOMLEFT">
												<Offset x="5" y="5"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT">
												<Offset x="-5" y="5"/>
											</Anchor>
										</Anchors>
										<Scripts>
											<OnLoad>
												self.type = "radiate"
												_G[self:GetName().."Text"]:SetText(Macaroon.Strings.ACTION_RADIATE)
											</OnLoad>
											<OnClick>
												Macaroon.ActionEditRadiate_OnClick(self)
											</OnClick>
										</Scripts>
									</Button>
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropBorderColor(0.5, 0.5, 0.5)
										self:SetBackdropColor(0,0,0,1)
										self.title:SetText(Macaroon.Strings.ACTION_EDIT)
									</OnLoad>
								</Scripts>
							</Frame>
							<Frame name="$parentFlyoutEdit" frameStrata="DIALOG" enableMouse="true" parentKey="flyoutedit" hidden="true" toplevel="true">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="MacaroonObjectEditorButtonOptionsMacroEdit">
										<Offset x="0" y="0"/>
									</Anchor>
									<Anchor point="BOTTOMRIGHT" relativeTo="MacaroonObjectEditorButtonOptionsMacroEditActionEdit" relativePoint="BOTTOMRIGHT">
										<Offset x="0" y="0"/>
									</Anchor>
								</Anchors>
								<Backdrop bgFile="Interface\ItemTextFrame\ItemText-Stone-TopLeft" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
									<EdgeSize>
										<AbsValue val="16"/>
									</EdgeSize>
									<TileSize>
										<AbsValue val="16"/>
									</TileSize>
									<BackgroundInsets>
										<AbsInset left="3" right="3" top="3" bottom="3"/>
									</BackgroundInsets>
								</Backdrop>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="$parentText" parentKey="text" inherits="SystemFont_Shadow_Huge3" justifyH="CENTER">
											<Anchors>
												<Anchor point="TOPLEFT">
													<Offset x="0" y="0"/>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset x="0" y="0"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<Button name="$parentCreateFlyout" parentKey="create" inherits="MacaroonButtonTemplate1">
										<Size x="150" y="25"/>
										<Anchors>
											<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
												<Offset x="2" y="-5"/>
											</Anchor>
										</Anchors>
										<Scripts>
											<OnLoad>
												self.type = "create"
												self.parent = self:GetParent()
												self.text:SetText(Macaroon.Strings.CREATE_FLYOUT_2)
											</OnLoad>
											<OnClick>
												Macaroon.FlyoutEditor_CreateFlyout(self)
											</OnClick>
										</Scripts>
									</Button>

								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropColor(0, 0, 0, 1)
										self:SetBackdropBorderColor(0.5, 0.5, 0.5, 1)
										self:SetFrameStrata("DIALOG")
									</OnLoad>
									<OnShow>
										Macaroon.FlyoutEditor_Update()
									</OnShow>
									<OnHide>
										Macaroon.FlyoutEditor_OnHide()
									</OnHide>
									<OnSizeChanged>
										Macaroon.FlyoutEditor_OnSizeChanged(self, w, h)
									</OnSizeChanged>
								</Scripts>
							</Frame>
							<Frame name="$parentMacroVault" frameStrata="DIALOG" enableMouse="true" parentKey="macrovault" hidden="true" toplevel="true">
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="MacaroonObjectEditorButtonOptions">
										<Offset x="10" y="-10"/>
									</Anchor>
									<Anchor point="BOTTOMRIGHT" relativeTo="MacaroonObjectEditorButtonOptionsMacroEditActionEdit" relativePoint="BOTTOMRIGHT">
										<Offset x="0" y="0"/>
									</Anchor>
								</Anchors>
								<Backdrop bgFile="Interface\ItemTextFrame\ItemText-Stone-TopLeft" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
									<EdgeSize>
										<AbsValue val="16"/>
									</EdgeSize>
									<TileSize>
										<AbsValue val="16"/>
									</TileSize>
									<BackgroundInsets>
										<AbsInset left="3" right="3" top="3" bottom="3"/>
									</BackgroundInsets>
								</Backdrop>
								<Layers>
									<Layer level="ARTWORK">
										<FontString name="$parentText" parentKey="text" inherits="SystemFont_Shadow_Huge3" justifyH="CENTER">
											<Anchors>
												<Anchor point="TOPLEFT">
													<Offset x="0" y="0"/>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset x="0" y="0"/>
												</Anchor>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<Frame name="$parentVaultList" parentKey="vaultlist">
										<Anchors>
											<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
												<Offset x="-185" y="-20"/>
											</Anchor>
											<Anchor point="BOTTOMRIGHT">
												<Offset x="0" y="0"/>
											</Anchor>
										</Anchors>
										<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
											<EdgeSize>
												<AbsValue val="16"/>
											</EdgeSize>
											<TileSize>
												<AbsValue val="16"/>
											</TileSize>
											<BackgroundInsets>
												<AbsInset left="5" right="5" top="5" bottom="5"/>
											</BackgroundInsets>
										</Backdrop>
										<Frames>
											<ScrollFrame name="$parentScrollFrame" parentKey="scrollframe" inherits="MacaroonScrollFrameTemplate1">
												<Anchors>
													<Anchor point="TOPLEFT">
														<Offset x="5" y="-5"/>
													</Anchor>
													<Anchor point="BOTTOMRIGHT">
														<Offset x="-27" y="5"/>
													</Anchor>
												</Anchors>
												<ScrollChild>
													<Frame name="$parentScrollChildFrame">
														<Anchors>
															<Anchor point="TOPLEFT">
																<Offset x="5" y="-5"/>
															</Anchor>
															<Anchor point="BOTTOMRIGHT">
																<Offset x="-5" y="5"/>
															</Anchor>
														</Anchors>
													</Frame>
													<Scripts>
														<OnShow>
															--self:SetValue(0)
														</OnShow>
													</Scripts>
												</ScrollChild>
												<Scripts>
													<OnLoad>
														Macaroon.MacroVaultScrollFrame_OnLoad(self)
													</OnLoad>
													<OnVerticalScroll>
														FauxScrollFrame_OnVerticalScroll(self, offset, 2, Macaroon.MacroVaultScrollFrameUpdate)
													</OnVerticalScroll>
												</Scripts>
											</ScrollFrame>
										</Frames>
										<Scripts>
											<OnLoad>
												Macaroon.VaultList_OnLoad(self)
											</OnLoad>
										</Scripts>
									</Frame>
									<Frame name="$parentOptions" parentKey="options">
										<Anchors>
											<Anchor point="BOTTOMLEFT" relativeTo="MacaroonObjectEditor">
												<Offset x="10" y="15"/>
											</Anchor>
											<Anchor point="TOPRIGHT" relativeTo="$parentVaultList" relativePoint="BOTTOMLEFT">
												<Offset x="-2" y="-5"/>
											</Anchor>
										</Anchors>
										<Frames>
											<Button name="$parentCopy" parentKey="copy" inherits="MacaroonButtonTemplate1">
												<Size x="150" y="25"/>
												<Anchors>
													<Anchor point="BOTTOMLEFT">
														<Offset x="0" y="0"/>
													</Anchor>
												</Anchors>
												<Scripts>
													<OnLoad>
														self.type = "copy"
														self.parent = self:GetParent()
														self.text:SetText(Macaroon.Strings.MACRO_COPYFROMVAULT)
													</OnLoad>
													<OnClick>
														Macaroon.MacroVaultCopy_OnClick(self)
													</OnClick>
												</Scripts>
											</Button>
											<Button name="$parentDelete" parentKey="delete" inherits="MacaroonButtonTemplate1">
												<Size x="150" y="25"/>
												<Anchors>
													<Anchor point="LEFT" relativeTo="$parentCopy" relativePoint="RIGHT">
														<Offset x="0" y="0"/>
													</Anchor>
												</Anchors>
												<Scripts>
													<OnLoad>
														self.type = "delete"
														self.parent = self:GetParent()
														self.text:SetText(Macaroon.Strings.MACRO_DELETEFROMVAULT)
													</OnLoad>
													<OnClick>
														Macaroon.MacroVaultDelete_OnClick(self)
													</OnClick>
												</Scripts>
											</Button>
										</Frames>
									</Frame>
									<Frame name="$parentConfirm" parentKey="confirm" hidden="true">
										<Anchors>
											<Anchor point="BOTTOMLEFT" relativeTo="MacaroonObjectEditor">
												<Offset x="10" y="15"/>
											</Anchor>
											<Anchor point="TOPRIGHT" relativeTo="$parentVaultList" relativePoint="BOTTOMLEFT">
												<Offset x="-2" y="-5"/>
											</Anchor>
										</Anchors>
										<Layers>
											<Layer level="ARTWORK">
												<FontString name="$parentText" parentKey="text" inherits="GameFontNormal" justifyH="CENTER">
													<Anchors>
														<Anchor point="CENTER">
															<Offset x="0" y="0"/>
														</Anchor>
													</Anchors>
												</FontString>
											</Layer>
										</Layers>
										<Frames>
											<Button name="$parentConfirmYes" parentKey="yes" inherits="MacaroonButtonTemplate1">
												<Size x="60" y="25"/>
												<Anchors>
													<Anchor point="BOTTOMLEFT">
														<Offset x="1" y="0"/>
													</Anchor>
												</Anchors>
												<Scripts>
													<OnLoad>
														self.type = "yes"
														self.parent = self:GetParent()
														self.text:SetText(Macaroon.Strings.CONFIRM_YES)
													</OnLoad>
													<OnClick>
														Macaroon.MacroVaultConfirmYes_OnClick(self)
													</OnClick>
												</Scripts>
											</Button>
											<Button name="$parentConfirmNo" parentKey="no" inherits="MacaroonButtonTemplate1">
												<Size x="60" y="25"/>
												<Anchors>
													<Anchor point="BOTTOMRIGHT">
														<Offset x="0" y="0"/>
													</Anchor>
												</Anchors>
												<Scripts>
													<OnLoad>
														self.type = "no"
														self.parent = self:GetParent()
														self.text:SetText(Macaroon.Strings.CONFIRM_NO)
													</OnLoad>
													<OnClick>
														self.parent:GetParent().options:Show()
														self.parent:Hide()
													</OnClick>
												</Scripts>
											</Button>
										</Frames>
										<Scripts>
											<OnLoad>
												self.parent = self:GetParent()
												self.text:SetText(Macaroon.Strings.CONFIRM)
											</OnLoad>
										</Scripts>
									</Frame>
								</Frames>
								<Scripts>
									<OnLoad>
										self:SetBackdropColor(0, 0, 0, 1)
										self:SetBackdropBorderColor(0, 0, 0, 1)
										self:SetFrameStrata("DIALOG")
									</OnLoad>
									<OnShow>
										Macaroon.MacroVaultScrollFrameUpdate()
									</OnShow>
								</Scripts>
							</Frame>
						</Frames>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="$parentTitle" inherits="GameFontNormalSmall" justifyH="LEFT">
									<Anchors>
										<Anchor point="TOP">
											<Offset x="0" y="10"/>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								self:SetBackdropBorderColor(0.5, 0.5, 0.5)
								self:SetBackdropColor(0,0,0,1)
								self.optionSet = 1
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="$parentFlyoutEditor" parentKey="flyoutBtn" inherits="MacaroonButtonTemplate1">
						<Size x="150" y="25"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset x="10" y="15"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.type = "flyout"
								self.parent = self:GetParent()
								self.text:SetText(Macaroon.Strings.CREATE_FLYOUT)
							</OnLoad>
							<OnHide>
								self.type = "done"
								Macaroon.FlyoutEditor_OnClick(self)
							</OnHide>
							<OnClick>
								Macaroon.FlyoutEditor_OnClick(self)
							</OnClick>
						</Scripts>
					</Button>

					<Button name="$parentMacroVaultOpen" parentKey="mvopen" inherits="MacaroonButtonTemplate1">
						<Size x="150" y="25"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativeTo="MacaroonObjectEditor" relativePoint="BOTTOMRIGHT">
								<Offset x="-8" y="15"/>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.type = "mvopen"
								self.parent = self:GetParent()
								self.text:SetText(Macaroon.Strings.MACRO_VAULT)
							</OnLoad>
							<OnHide>
								self.type = "done"
								Macaroon.MacroVault_OnClick(self)
							</OnHide>
							<OnClick>
								Macaroon.MacroVault_OnClick(self)
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad>
						self:RegisterEvent("ADDON_LOADED")
					</OnLoad>
					<OnEvent>
						if (... == "Macaroon") then
							Macaroon.ButtonEditor_OnEvent(self)
		                                end
					</OnEvent>
					<OnHide>
						if (self.flyoutBtn.type == "macro") then
							self.flyoutBtn:Click()
						end
					</OnHide>
				</Scripts>
			</Frame>
			<Button name="$parentDone" parentKey="done" toplevel="true" frameStrata="TOOLTIP">
				<Size x="32" y="32"/>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="1" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.button = "close"
					</OnLoad>
					<OnClick>
						MacaroonObjectEditor.shrink = true
					</OnClick>
				</Scripts>
				<NormalTexture urgency="5" file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
				<HighlightTexture urgency="5" file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				Macaroon.ObjectEditor_OnLoad(self)
			</OnLoad>
			<OnUpdate>
				Macaroon.ObjectEditor_OnUpdate(self, elasped)
			</OnUpdate>
			<OnDragStart>
				Macaroon.PanelMover_OnDragStart(self)
			</OnDragStart>
			<OnDragStop>
				Macaroon.PanelMover_OnDragStop(self)
			</OnDragStop>
		</Scripts>
	</Frame>
</Ui>
