vanilla-wow-addons – Rev 1
?pathlinks?
<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">
<Script file="scripts.lua"/>
<Button name="BongosOptionsDropDownButton" virtual="true">
<Size x="24" y="24"/>
<ButtonText>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont font="GameFontNormal" justifyH="RIGHT"/>
<NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up" setAllPoints="true"/>
<PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down" setAllPoints="true"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" setAllPoints="true" alphaMode="ADD"/>
</Button>
<CheckButton name="BongosOptionsDropDownItem" virtual="true">
<Size x="140" y="24"/>
<ButtonText>
<Anchors>
<Anchor point="LEFT">
<Offset x="24" y="0"/>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont font= "GameFontNormal" justifyH="LEFT"/>
<HighlightFont font="GameFontHighlight" justifyH="LEFT"/>
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check">
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
<Offset x="24" y="0"/>
</Anchor>
</Anchors>
</CheckedTexture>
</CheckButton>
<!-- the dropdown list of character names that we have data about -->
<Frame name="BongosOptionsDropdownList" enableMouse="true" toplevel="true" hidden="true" virtual="true">
<Size x="160" y="0"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="4"/>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets>
<AbsInset left="4" right="4" top="4" bottom="4"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="BongosOptionsScripts" inherits="BongosOptionsPanel" virtual="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentActionTitle" font="GameFontNormal" text="Action">
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="6" y="-54"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentBarDropDown" inherits="BongosOptionsDropDownButton">
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="4"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
BOptionsScript_ShowBarList(getglobal(this:GetParent():GetName() .. "BarList"));
</OnClick>
</Scripts>
</Button>
<EditBox name="$parentBarNameBox" autoFocus="false">
<Size x="236" y="24"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentBarDropDown" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level ="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0.2" g="0.2" b="0.4" a="0.7"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnShow>
this:SetText("Bar");
</OnShow>
<OnEscapePressed>
this:ClearFocus();
</OnEscapePressed>
</Scripts>
<FontString font="GameFontNormal"/>
</EditBox>
<Frame name="$parentBarList" inherits="BongosOptionsDropdownList">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBarNameBox" relativePoint="BOTTOMLEFT">
<Offset x="-2" y="0"/>
</Anchor>
</Anchors>
</Frame>
<Button name="$parentEventDropDown" inherits="BongosOptionsDropDownButton">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBarDropDown" relativePoint="BOTTOMLEFT">
<Offset x="0" y="-2"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
BOptionsScript_ShowEventList(getglobal(this:GetParent():GetName() .. "EventList"));
</OnClick>
</Scripts>
</Button>
<EditBox name="$parentEventBox" autoFocus="false">
<Size x="236" y="24"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentEventDropDown" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level = "BACKGROUND">
<Texture setAllPoints="true">
<Color r="0.2" g="0.2" b="0.4" a="0.7"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnShow>
this:SetText("Event");
</OnShow>
<OnEscapePressed>
this:ClearFocus();
</OnEscapePressed>
</Scripts>
<FontString font="GameFontNormal"/>
</EditBox>
<Frame name="$parentEventList" inherits="BongosOptionsDropdownList">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentEventBox" relativePoint="BOTTOMLEFT">
<Offset x="-2" y="0"/>
</Anchor>
</Anchors>
</Frame>
<EditBox name="$parentActionBox" autoFocus="false" multiLine="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentActionTitle" relativePoint="BOTTOMLEFT">
<Offset x="-2" y="-4"/>
</Anchor>
<Anchor point="BOTTOMRIGHT">
<Offset x="-4" y="26"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0.2" g="0.2" b="0.4" a="0.7"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEscapePressed>
this:ClearFocus();
</OnEscapePressed>
</Scripts>
<FontString font="GameFontHighlightSmall"/>
</EditBox>
<Button name="$parentDelete" inherits="UIPanelButtonTemplate" text="Delete">
<Size x="50" y="22"/>
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset x="-4" y="2"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
local barID = getglobal(this:GetParent():GetName() .. "BarNameBox"):GetText();
if tonumber(barID) then
barID = tonumber(barID);
end
local event = getglobal(this:GetParent():GetName() .. "EventBox"):GetText();
BCustomScript.Delete(barID, event);
</OnClick>
</Scripts>
</Button>
<Button name="$parentSave" inherits="UIPanelButtonTemplate" text="Save">
<Size x="42" y="22"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentDelete" relativePoint="LEFT">
<Offset x="-2" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
local barID = getglobal(this:GetParent():GetName() .. "BarNameBox"):GetText();
if tonumber(barID) then
barID = tonumber(barID);
end
local event = getglobal(this:GetParent():GetName() .. "EventBox"):GetText();
local action = getglobal(this:GetParent():GetName() .. "ActionBox"):GetText();
local runNow = getglobal(this:GetParent():GetName() .. "RunNow"):GetChecked();
BCustomScript.Save(barID, event, action, runNow);
</OnClick>
</Scripts>
</Button>
<CheckButton name="$parentRunNow" inherits="BongosCheckButtonTemplate" text="Run at Load">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset x="0" y="-4"/>
</Anchor>
</Anchors>
</CheckButton>
</Frames>
<Scripts>
<OnShow>
local frame = this:GetParent():GetParent();
frame:SetWidth(frame:GetWidth() + 40);
frame:SetHeight(frame:GetHeight() + 80);
</OnShow>
<OnHide>
local frame = this:GetParent():GetParent();
frame:SetWidth(frame:GetWidth() - 40);
frame:SetHeight(frame:GetHeight() - 80);
getglobal(this:GetName() .. "BarList"):Hide();
getglobal(this:GetName() .. "EventList"):Hide();
</OnHide>
</Scripts>
</Frame>
</Ui>
Generated by GNU Enscript 1.6.5.90.