<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> |
<Script file="WoWForums.lua" /> |
<!-- vertical slider for scrollframe template --> |
<Slider name="WoWForumFrameSliderTemplate" virtual="true" orientation="VERTICAL" minValue="0" maxValue="100" defaultValue="0" valueStep="1"> |
<Size x="25" y="0"/> |
<ThumbTexture name="WoWForumCategoryFrameSliderThumbTexture" file="Interface\Buttons\UI-ScrollBar-Knob"> |
<Size x="25" y="25" /> |
</ThumbTexture> |
<Frames> |
<Button name="WoWForumCategoryFrameSliderScrollUpButton" inherits="UIPanelScrollUpButtonTemplate"> |
<Anchors> |
<Anchor point="BOTTOM" relativePoint="TOP"/> |
</Anchors> |
<Scripts> |
<OnClick> |
local parent = self:GetParent(); |
parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2)); |
PlaySound("UChatScrollButton"); |
</OnClick> |
</Scripts> |
</Button> |
<Button name="WoWForumCategoryFrameSliderScrollDownButton" inherits="UIPanelScrollDownButtonTemplate"> |
<Anchors> |
<Anchor point="TOP" relativePoint="BOTTOM"/> |
</Anchors> |
<Scripts> |
<OnClick> |
local parent = self:GetParent(); |
parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2)); |
PlaySound("UChatScrollButton"); |
</OnClick> |
</Scripts> |
</Button> |
</Frames> |
</Slider> |
<Frame name="WoWForumMainFrame" parent="UIParent" toplevel="true" movable="true" enableMouse="true" frameStrata="MEDIUM"> |
<Size> |
<AbsDimension x="1024" y="692" /> |
</Size> |
<Anchors> |
<Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT"> |
<Offset x="0" y="0" /> |
</Anchor> |
</Anchors> |
<Layers> |
<Layer> |
<Texture name="WoWForumTextureTopLeft" file="Interface\AddOns\WoWForums\Images\WoWForumMainTopLeft"> |
<Size x="512" y="512" /> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumMainFrame" relativePoint="TOPLEFT"> |
<Offset x="0" y="0" /> |
</Anchor> |
</Anchors> |
</Texture> |
<Texture name="WoWForumTextureTopRight" file="Interface\AddOns\WoWForums\Images\WoWForumMainTopRight"> |
<Size x="512" y="512" /> |
<Anchors> |
<Anchor point="TOPRIGHT" relativeTo="WoWForumMainFrame" relativePoint="TOPRIGHT"> |
<Offset x="0" y="0" /> |
</Anchor> |
</Anchors> |
</Texture> |
<Texture name="WoWForumTextureBottomRight" file="Interface\AddOns\WoWForums\Images\WoWForumMainBottomRight"> |
<Size x="512" y="256" /> |
<Anchors> |
<Anchor point="TOPRIGHT" relativeTo="WoWForumMainFrame" relativePoint="TOPRIGHT"> |
<Offset x="0" y="-512" /> |
</Anchor> |
</Anchors> |
</Texture> |
<Texture name="WoWForumTextureBottomLeft" file="Interface\AddOns\WoWForums\Images\WoWForumMainBottomLeft"> |
<Size x="512" y="256" /> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumMainFrame" relativePoint="TOPLEFT"> |
<Offset x="0" y="-512" /> |
</Anchor> |
</Anchors> |
</Texture> |
</Layer> |
<Layer level="OVERLAY"> |
<FontString name="$parentLabelTitle" inherits="GameFontNormal" text="WoWForum"> |
<Size x="200" y="25" /> |
<Anchors> |
<Anchor point="TOP" relativeTo="WoWForumMainFrame" relativePoint="TOP"> |
<Offset x="0" y="-12" /> |
</Anchor> |
</Anchors> |
</FontString> |
</Layer> |
</Layers> |
|
<Frames> |
<!-- top left box contains the forum categories --> |
<Frame name="WoWForumCategoryFrame" parent="WoWForumMainFrame" frameStrata="MEDIUM"> |
<Size x="300" y="300"/> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumMainFrame" relativePoint="TOPLEFT"> |
<Offset x="20" y="-70" /> |
</Anchor> |
</Anchors> |
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
<Color b="0.0" g="0.0" r="0.0"/> |
</Backdrop> |
</Frame> |
|
<!-- bottom box contains the topic replys --> |
<Frame name="WoWForumReplyFrame" parent="WoWForumMainFrame" frameStrata="MEDIUM"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumCategoryFrame" relativePoint="BOTTOMLEFT"> |
<Offset x="0" y="0" /> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumMainFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-10" y="25"/> |
</Anchor> |
<Anchor point="BOTTOMLEFT" relativeTo="WoWForumMainFrame" relativePoint="BOTTOMLEFT"> |
<Offset x="15" y="25" /> |
</Anchor> |
</Anchors> |
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
<Color b="0.0" g="0.0" r="0.0"/> |
</Backdrop> |
</Frame> |
|
<!-- top right box contains the forum topics --> |
<Frame name="WoWForumTopicFrame" parent="WoWForumMainFrame" frameStrata="MEDIUM"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumCategoryFrame" relativePoint="TOPRIGHT" /> |
<Anchor point="BOTTOMLEFT" relativeTo="WoWForumCategoryFrame" relativePoint="BOTTOMRIGHT" /> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumReplyFrame" relativePoint="TOPRIGHT"/> |
</Anchors> |
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
<Color b="0.0" g="0.0" r="0.0"/> |
</Backdrop> |
</Frame> |
|
<!-- the scrollframe for the category frame --> |
<ScrollFrame name="WoWForumScrollFrameCategory" parent="WoWForumCategoryFrame" frameStrata="MEDIUM"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumCategoryFrame" relativePoint="TOPLEFT"> |
<Offset x="10" y="-10"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumCategoryFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-30" y="10"/> |
</Anchor> |
</Anchors> |
<ScrollChild> |
<Frame name="$parentChild" parent="WoWForumScrollFrameCategory" frameStrata="MEDIUM"> |
<Scripts> |
<OnLoad> |
self:SetWidth(WoWForumScrollFrameCategory:GetWidth()) |
</OnLoad> |
</Scripts> |
</Frame> |
</ScrollChild> |
</ScrollFrame> |
|
<!-- the scrollframe for the topic frame --> |
<ScrollFrame name="WoWForumScrollFrameTopic" parent="WoWForumTopicFrame" frameStrata="MEDIUM"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumTopicFrame" relativePoint="TOPLEFT"> |
<Offset x="10" y="-10"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumTopicFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-30" y="10"/> |
</Anchor> |
</Anchors> |
<ScrollChild> |
<Frame name="$parentChild" parent="WoWForumScrollFrameTopic" frameStrata="MEDIUM"> |
<Scripts> |
<OnLoad> |
self:SetWidth(WoWForumScrollFrameTopic:GetWidth()) |
</OnLoad> |
</Scripts> |
</Frame> |
</ScrollChild> |
</ScrollFrame> |
|
<!-- the scrollframe for the reply frame --> |
<ScrollFrame name="WoWForumScrollFrameReply" parent="WoWForumReplyFrame" frameStrata="MEDIUM"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="WoWForumReplyFrame" relativePoint="TOPLEFT"> |
<Offset x="10" y="-10"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumReplyFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-30" y="10"/> |
</Anchor> |
</Anchors> |
<ScrollChild> |
<Frame name="$parentChild" setAllPoints="true" parent="WoWForumScrollFrameReply" frameStrata="MEDIUM"> |
<Scripts> |
<OnLoad> |
self:SetWidth(WoWForumScrollFrameReply:GetWidth()) |
</OnLoad> |
</Scripts> |
</Frame> |
</ScrollChild> |
</ScrollFrame> |
|
<!-- vertical scroll for category --> |
<Slider name="WoWForumCategoryFrameSlider" parent="WoWForumCategoryFrame" inherits="WoWForumFrameSliderTemplate"> |
<Anchors> |
<Anchor point="TOPRIGHT" relativeTo="WoWForumCategoryFrame" relativePoint="TOPRIGHT"> |
<Offset x="-5" y="-25"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumCategoryFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-5" y="25"/> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnValueChanged> |
</OnValueChanged> |
</Scripts> |
</Slider> |
|
<!-- vertical scroll for topics --> |
<Slider name="WoWForumTopicFrameSlider" parent ="WoWForumTopicFrame" inherits="WoWForumFrameSliderTemplate"> |
<Anchors> |
<Anchor point="TOPRIGHT" relativeTo="WoWForumTopicFrame" relativePoint="TOPRIGHT"> |
<Offset x="-5" y="-25"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumTopicFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-5" y="25"/> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnValueChanged> |
</OnValueChanged> |
</Scripts> |
</Slider> |
|
<!-- vertical scroll for replys --> |
<Slider name="WoWForumReplyFrameSlider" parent ="WoWForumReplyFrame" inherits="WoWForumFrameSliderTemplate"> |
<Anchors> |
<Anchor point="TOPRIGHT" relativeTo="WoWForumReplyFrame" relativePoint="TOPRIGHT"> |
<Offset x="-5" y="-25"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativeTo="WoWForumReplyFrame" relativePoint="BOTTOMRIGHT"> |
<Offset x="-5" y="25"/> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnValueChanged> |
</OnValueChanged> |
</Scripts> |
</Slider> |
</Frames> |
</Frame> |
</Ui> |