<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/
D:\UI.xsd">
	<Script file="Localization.lua"/>
	<Script file="BEBOptions.lua"/>
	<Frame name="BEBConfigFrame" toplevel="true" parent="UIParent" frameStrata="DIALOG" hidden="true" enableMouse="true" movable="true">
		<Size>
			<AbsDimension x="320" y="350"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="512" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="24"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="BEBCurrentSelector" inherits="GameFontNormal" justifyH="LEFT" text="Current Selector">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="20" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="BEBColorsHeader" inherits="GameFontNormal" justifyH="LEFT">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="20" y="-125"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="BEBAttachHeader" inherits="GameFontNormal" justifyH="CENTER">
					<Anchors>
						<Anchor point="TOP" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-90"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="BEBConfigHeader" enableMouse="true ">
				<Size>
					<AbsDimension x="500" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="BEBConfigHeaderText" inherits="GameFontNormal" justifyV="MIDDLE">
							<Anchors>
								<Anchor point="CENTER" relativeTo="BEBConfigHeader">
									<Offset>
										<AbsDimension y="-5" x="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnMouseDown>
						BEBOPTIONS.OnMouseDown(self)
					</OnMouseDown>
					<OnMouseUp>
						BEBOPTIONS.OnMouseUp(self)
					</OnMouseUp>
				</Scripts>
			</Frame>
			<Button name="$parentButtonClose" inherits="UIPanelButtonTemplate">
				<Size>
					<AbsDimension y="20" x="130"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="5" y="5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						BEBConfigFrame:Hide(self)
					</OnClick>
				</Scripts>
			</Button>
			<Button name="BEBDefaultsButton" inherits="UIPanelButtonTemplate">
				<Size>
					<AbsDimension y="20" x="130"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="5" y="25"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						BEB.LoadDefaults(self)
					</OnClick>
				</Scripts>
			</Button>
			<Button name="BEBMainSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBMain"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBBackgroundSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBBackground"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBXpBarSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-55"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBXpBar"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBRestedXpBarSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBRestedXpBar"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBMarkersSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-105"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBMarkers"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBXpTickSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-130"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBXpTick"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBRestedXpTickSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-155"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBRestedXpTick"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBRestedXpTickGlowSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-180"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBRestedXpTickGlow"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBBarTextSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-205"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBBarText"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBProfileSelector" inherits="BEBSelectorTemplate">
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="5" y="45"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "BEBProfile"
					</OnLoad>
				</Scripts>
			</Button>
			<CheckButton name="BEBClickTextCheckButton" inherits="BEBOptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="160" y="-60"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "clicktext"
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="BEBDragableCheckButton" inherits="BEBOptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "dragable"
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="BEBFlashingCheckButton" inherits="BEBOptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="160" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
					self.index = "flashing"
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="BEBShownCheckButton" inherits="BEBOptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "shown"
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="BEBShowOnMouseoverCheckButton" inherits="BEBOptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-60"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.index = "mouseover"
					</OnLoad>
				</Scripts>
			</CheckButton>
			<Frame name="BEB_MainAttachToFrame" inherits="BEBOptions_MenuEditboxFrameTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="BEBAttachHeader" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension y="-25" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local button = getglobal(self:GetName().."Button")
						button.table = "UIATTACHFRAMES"
						button.func = "DDM_ReplaceText"
						button.typeindex = "location"
						button.subindex = "relto"
                                                button.xlate = BEBOPTIONS.UIATTACHFRAMES
					</OnLoad>
				</Scripts>
			</Frame>
			<Frame name="BEB_BarTextFrame" inherits="BEBOptions_MenuEditboxFrameTemplate">
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension y="-175" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local button = getglobal(self:GetName().."Button")
						button.table = "VARIABLE_FUNCTIONS_DESCRIPTIONS"
						button.func = "DDM_InsertText"
						button.typeindex = "text"
						button.subindex = "string"
					</OnLoad>
				</Scripts>
			</Frame>
			<Frame name="BEB_TextureFrame" inherits="BEBOptions_MenuEditboxFrameTemplate">
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension y="-175" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local button = getglobal(self:GetName().."Button")
						button.table = "TEXTURES"
						button.func = "DDM_ReplaceText"
						button.typeindex = "texture"
                                                button.xlate = BEBOPTIONS.TEXTURES
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="BEBUnrestedTextureColorButton" inherits="BEBOptionsColorButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBColorsHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="0" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentTexture">
							<Size>
								<AbsDimension y="20" x="20"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.whenindex = "unrestcolor"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBRestedTextureColorButton" inherits="BEBOptionsColorButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBColorsHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="0" x="95"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentTexture">
							<Size>
								<AbsDimension y="20" x="20"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.whenindex = "restcolor"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBMaxrestedTextureColorButton" inherits="BEBOptionsColorButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBColorsHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="0" x="190"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentTexture">
							<Size>
								<AbsDimension y="20" x="20"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.whenindex = "maxrestcolor"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBUnrestedTextColorButton" inherits="BEBOptionsColorButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBColorsHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="0" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentTexture" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="MIDDLE" text="Abc def">
							<Size>
								<AbsDimension y="24" x="24"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER" relativePoint="CENTER">
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.whenindex = "unrestcolor"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBRestedTextColorButton" inherits="BEBOptionsColorButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBColorsHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="0" x="95"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentTexture" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="MIDDLE" text="Abc def">
							<Size>
								<AbsDimension y="24" x="24"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER" relativePoint="CENTER">
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.whenindex = "restcolor"
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BEBMaxrestedTextColorButton" inherits="BEBOptionsColorButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBColorsHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="0" x="190"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentTexture" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="MIDDLE" text="Abc def">
							<Size>
								<AbsDimension y="24" x="24"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER" relativePoint="CENTER">
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.whenindex = "maxrestcolor"
					</OnLoad>
				</Scripts>
			</Button>
			<Frame name="BEBOptionsPositionControls">
				<Size>
					<AbsDimension y="100" x="150"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOP">
						<Offset>
							<AbsDimension y="-200" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER">
							<Anchors>
								<Anchor point="TOP">
								</Anchor>
							</Anchors>
							<FontHeight val="10">
							</FontHeight>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentNudge0" inherits="BEBNudgeTemplate">
						<Anchors>
							<Anchor point="TOP">
								<Offset>
									<AbsDimension x="0" y="-40"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.index = "0"
								self:SetText("0");
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentNudgeUp" inherits="BEBNudgeTemplate">
						<Anchors>
							<Anchor point="BOTTOM" relativeTo="$parentNudge0" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.index = "up"
								self:SetText("^");
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentNudgeDown" inherits="BEBNudgeTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentNudge0" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetText("v");
								self.index = "down"
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentNudgeLeft" inherits="BEBNudgeTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativeTo="$parentNudge0" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetText(BEBOPTIONS.ARROWLEFT);
								self.index = "left"
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentNudgeRight" inherits="BEBNudgeTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentNudge0" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetText(BEBOPTIONS.ARROWRIGHT);
								self.index = "right"
							</OnLoad>
						</Scripts>
					</Button>
					<EditBox multiLine="false" name="$parentxEditBox" inherits="InputBoxTemplate" letters="5" autoFocus="false">
						<Size>
							<AbsDimension x="47" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="$parentNudge0" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension y="-2" x="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.index = "x"
							</OnLoad>
							<OnEditFocusGained>
							self.prevvals = self:GetNumber()
							</OnEditFocusGained>
							<OnEnterPressed>
								BEBOPTIONS.PositionEditBox_OnEnterPressed(self)
								self:ClearFocus()
							</OnEnterPressed>
							<OnEscapePressed>
								if (self.prevvals) then
									self:SetText(self.prevvals)
								end
								self:ClearFocus()
							</OnEscapePressed>
						</Scripts>
						<Layers>
							<Layer>
								<FontString inherits="GameFontNormal" text="x" justifyH="CENTER">
									<Anchors>
										<Anchor point="BOTTOM" relativePoint="TOP">
											<Offset>
												<AbsDimension y="0" x="-6"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</EditBox>
					<EditBox multiLine="false" name="$parentyEditBox" inherits="InputBoxTemplate" letters="5" autoFocus="false">
						<Size>
							<AbsDimension x="47" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentNudge0" relativePoint="BOTTOMRIGHT">
								<Offset>
									<AbsDimension y="-2" x="14"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.index = "y"
							</OnLoad>
							<OnEditFocusGained>
							self.prevvals = self:GetNumber()
							</OnEditFocusGained>
							<OnEnterPressed>
								BEBOPTIONS.PositionEditBox_OnEnterPressed(self)
								self:ClearFocus()
							</OnEnterPressed>
							<OnEscapePressed>
								if (self.prevvals) then
									self:SetText(self.prevvals)
								end
								self:ClearFocus()
							</OnEscapePressed>
						</Scripts>
						<Layers>
							<Layer>
								<FontString inherits="GameFontNormal" text="y" justifyH="CENTER">
									<Anchors>
										<Anchor point="BOTTOM" relativePoint="TOP">
											<Offset>
												<AbsDimension y="0" x="-6"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</EditBox>
				</Frames>
				<Scripts>
					<OnUpdate>
						BEBOPTIONS.Placement_OnUpdate(self, elapsed)
					</OnUpdate>
				</Scripts>
			</Frame>
			<Button name="BEB_MainAttachPointButton" inherits="BEBOptions_DDMButtonTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="BEBAttachHeader" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension y="0" x="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.func = "DDM_ReplaceText"
						self.table = "ATTACHPOINTS"
						self.typeindex = "location"
						self.subindex = "point"
				                self.controlbox = "BEB_MainAttachPointButton"
				                self.controlboxtype = "fontstring"
					</OnLoad>
					<OnClick>
						BEBOPTIONS.DDM_Button_OnClick(self)
					</OnClick>
				</Scripts>
			</Button>
			<Button name="BEB_MainAttachToPointButton" inherits="BEBOptions_DDMButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BEBAttachHeader" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension y="0" x="40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.func = "DDM_ReplaceText"
						self.table = "ATTACHPOINTS"
						self.typeindex = "location"
						self.subindex = "relpoint"
				                self.controlbox = "BEB_MainAttachToPointButton"
				                self.controlboxtype = "fontstring"
					</OnLoad>
					<OnClick>
						BEBOPTIONS.DDM_Button_OnClick(self)
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="BEBProfileFrame">
				<Size>
					<AbsDimension y="290" x="290"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension y="-35" x="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<Button name="$parentCreateButton" inherits="UIPanelButtonTemplate">
						<Size>
							<AbsDimension y="24" x="80"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
							</Anchor>
						</Anchors>
						<Frames>
							<EditBox name="$parentEditBox" inherits="InputBoxTemplate" autoFocus="false">
								<Size>
									<AbsDimension y="20" x="200"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT">
										<Offset>
											<AbsDimension y="0" x="16"/>
										</Offset>
									</Anchor>
								</Anchors>
							</EditBox>
						</Frames>
						<Scripts>
							<OnClick>
								BEBOPTIONS.CreateProfile(self)
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentUseButton" inherits="BEBProfileButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension y="-30" x="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<CheckButton name="$parentCheckButton" enableMouse="false">
								<Size>
									<AbsDimension y="24" x="24"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativePoint="RIGHT">
										<Offset>
											<AbsDimension y="0" x="-5"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks(nil)
									</OnLoad>
								</Scripts>
								<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
							</CheckButton>
						</Frames>
						<Scripts>
							<OnClick>
								BEBOPTIONS.UseProfile(self)
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentLoadButton" inherits="BEBProfileButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension y="-60" x="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								BEBOPTIONS.LoadProfile(self)
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentSaveButton" inherits="BEBProfileButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension y="-90" x="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								BEBOPTIONS.SaveProfile(self)
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentDeleteButton" inherits="BEBProfileButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension y="-120" x="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								BEBOPTIONS.DeleteProfile(self)
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Slider name="BEBOptionsHeightSlider" inherits="BEBOptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension y="-215" x="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parent_Label" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<EditBox multiLine="false" name="$parent_EditBox" inherits="InputBoxTemplate" letters="5" autoFocus="false">
						<Size>
							<AbsDimension x="47" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension y="-4" x="8"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEditFocusGained>
								self.prevvals = self:GetNumber()
							</OnEditFocusGained>
							<OnEnterPressed>
								BEBOPTIONS.SliderEditBox_OnEnterPressed(self)
								self:ClearFocus()
							</OnEnterPressed>
							<OnEscapePressed>
								if (self.prevvals) then
									self:SetText(self.prevvals)
								end
								self:ClearFocus()
							</OnEscapePressed>
						</Scripts>
					</EditBox>
				</Frames>
				<Scripts>
					<OnLoad>
						self.whatindex = "size"
						self.axisindex = "y"
						self.label = "height"
					</OnLoad>
					<OnValueChanged>
						BEBOPTIONS.SliderOnChange(self)
					</OnValueChanged>
				</Scripts>
			</Slider>
			<Slider name="BEBOptionsWidthSlider" inherits="BEBOptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOP" relativeTo="BEBOptionsHeightSlider" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension y="-30" x="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<EditBox multiLine="false" name="$parent_EditBox" inherits="InputBoxTemplate" letters="5" autoFocus="false">
						<Size>
							<AbsDimension x="47" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension y="-4" x="8"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEditFocusGained>
								self.prevvals = self:GetNumber()
							</OnEditFocusGained>
							<OnEnterPressed>
								BEBOPTIONS.SliderEditBox_OnEnterPressed(self)
								self:ClearFocus()
							</OnEnterPressed>
							<OnEscapePressed>
								if (self.prevvals) then
									self:SetText(self.prevvals)
								end
								self:ClearFocus()
							</OnEscapePressed>
						</Scripts>
					</EditBox>
				</Frames>
				<Scripts>
					<OnLoad>
						self.whatindex = "size"
						self.axisindex = "x"
						self.label = "width"
					</OnLoad>
					<OnValueChanged>
						BEBOPTIONS.SliderOnChange(self)
					</OnValueChanged>
				</Scripts>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parent_Label" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Slider>
			<Slider name="BEBOptionsLevelSlider" inherits="BEBOptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension y="-310" x="172"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<EditBox multiLine="false" name="$parent_EditBox" inherits="InputBoxTemplate" letters="5" autoFocus="false">
						<Size>
							<AbsDimension x="47" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension y="-4" x="8"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEditFocusGained>
								self.prevvals = self:GetNumber()
							</OnEditFocusGained>
							<OnEnterPressed>
								BEBOPTIONS.LevelSliderEditBox_OnEnterPressed(self)
								self:ClearFocus()
							</OnEnterPressed>
							<OnEscapePressed>
								if (self.prevvals) then
									self:SetText(self.prevvals)
								end
								self:ClearFocus()
							</OnEscapePressed>
						</Scripts>
					</EditBox>
				</Frames>
				<Scripts>
					<OnLoad>
						self.whatindex = "level"
						self.label = "level"
					</OnLoad>
					<OnValueChanged>
						BEBOPTIONS.LevelSliderOnChange(self)
					</OnValueChanged>
				</Scripts>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parent_Label" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Slider>
			<Button name="BEB_StrataDDMButton" inherits="BEBOptions_DDMButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension y="-305" x="35"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.func = "DDM_ReplaceText"
						self.table = "STRATAS"
						self.typeindex = "strata"
				                self.controlbox = "BEB_StrataDDMButton"
				                self.controlboxtype = "fontstring"
					</OnLoad>
					<OnClick>
						BEBOPTIONS.DDM_Button_OnClick(self)
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="BEB_DropDownMenu" enableMouse="true" hidden="true" frameLevel="15" inherits="UIDropDownMenuTemplate">
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-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>
						UIDropDownMenu_Initialize(self, BEBOPTIONS.DDM_Initialize, "MENU");
						self.count = 30
					</OnLoad>
					<OnEnter>
						self.timer = nil
					</OnEnter>
					<OnLeave>
						self.timer = 5
					</OnLeave>
					<OnUpdate>
						BEBOPTIONS.DDM_OnUpdate(self, elapsed)
					</OnUpdate>
					<OnHide>
						self.how = nil
						self.timer = nil
					</OnHide>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				BEBOPTIONS.OnLoad(self)
			</OnLoad>
			<OnEvent>
				BEBOPTIONS.OnEvent(self, event, ...)
			</OnEvent>
			<OnShow>
				BEBOPTIONS.OnShow(self)
			</OnShow>
			<OnMouseDown>
				BEBOPTIONS.OnMouseDown(self)
			</OnMouseDown>
			<OnMouseUp>
				BEBOPTIONS.OnMouseUp(self)
			</OnMouseUp>
			<OnHide>
				BEB_DropDownMenu:Hide(self)
			</OnHide>
		</Scripts>
	</Frame>
	<Button name="BEBOptions_ColorCopy" inherits="UIPanelButtonTemplate" hidden="false" parent="ColorPickerFrame">
		<Size>
			<AbsDimension x="75" y="22"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativeTo="ColorPickerFrame" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnShow>
				if (DL_ColorCopy) then
					self:Hide()
				end
			</OnShow>
			<OnClick>
				local r, g, b = ColorPickerFrame:GetColorRGB();
				if (ColorPickerFrame.hasOpacity) then
					local a = OpacitySliderFrame:GetValue();
					BEBOPTIONS_SAVED_COLOR = {r=r, g=g, b=b, a=a};
				else
					BEBOPTIONS_SAVED_COLOR = {r=r, g=g, b=b};
				end
			</OnClick>
		</Scripts>
	</Button>
	<Button name="BEBOptions_ColorPaste" inherits="UIPanelButtonTemplate" hidden="false" parent="ColorPickerFrame">
		<Size>
			<AbsDimension x="75" y="22"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMRIGHT" relativeTo="ColorPickerFrame" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnShow>
				if (DL_ColorCopy) then
					self:Hide()
				end
			</OnShow>
			<OnClick>
				if (BEBOPTIONS_SAVED_COLOR) then
					ColorPickerFrame:SetColorRGB(BEBOPTIONS_SAVED_COLOR.r, BEBOPTIONS_SAVED_COLOR.g, BEBOPTIONS_SAVED_COLOR.b);
					if (BEBOPTIONS_SAVED_COLOR.a) then
						OpacitySliderFrame:SetValue(BEBOPTIONS_SAVED_COLOR.a);
					end
				end
			</OnClick>
		</Scripts>
	</Button>
</Ui>
