Mine
public text v1 · immutable<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Frame name="AlcConfig" movable="true" enableMouse="true" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="695" y="320" />
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalLarge" text="Alcohol">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- close button -->
<Button name="$parentClose" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
self:GetParent():Hide()
</OnClick>
</Scripts>
</Button>
<!-- BEGIN PRESETS PANEL -->
<Frame name="AlcPanelPresets" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="250" y="80" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-30" />
</Offset>
</Anchor>
</Anchors>
<!-- panel title -->
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormal" text="Presets">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- dropdown menu -->
<Frame inherits="UIDropDownMenuTemplate" name="AlcSelPreset">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-5" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Load preset:">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="20" y="5" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
UIDropDownMenu_Initialize(self, Alchol.Config.Presets.DropDownMenuInit)
</OnLoad>
</Scripts>
</Frame>
<!-- load button -->
<Button name="AlcBtnLoadPreset" text="Load" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AlcSelPresetButton">
<Offset>
<AbsDimension x="5" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Alcohol.Config.Presets.Load()
</OnClick>
</Scripts>
</Button>
<!--
save text
<EditBox name="AlcTxtSaveBars" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="124" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="AlcSelPresetButton">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Save current bars as:">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="-5" y="10" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
save button
<Button name="AlcBtnSavePreset" text="Save" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AlcTxtSaveBars">
<Offset>
<AbsDimension x="5" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
AlcSavePreset()
</OnClick>
</Scripts>
</Button>
-->
</Frames>
</Frame>
<!-- END PRESET PANEL -->
<!-- BEGIN ADD BARS PANEL -->
<Frame name="AlcPanelAddBars" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="250" y="205" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcPanelPresets">
<Offset>
<AbsDimension x="0" y="-5" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormal" text="Add Bars">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- target -->
<EditBox name="AlcAddTxtTarget" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="124" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="70" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Target:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- frame -->
<EditBox name="AlcAddTxtFrame" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="124" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcAddTxtTarget">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Frame:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- scale -->
<EditBox name="AlcAddTxtScale" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcAddTxtFrame">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Scale:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- X -->
<EditBox name="AlcAddTxtX" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcAddTxtScale">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="X:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- Y -->
<EditBox name="AlcAddTxtY" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcAddTxtX">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Y:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- BPR -->
<EditBox name="AlcAddTxtBPR" inherits="InputBoxTemplate" numeric="true">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcAddTxtY">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="BPR:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- add button -->
<Button name="AlcAddBtnAdd" text="Add" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-75" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Alcohol.Config.AddBar.Add()
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<!-- END ADD BARS PANEL -->
<!-- BEGIN BARS PANEL -->
<Frame name="AlcPanelBars" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="250" y="240" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="AlcPanelPresets">
<Offset>
<AbsDimension x="5" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<!-- title -->
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormal" text="Bars">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- dropdown menu -->
<Frame inherits="UIDropDownMenuTemplate" name="AlcSelBar">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="-5" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Show bar attached to:">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="20" y="5" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
UIDropDownMenu_Initialize(self, Alchol.Config.Bars.DropDownMenuInit)
</OnLoad>
</Scripts>
</Frame>
<!-- target -->
<EditBox name="AlcTxtTarget" inherits="InputBoxTemplate" readonly="true">
<Size>
<AbsDimension x="124" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="70" y="-75" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Target:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- frame -->
<EditBox name="AlcTxtFrame" inherits="InputBoxTemplate" eradonly="true">
<Size>
<AbsDimension x="124" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcTxtTarget">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Frame:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- scale -->
<EditBox name="AlcTxtScale" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcTxtFrame">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Scale:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- X -->
<EditBox name="AlcTxtX" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcTxtScale">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="X:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- Y -->
<EditBox name="AlcTxtY" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcTxtX">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Y:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- BPR -->
<EditBox name="AlcTxtBPR" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AlcTxtY">
<Offset>
<AbsDimension x="0" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="BPR:">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<!-- remove button -->
<Button name="AlcBtnRem" text="Remove" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-45" y="-90" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Alcohol.Config.Bars.Remove()
</OnClick>
</Scripts>
</Button>
<!-- save button -->
<Button name="AlcBtnSave" text="Apply" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="45" y="-90" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Alcohol.Config.Bars.Save()
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<!-- END BARS PANEL -->
<!-- BEGIN OPTIONS PANEL -->
<Frame name="AlcPanelOptions" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="165" y="125" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="AlcPanelBars">
<Offset>
<AbsDimension x="5" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormal" text="Options">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- minibuttons checkbox -->
<CheckButton name="AlcChkMini" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Show minibuttons">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnShow>
self:SetChecked(AlcOptions["mini"])
</OnShow>
<OnClick>
AlcOptions["mini"] = self:GetChecked()
Alcohol.Config.Options.ToggleMinibuttons()
</OnClick>
</Scripts>
</CheckButton>
<!-- tooltip position dropdown -->
<Frame inherits="UIDropDownMenuTemplate" name="AlcSelTooltip">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="AlcChkMini" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-10" y="-20" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Tooltip potition:">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="15" y="5" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
UIDropDownMenu_Initialize(self, Alcohol.Config.Options.DropDownMenuInit)
UIDropDownMenu_SetSelectedValue(self, AlcOptions["tooltip"])
</OnLoad>
</Scripts>
</Frame>
</Frames>
</Frame>
<!-- END OPTIONS PANEL -->
</Frames>
<Scripts>
<OnLoad>
table.insert(UISpecialFrames, self:GetName())
self:RegisterForDrag("LeftButton")
</OnLoad>
<OnDragStart>
self:StartMoving()
</OnDragStart>
<OnDragStop>
self:StopMovingOrSizing()
</OnDragStop>
</Scripts>
</Frame>
</Ui>