View Single Post
05-28-09, 12:02 AM   #6
Samsan
An Aku'mai Servant
 
Samsan's Avatar
Join Date: May 2009
Posts: 33
Wink XML could be missing

Originally Posted by Grimsin View Post
im pretty sure i put UIparent as the main anchors. when i hit alt-WhatEverButtonItIs everything except for the things controlled by the xml's i have written, hide. also just noticed, any time a video plays my UI pieces stay visible lol. was kinda cool having the main button for my UI smack dab in the middle of the screen for a video quest finish lol. Not cool enough to leave it that way though. lol. pulling some of my code right now and pasting it.

all my anchor tags say UIparent but as i am just learning lua and xml it could be wrong or missing something.

Code:
<Frame name="GrimUIcoreArtB1" frameStrata="BACKGROUND" frameLevel="0">
    <Size>
      <AbsDimension x="300" y="152" />
    </Size>
    <Anchors>
      <Anchor point="BOTTOMLEFT" relativeTo="UIParent">
        <Offset>
          <AbsDimension x="0" y="0" />
        </Offset>
      </Anchor>
    </Anchors>
    <Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Bottom1">
      <BackgroundInsets>
        <AbsInset left="0" right="0" top="0" bottom="0" />
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="0" />
      </TileSize>
      <EdgeSize>
        <AbsValue val="0" />
      </EdgeSize>
    </Backdrop>
  </Frame>
Hey there, I am no expert but I use xml frames and have my share of hassles.. Is the above only a part of the xml or is it the whole deal? If its the whole deal, then you're missing heaps...The top of the xml should look something like this.
Code:
<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/
..\FrameXML\UI.xsd"> 

  <Frame name="MyModFrame" alpha="0.9" hidden="true" movable="true" resizable="true" parent="UIParent" toplevel="true" enableMouse="true">
    <Size>
      <AbsDimension x="768" y="514" />
    </Size>
Keep in mind though that the main aspects of the frame don't necisarily have to have the alpha, resize, or movable. Hidden just says hidden in the beginning and shows when called. Hope that helped.
__________________
To give is to receive so the more that you give the more that you receive.
  Reply With Quote