Thread Tools Display Modes
05-27-09, 10:19 PM   #1
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
UI not hiding when its supposed to.

So i just noticed that all of my interface that i did in XML does not hide when i hit the hot key for hide interface. ctrl-z or x or what ever its default is....

piece of code that they all need to have to hide them or what?
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
05-27-09, 10:49 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Did you try Alt Z as well .. I can never remember the correct key combination so end up doing both.

If not, I am assuming that combo hides the UIParent which means anything that it is a parent for should be hidden and so forth down the chain. I apologise if I am wrong and would love to know what it does do if that isn't the case.

The only thing I can think of at the top of my head that would cause it to not do it is if the parents of your frames are not UIParent.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
05-27-09, 11:12 PM   #3
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
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>
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
05-27-09, 11:17 PM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Well looking at some of the tutorials on wowwiki maybe UIParent is assumed so scratch that option. All of my addons are pure lua coding so I am not totally knowledgeable about the xml side of things.

Perhaps someone else can confirm that your code is fine.

What you can do though is test a simple addon that is out there and see if that is similarly afflicted. If it works fine with that then use that to work your addon functionality on and maybe it will work this time.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
05-27-09, 11:24 PM   #5
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
right now my UI consists of both lua and xml. my lua frames hide like they should. Like i said im learning but one thing i noticed is xml and lua are pretty much the same xml is just structured different and starts with /commands rather then just starting out with straight script code. The script code though is the same. I cut and past stuff from xml to lua and vice averse all the time and get the desired affect for the most part. i saw a website that has a converter somewhere to but i have not tried it yet i hear its kinda sloppy on its conversions though.

anyhoo well hopefully someone sees it and notices whats wrong. in the meantime im going to study what that hide command actually says and see if i can fix it by understanding that more.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
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
05-28-09, 04:31 AM   #7
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
I have that top junk, i do see something that might make the difference.

parent="UIParent" in the main frame creation tag. I dont have that hehe maybe thats why. Ill test it in the morning
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
05-28-09, 05:30 AM   #8
Tristanian
Andúril
Premium Member
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 279
It is that. You are not parenting your frame to UIParent in your xml code, so that it can be hidden when using Alt-Z (which essentially hides the UIParent and obviously all of its child frames).
__________________
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » UI not hiding when its supposed to.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off