474 lines
15 KiB
XML
474 lines
15 KiB
XML
|
<Ui xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.blizzard.com/wow/ui/">
|
||
|
<Script file="Frame.lua" />
|
||
|
<Frame name="DiceRollerFrame" inherits="BackdropTemplate" parent="UIParent" toplevel="true" movable="true" enableMouse="true">
|
||
|
<Size x="374" y="128" />
|
||
|
<Anchors>
|
||
|
<Anchor x="-429" y="87" point="CENTER" />
|
||
|
</Anchors>
|
||
|
<KeyValues>
|
||
|
<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" keyType="string" type="global" />
|
||
|
</KeyValues>
|
||
|
<Layers>
|
||
|
<Layer level="OVERLAY">
|
||
|
<FontString name="DiceCountFontString" inherits="GameFontNormal" text="Count">
|
||
|
<Size x="59" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="96" y="-43" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="DiceSideFontString" inherits="GameFontNormal" text="Sides">
|
||
|
<Size x="53" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="159" y="-43" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="DiceModifierFontString" inherits="GameFontNormal" text="Modifier">
|
||
|
<Size x="57" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="218" y="-43" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="RollTypeFontString" inherits="GameFontNormal" text="Tag">
|
||
|
<Size x="74" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="281" y="-43" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
</Layer>
|
||
|
</Layers>
|
||
|
<Frames>
|
||
|
<StatusBar parentKey="statusBar" hidden="true" useParentLevel="true" minValue="0" maxValue="1" defaultValue="1">
|
||
|
<Size x="170" y="28" />
|
||
|
<Anchors>
|
||
|
<Anchor x="42" y="41" point="LEFT" />
|
||
|
</Anchors>
|
||
|
<BarTexture atlas="nameplates-bar-background-white" />
|
||
|
</StatusBar>
|
||
|
<Button name="RollButton1" inherits="UIPanelButtonTemplate" enableMouse="true" enableMouseClicks="true" text="Roll">
|
||
|
<Size x="77" y="33" />
|
||
|
<Anchors>
|
||
|
<Anchor x="13" y="-49" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnClick>
|
||
|
RollButton1_OnClick()
|
||
|
</OnClick>
|
||
|
<OnEnter>
|
||
|
tooltip_OnEnter(RollButton1, "Rolls the dice entered on the box on the right")
|
||
|
</OnEnter>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
</Button>
|
||
|
<EditBox name="DiceCountBox" inherits="InputBoxTemplate" enableKeyboard="true" numeric="true" autoFocus="false">
|
||
|
<Size x="59" y="21" />
|
||
|
<Anchors>
|
||
|
<Anchor x="96" y="-62" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnEnterPressed>
|
||
|
DiceCountBox_OnEnterPressed()
|
||
|
</OnEnterPressed>
|
||
|
<OnEditFocusLost>
|
||
|
DiceCountBox_OnEditFocusLost()
|
||
|
</OnEditFocusLost>
|
||
|
<OnEnter>
|
||
|
tooltip_OnEnter(DiceCountBox, "This is how many dice you want to roll at a time")
|
||
|
</OnEnter>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
<FontString inherits="ChatFontNormal" text="" />
|
||
|
</EditBox>
|
||
|
<EditBox name="DiceSideBox" inherits="InputBoxTemplate" enableKeyboard="true" numeric="true" autoFocus="false">
|
||
|
<Size x="53" y="21" />
|
||
|
<Anchors>
|
||
|
<Anchor x="159" y="-62" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnEnterPressed>
|
||
|
DiceSideBox_OnEnterPressed()
|
||
|
</OnEnterPressed>
|
||
|
<OnEditFocusLost>
|
||
|
DiceSideBox_OnEditFocusLost()
|
||
|
</OnEditFocusLost>
|
||
|
<OnEnter>
|
||
|
tooltip_OnEnter(DiceSideBox, "This determines how many sides you roll, like 6 sides or 20 sides")
|
||
|
</OnEnter>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
<FontString inherits="ChatFontNormal" text="" />
|
||
|
</EditBox>
|
||
|
<EditBox name="ModifierBox" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="57" y="21" />
|
||
|
<Anchors>
|
||
|
<Anchor x="218" y="-62" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnEditFocusLost>
|
||
|
ModifierBox_OnEditFocusLost()
|
||
|
</OnEditFocusLost>
|
||
|
<OnEnter>
|
||
|
ModifierBox_OnEnter()
|
||
|
tooltip_OnEnter(ModifierBox, "This number is added after all dice are rolled")
|
||
|
</OnEnter>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
</EditBox>
|
||
|
<Button name="SavedRollButton1" inherits="UIPanelButtonTemplate" text="SavedRoll1">
|
||
|
<Size x="75" y="23" />
|
||
|
<Anchors>
|
||
|
<Anchor x="15" y="-88" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnClick>
|
||
|
SavedRollButton1_OnClick()
|
||
|
</OnClick>
|
||
|
</Scripts>
|
||
|
</Button>
|
||
|
<Button name="SavedRollButton2" inherits="UIPanelButtonTemplate" text="SavedRoll2">
|
||
|
<Size x="75" y="23" />
|
||
|
<Anchors>
|
||
|
<Anchor x="96" y="-88" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnClick>
|
||
|
SavedRollButton2_OnClick()
|
||
|
</OnClick>
|
||
|
<OnEnter>
|
||
|
SavedRollButton2_OnEnter()
|
||
|
</OnEnter>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
</Button>
|
||
|
<Button name="SavedRollButton3" inherits="UIPanelButtonTemplate" text="SavedRoll3">
|
||
|
<Size x="75" y="23" />
|
||
|
<Anchors>
|
||
|
<Anchor x="178" y="-88" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnClick>
|
||
|
SavedRollButton3_OnClick()
|
||
|
</OnClick>
|
||
|
</Scripts>
|
||
|
</Button>
|
||
|
<Button name="PrivateRollButton" inherits="UIPanelButtonTemplate" enableMouse="true" enableMouseClicks="true" text="P">
|
||
|
<Size x="22" y="23" />
|
||
|
<Anchors>
|
||
|
<Anchor x="259" y="-88" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnClick>
|
||
|
PrivateRollButton_OnClick()
|
||
|
</OnClick>
|
||
|
<OnEnter>
|
||
|
tooltip_OnEnter(PrivateRollButton, "Sends your rolls privately, only visible to yourself")
|
||
|
</OnEnter>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
<ButtonText font="Fonts\FRIZQT__.TTF">
|
||
|
<FontHeight val="12" />
|
||
|
<Color r="1" g="1" />
|
||
|
</ButtonText>
|
||
|
</Button>
|
||
|
<EditBox name="RollTypeBox" inherits="InputBoxTemplate" letters="20" autoFocus="false">
|
||
|
<Size x="74" y="21" />
|
||
|
<Anchors>
|
||
|
<Anchor x="281" y="-62" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnEnter>
|
||
|
RollTypeBox_OnEnter()
|
||
|
tooltip_OnEnter(RollTypeBox, "Adds a kind of 'tag' to the roll message, to describe what kind of roll you are making. I.E. an Attack or Defend")
|
||
|
</OnEnter>
|
||
|
<OnEditFocusLost>
|
||
|
RollTypeBox_OnEditFocusLost()
|
||
|
</OnEditFocusLost>
|
||
|
<OnLeave>
|
||
|
tooltip_OnLeave()
|
||
|
</OnLeave>
|
||
|
</Scripts>
|
||
|
</EditBox>
|
||
|
</Frames>
|
||
|
<Scripts>
|
||
|
<OnLoad inherit="prepend">
|
||
|
self:RegisterForDrag("LeftButton")
|
||
|
</OnLoad>
|
||
|
<OnDragStart>
|
||
|
self:StartMoving()
|
||
|
</OnDragStart>
|
||
|
<OnDragStop>
|
||
|
self:StopMovingOrSizing()
|
||
|
</OnDragStop>
|
||
|
<OnEvent>
|
||
|
self:RegisterEvent("CHAT_MSG_ADDON")
|
||
|
self:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||
|
DiceRollerFrame_OnEvent()
|
||
|
</OnEvent>
|
||
|
</Scripts>
|
||
|
</Frame>
|
||
|
<ScrollFrame inherits="UIPanelScrollFrameTemplate" hidden="true">
|
||
|
<Size x="605" y="389" />
|
||
|
<Anchors>
|
||
|
<Anchor x="473" y="-155" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Frames>
|
||
|
<Frame name="SavedDiceOptionsFrame1" inherits="BackdropTemplate">
|
||
|
<Size x="572" y="92" />
|
||
|
<Anchors>
|
||
|
<Anchor x="5" y="-41" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<KeyValues>
|
||
|
<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" keyType="string" type="global" />
|
||
|
</KeyValues>
|
||
|
<Layers>
|
||
|
<Layer level="OVERLAY">
|
||
|
<FontString name="SavedRollNameFont1" inherits="GameFontNormal" text="Name">
|
||
|
<Size x="39" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="10" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollCountFont1" inherits="GameFontNormal" text="Count">
|
||
|
<Size x="36" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="123" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollSidesFont1" inherits="GameFontNormal" text="Sides">
|
||
|
<Size x="35" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="229" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollModifierFont1" inherits="GameFontNormal" text="Modifier">
|
||
|
<Size x="55" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="335" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollTypeFont1" inherits="GameFontNormal" text="Tag">
|
||
|
<Size x="55" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="427" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
</Layer>
|
||
|
</Layers>
|
||
|
<Frames>
|
||
|
<EditBox name="SavedDiceCountBox1" inherits="InputBoxTemplate" numeric="true" autoFocus="false">
|
||
|
<Size x="100" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="123" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceNameEditBox1" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="92" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="10" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceSidesBox1" inherits="InputBoxTemplate" numeric="true" autoFocus="false">
|
||
|
<Size x="100" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="229" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceModifierBox1" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="86" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="335" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceRollTypeBox1" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="86" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="427" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
</Frames>
|
||
|
</Frame>
|
||
|
<Frame name="SavedDiceOptionsFrame2" inherits="BackdropTemplate">
|
||
|
<Size x="572" y="92" />
|
||
|
<Anchors>
|
||
|
<Anchor x="5" y="-139" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<KeyValues>
|
||
|
<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" keyType="string" type="global" />
|
||
|
</KeyValues>
|
||
|
<Layers>
|
||
|
<Layer level="OVERLAY">
|
||
|
<FontString name="SavedRollNameFont2" inherits="GameFontNormal" text="Name">
|
||
|
<Size x="39" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="10" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollCountFont2" inherits="GameFontNormal" text="Count">
|
||
|
<Size x="36" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="123" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollSidesFont2" inherits="GameFontNormal" text="Sides">
|
||
|
<Size x="35" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="229" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollModifierFont2" inherits="GameFontNormal" text="Modifier">
|
||
|
<Size x="55" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="335" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollTypeFont2" inherits="GameFontNormal" text="Tag">
|
||
|
<Size x="55" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="427" y="-40" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
</Layer>
|
||
|
</Layers>
|
||
|
<Frames>
|
||
|
<EditBox name="SavedDiceCountBox2" inherits="InputBoxTemplate" numeric="true" autoFocus="false">
|
||
|
<Size x="100" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="123" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceNameEditBox2" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="92" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="10" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceSidesBox2" inherits="InputBoxTemplate" numeric="true" autoFocus="false">
|
||
|
<Size x="100" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="229" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceModifierBox2" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="86" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="335" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceRollTypeBox2" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="86" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="427" y="-53" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
</Frames>
|
||
|
</Frame>
|
||
|
<Frame name="SavedDiceOptionsFrame3" inherits="BackdropTemplate">
|
||
|
<Size x="572" y="92" />
|
||
|
<Anchors>
|
||
|
<Anchor x="5" y="-236" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<KeyValues>
|
||
|
<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" keyType="string" type="global" />
|
||
|
</KeyValues>
|
||
|
<Layers>
|
||
|
<Layer level="OVERLAY">
|
||
|
<FontString name="SavedRollNameFont3" inherits="GameFontNormal" text="Name">
|
||
|
<Size x="39" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="10" y="-31" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollCountFont3" inherits="GameFontNormal" text="Count">
|
||
|
<Size x="36" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="123" y="-31" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollSidesFont3" inherits="GameFontNormal" text="Sides">
|
||
|
<Size x="35" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="229" y="-31" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollModifierFont3" inherits="GameFontNormal" text="Modifier">
|
||
|
<Size x="55" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="335" y="-31" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
<FontString name="SavedRollTypeFont3" inherits="GameFontNormal" text="Tag">
|
||
|
<Size x="55" y="20" />
|
||
|
<Anchors>
|
||
|
<Anchor x="427" y="-31" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</FontString>
|
||
|
</Layer>
|
||
|
</Layers>
|
||
|
<Frames>
|
||
|
<EditBox name="SavedDiceCountBox3" inherits="InputBoxTemplate" numeric="true" autoFocus="false">
|
||
|
<Size x="100" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="123" y="-44" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceNameEditBox3" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="92" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="10" y="-44" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceSidesBox3" inherits="InputBoxTemplate" numeric="true" autoFocus="false">
|
||
|
<Size x="100" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="229" y="-44" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceModifierBox3" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="86" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="335" y="-44" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
<EditBox name="SavedDiceRollTypeBox3" inherits="InputBoxTemplate" autoFocus="false">
|
||
|
<Size x="86" y="32" />
|
||
|
<Anchors>
|
||
|
<Anchor x="427" y="-44" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
</EditBox>
|
||
|
</Frames>
|
||
|
</Frame>
|
||
|
<Button name="SavedRollsSaveButton" inherits="UIPanelButtonTemplate" text="Save">
|
||
|
<Size x="75" y="23" />
|
||
|
<Anchors>
|
||
|
<Anchor x="20" y="-346" point="TOPLEFT" />
|
||
|
</Anchors>
|
||
|
<Scripts>
|
||
|
<OnClick>
|
||
|
SavedRollsSaveButton_OnClick()
|
||
|
</OnClick>
|
||
|
</Scripts>
|
||
|
</Button>
|
||
|
</Frames>
|
||
|
<Scripts>
|
||
|
<OnLoad inherit="append">
|
||
|
self.name = "Alex's Dice Bag"
|
||
|
InterfaceOptions_AddCategory(self)
|
||
|
</OnLoad>
|
||
|
<OnVerticalScroll>
|
||
|
ScrollFrame1_OnVerticalScroll()
|
||
|
</OnVerticalScroll>
|
||
|
</Scripts>
|
||
|
</ScrollFrame>
|
||
|
<GameTooltip inherits="GameTooltipTemplate" />
|
||
|
</Ui>
|