vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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/
                        C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">


  <Frame name="LazyRogueAboutFrame" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true">
    <Size>
      <AbsDimension x="500" y="430"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER"/>
    </Anchors>

    <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground"
              edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <EdgeSize>
        <AbsValue val="32"/>
      </EdgeSize>
      <TileSize>
        <AbsValue val="32"/>
      </TileSize>
      <BackgroundInsets>
        <AbsInset left="5" right="5" top="5" bottom="5"/>
      </BackgroundInsets>
    </Backdrop>

    <Layers>
      <Layer level="ARTWORK">

        <FontString name="$parentTitle" inherits="GameFontHighlightLarge" justifyH="CENTER" text="">
          <Size>
            <AbsDimension x="400" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
              <Offset>
                <AbsDimension x="25" y="-20"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

      </Layer>
    </Layers>

    <Frames>


      <ScrollFrame name="LazyRogueAboutScrollFrame" inherits="UIPanelScrollFrameTemplate">
        <Size>
          <AbsDimension x="450" y="316"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="15" y="-70"/>
            </Offset>
          </Anchor>
        </Anchors>

        <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground"
                  edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true" alpha="1.0">
          <EdgeSize>
            <AbsValue val="8"/>
          </EdgeSize>
          <TileSize>
            <AbsValue val="8"/>
          </TileSize>
          <BackgroundInsets>
            <AbsInset left="0" right="0" top="0" bottom="0"/>
          </BackgroundInsets>
        </Backdrop>

        
        <ScrollChild>
          <Frame name="$parentScrollChild">
            <Size>
              <AbsDimension x="435" y="305"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                <Offset>
                  <AbsDimension x="5" y="-5"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Frames>


              <EditBox name="LazyRogueAboutFrameForm" letters="7000" enableMouse="true" autoFocus="true" multiLine="true">
                <Size>
                  <AbsDimension x="435" y="305"/>
                </Size>
                <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                    <Offset>
                      <AbsDimension x="5" y="-5"/>
                    </Offset>
                  </Anchor>
                </Anchors>
                
                <Scripts>
                  <OnEscapePressed>
                    HideUIPanel(LazyRogueAboutFrame)
                  </OnEscapePressed>
                  <OnEnterPressed>
                    HideUIPanel(LazyRogueAboutFrame)
                  </OnEnterPressed>
                  <OnClick>
                    this:SetFocus()
                  </OnClick>
                  <OnShow>
                    LAZYROGUEHELP_SCROLLBAR_HACK4 = false
                  </OnShow>
                  <OnMouseUp>
                    LAZYROGUEHELP_SCROLLBAR_HACK4 = true
                  </OnMouseUp>
                  <OnTextChanged>
                    ScrollingEdit_OnTextChanged(LazyRogueAboutScrollFrame)
                  </OnTextChanged>
                  <OnCursorChanged>
                    ScrollingEdit_OnCursorChanged(arg1, arg2-10, arg3, arg4)
                  </OnCursorChanged>
                  <OnUpdate>
                    if (LAZYROGUEHELP_SCROLLBAR_HACK4) then
                       ScrollingEdit_OnUpdate(LazyRogueAboutScrollFrame)
                    end
                  </OnUpdate>
                  
                </Scripts>
                <FontString inherits="GameFontHighlight"/>
                <Color r=".2" g=".2" b=".2" /> 
              </EditBox>

            </Frames>
          </Frame>
        </ScrollChild>
        <Scripts>
          <OnClick>
            LazyRogueAboutFrameForm:SetFocus()
          </OnClick>
        </Scripts>
      </ScrollFrame>            
      
      <Button name="$parentOkayButton" inherits="GameMenuButtonTemplate" text="Okay">
        <Size>
          <AbsDimension x="100" y="25"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-10" y="10"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            HideUIPanel(LazyRogueAboutFrame)
          </OnClick>
        </Scripts>
      </Button>

    </Frames>

    <Scripts>
      <OnShow>
        lazyr.about.OnShow()
      </OnShow>
      <OnHide>
        lazyr.about.OnHide()
      </OnHide>
      <OnLoad>
        this:RegisterForDrag("LeftButton")
      </OnLoad>
      <OnDragStart>
        this:StartMoving()
      </OnDragStart>
      <OnDragStop>
        this:StopMovingOrSizing()
      </OnDragStop>
      <OnMouseUp>
        this:StopMovingOrSizing()
      </OnMouseUp>
    </Scripts>

  </Frame>

</Ui>