WoW:Making Draggable Frames: Difference between revisions

m
no edit summary
mNo edit summary
Line 1: Line 1:
{{UIHowTo}}
{{wow/uihowto}}
Draggable frames can be moved by having the user hold down a mouse button over the frame, then move the mouse to reposition the frame. This HOWTO describes how to make a frame draggable.
Draggable frames can be moved by having the user hold down a mouse button over the frame, then move the mouse to reposition the frame. This HOWTO describes how to make a frame draggable.


Line 19: Line 19:
   <nowiki><!-- Tags below add a visual element to the frame. --></nowiki>
   <nowiki><!-- Tags below add a visual element to the frame. --></nowiki>
   <Layers>
   <Layers>
   <Layer level="ARTWORK">
   &lt;Layer level="ARTWORK">
    <Texture setAllPoints="true">
<nowiki> </nowiki>  <Texture setAllPoints="true">
    <Color r="1.0" g="0.5" b="0.0" a="0.5" />
<nowiki> </nowiki>  <Color r="1.0" g="0.5" b="0.0" a="0.5" />
    </Texture>
<nowiki>  </Texture>
   </Layer>
   </Layer>
   </Layers>
   </Layers>
   <Size x="64" y="64" />
   </nowiki><Size x="64" y="64" />
  <Anchors><Anchor point="CENTER" relativeTo="UIParent"/></Anchors>
<nowiki> </nowiki><Anchors><Anchor point="CENTER" relativeTo="UIParent"/></Anchors>
  </Frame>
  </Frame>
  </Ui>
  </Ui>
Line 72: Line 72:
   <nowiki><!-- Tags below add a visual element to the frame. --></nowiki>
   <nowiki><!-- Tags below add a visual element to the frame. --></nowiki>
   <Layers>
   <Layers>
   <Layer level="ARTWORK">
   &lt;Layer level="ARTWORK">
    <Texture setAllPoints="true">
<nowiki> </nowiki>  <Texture setAllPoints="true">
    <Color r="1.0" g="0.5" b="0.0" a="0.5" />
<nowiki> </nowiki>  <Color r="1.0" g="0.5" b="0.0" a="0.5" />
    </Texture>
<nowiki>  </Texture>
  </Layer>
    </Layer>
  </Layers>
  </Layers>
  <Anchors><Anchor point="CENTER" relativeTo="UIParent"/></Anchors>
  </nowiki><Anchors><Anchor point="CENTER" relativeTo="UIParent"/></Anchors>
  </Frame>
  </Frame>