355 lines
15 KiB
XML
Executable File
355 lines
15 KiB
XML
Executable File
<?xml-model href="UI.xsd" ?>
|
|
<Ui xmlns="http://www.blizzard.com/wow/ui/"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
>
|
|
<Button name="Poker_TableBrowserHeader" virtual="true">
|
|
<Scripts>
|
|
<OnClick>
|
|
Poker_TableBrowser.SortTables(self:GetID())
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
|
|
</OnClick>
|
|
<OnEnter>
|
|
getglobal(self:GetName().."BG"):SetVertexColor(1, 1, 1, 1)
|
|
</OnEnter>
|
|
<OnLeave>
|
|
getglobal(self:GetName().."BG"):SetVertexColor(0.7, 0.7, 0.7, 0.7)
|
|
</OnLeave>
|
|
<OnLoad>
|
|
self:GetScript("OnLeave")(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
<ButtonText>
|
|
<Anchors>
|
|
<Anchor point="LEFT">
|
|
<Offset>
|
|
<AbsDimension x="4" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</ButtonText>
|
|
<NormalFont style="GameFontHighlight"/>
|
|
<HighlightFont style="GameFontNormal"/>
|
|
<NormalTexture name="$parentBG">
|
|
<Color r="0.4" g="0.4" b="0.4" a="0.4"/>
|
|
</NormalTexture>
|
|
</Button>
|
|
<Button name="Poker_TableBrowserEntry" hidden="true" virtual="true">
|
|
<Size>
|
|
<AbsDimension x="328" y="24"/>
|
|
</Size>
|
|
<Layers>
|
|
<Layer>
|
|
<FontString name="$parentName" justifyH="LEFT"
|
|
inherits="GameFontNormalSmall">
|
|
<Size>
|
|
<AbsDimension x="138" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT">
|
|
<Offset>
|
|
<AbsDimension x="4" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
<FontString name="$parentHost" justifyH="LEFT"
|
|
inherits="GameFontNormalSmall">
|
|
<Size>
|
|
<AbsDimension x="80" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentName"/>
|
|
</Anchors>
|
|
</FontString>
|
|
<FontString name="$parentPlayers" justifyH="LEFT"
|
|
inherits="GameFontNormalSmall">
|
|
<Size>
|
|
<AbsDimension x="50" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentHost"/>
|
|
</Anchors>
|
|
</FontString>
|
|
<FontString name="$parentBlinds" justifyH="LEFT"
|
|
inherits="GameFontNormalSmall">
|
|
<Size>
|
|
<AbsDimension x="60" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT"
|
|
relativeTo="$parentPlayers"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
getglobal(self:GetName().."BG"):Hide()
|
|
</OnLoad>
|
|
<OnClick>
|
|
if not Poker_TableBrowser.IsSelected(self:GetID()) then
|
|
Poker_TableBrowser.SelectEntry(self:GetID())
|
|
end
|
|
</OnClick>
|
|
<OnDoubleClick>
|
|
Poker_TableBrowser.JoinSelectedTable()
|
|
</OnDoubleClick>
|
|
<OnEnter>
|
|
getglobal(self:GetName().."BG"):Show()
|
|
</OnEnter>
|
|
<OnLeave>
|
|
if not Poker_TableBrowser.IsSelected(self:GetID()) then
|
|
getglobal(self:GetName().."BG"):Hide()
|
|
end
|
|
</OnLeave>
|
|
</Scripts>
|
|
<NormalTexture name="$parentBG">
|
|
<Color r="0" g="0" b="0.5" a="0.25"/>
|
|
</NormalTexture>
|
|
</Button>
|
|
<Frame name="Poker_TableBrowser" parent="UIParent" hidden="false" movable="true" enableMouse="true" clampedToScreen="true">
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:RegisterForDrag("LeftButton")
|
|
self:SetUserPlaced(1)
|
|
</OnLoad>
|
|
<OnDragStart>
|
|
self:StartMoving()
|
|
</OnDragStart>
|
|
<OnDragStop>
|
|
self:StopMovingOrSizing()
|
|
</OnDragStop>
|
|
</Scripts>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="CENTER">
|
|
<Offset>
|
|
<AbsDimension x="200" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Size>
|
|
<AbsDimension x="384" y="350"/>
|
|
</Size>
|
|
<KeyValues>
|
|
<KeyValue key="backdropInfo" value="BACKDROP_DARK_DIALOG_32_32" type="global"/>
|
|
<KeyValue key="backdropColor" value="BLACK" type="global"/>
|
|
<KeyValue key="backdropBorderColor" value="WHITE" type="global"/>
|
|
</KeyValues>
|
|
<Layers>
|
|
<Layer level="BORDER">
|
|
<Texture parentKey="TopLeft" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="-3" y="3"/>
|
|
</Anchors>
|
|
</Texture>
|
|
<Texture parentKey="TopRight" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" x="3" y="3"/>
|
|
</Anchors>
|
|
<TexCoords left="1" right="0" top="0" bottom="1"/>
|
|
</Texture>
|
|
<Texture parentKey="BottomLeft" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT" x="-3" y="-3"/>
|
|
</Anchors>
|
|
<TexCoords left="0" right="1" top="1" bottom="0"/>
|
|
</Texture>
|
|
<Texture parentKey="BottomRight" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT" x="3" y="-3"/>
|
|
</Anchors>
|
|
<TexCoords left="1" right="0" top="1" bottom="0"/>
|
|
</Texture>
|
|
|
|
<Texture parentKey="Top" parentArray="Textures" file="Interface\Common\ThinBorder2-Top">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="TOPRIGHT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMLEFT"/>
|
|
</Anchors>
|
|
</Texture>
|
|
<Texture parentKey="Bottom" parentArray="Textures" file="Interface\Common\ThinBorder2-Top">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPRIGHT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="BOTTOMLEFT"/>
|
|
</Anchors>
|
|
<TexCoords left="0" right="1" top="1" bottom="0"/>
|
|
</Texture>
|
|
|
|
<Texture parentKey="Left" parentArray="Textures" file="Interface\Common\ThinBorder2-Left">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomLeft" relativePoint="TOPRIGHT"/>
|
|
</Anchors>
|
|
</Texture>
|
|
<Texture parentKey="Right" parentArray="Textures" file="Interface\Common\ThinBorder2-Left">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.TopRight" relativePoint="BOTTOMLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="TOPRIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="1" right="0" top="0" bottom="1"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<Texture name="$parentTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
|
|
<Size>
|
|
<AbsDimension x="375" y="64"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="TOP">
|
|
<Offset>
|
|
<AbsDimension x="0" y="12"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Texture>
|
|
<FontString inherits="GameFontNormal" text="POKER_BROWSER_TITLE">
|
|
<Anchors>
|
|
<Anchor point="TOP" relativeTo="$parentTitle">
|
|
<Offset>
|
|
<AbsDimension x="0" y="-14"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button name="$parentClose" text="POKER_BROWSER_CLOSE"
|
|
inherits="UIPanelButtonTemplate">
|
|
<Size>
|
|
<AbsDimension x="64" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="BOTTOM">
|
|
<Offset>
|
|
<AbsDimension x="0" y="15"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
self:GetParent():Hide()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Frame name="$parentTableList">
|
|
<Size>
|
|
<AbsDimension x="354" y="225"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="TOP">
|
|
<Offset>
|
|
<AbsDimension x="0" y="-26"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="BORDER">
|
|
<Texture parentKey="TopLeft" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="-3" y="3"/>
|
|
</Anchors>
|
|
</Texture>
|
|
<Texture parentKey="TopRight" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" x="3" y="3"/>
|
|
</Anchors>
|
|
<TexCoords left="1" right="0" top="0" bottom="1"/>
|
|
</Texture>
|
|
<Texture parentKey="BottomLeft" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT" x="-3" y="-3"/>
|
|
</Anchors>
|
|
<TexCoords left="0" right="1" top="1" bottom="0"/>
|
|
</Texture>
|
|
<Texture parentKey="BottomRight" parentArray="Textures" file="Interface\Common\ThinBorder2-Corner">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT" x="3" y="-3"/>
|
|
</Anchors>
|
|
<TexCoords left="1" right="0" top="1" bottom="0"/>
|
|
</Texture>
|
|
|
|
<Texture parentKey="Top" parentArray="Textures" file="Interface\Common\ThinBorder2-Top">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="TOPRIGHT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMLEFT"/>
|
|
</Anchors>
|
|
</Texture>
|
|
<Texture parentKey="Bottom" parentArray="Textures" file="Interface\Common\ThinBorder2-Top">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPRIGHT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="BOTTOMLEFT"/>
|
|
</Anchors>
|
|
<TexCoords left="0" right="1" top="1" bottom="0"/>
|
|
</Texture>
|
|
|
|
<Texture parentKey="Left" parentArray="Textures" file="Interface\Common\ThinBorder2-Left">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomLeft" relativePoint="TOPRIGHT"/>
|
|
</Anchors>
|
|
</Texture>
|
|
<Texture parentKey="Right" parentArray="Textures" file="Interface\Common\ThinBorder2-Left">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeKey="$parent.TopRight" relativePoint="BOTTOMLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="TOPRIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="1" right="0" top="0" bottom="1"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button inherits="Poker_TableBrowserHeader" name="$parentHeaderName" id="1"
|
|
text="POKER_BROWSER_NAME">
|
|
<Size>
|
|
<AbsDimension x="138" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="4" y="-4"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Button>
|
|
<Button inherits="Poker_TableBrowserHeader" name="$parentHeaderHost" id="2"
|
|
text="POKER_BROWSER_HOST">
|
|
<Size>
|
|
<AbsDimension x="90" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentHeaderName"/>
|
|
</Anchors>
|
|
</Button>
|
|
<Button inherits="Poker_TableBrowserHeader" name="$parentHeaderPlayers" id="3"
|
|
text="POKER_BROWSER_PLAYERS">
|
|
<Size>
|
|
<AbsDimension x="50" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentHeaderHost"/>
|
|
</Anchors>
|
|
</Button>
|
|
<Button inherits="Poker_TableBrowserHeader" name="$parentHeaderBlinds" id="5"
|
|
text="POKER_BROWSER_BLINDS">
|
|
<Size>
|
|
<AbsDimension x="50" y="24"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT"
|
|
relativeTo="$parentHeaderPlayers"/>
|
|
</Anchors>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
</Ui> |