Thread Tools Display Modes
03-01-09, 09:45 PM   #1
Erina29
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 12
frame XML---> LUA

Kikoo.

I can not make a frame that I had in xml.

If anyone can help me. (I know this is probably simple but I do it.

Thank you
Attached Files
File Type: lua LFE.lua (1.0 KB, 757 views)
File Type: xml LFE.xml (106 Bytes, 1716 views)
  Reply With Quote
03-01-09, 09:52 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
What exactly is the problem you are having with it?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-01-09, 09:56 PM   #3
Erina29
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 12
I would like to display the frame to the screen.

I do not know how to lua.
  Reply With Quote
03-01-09, 09:59 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
So, your frame does not appear at the top left of your screen? I don't see anything wrong with your code - nothing that's catching my eye, at least. Are you getting any errors in-game? Try this to place your frame to see if it makes any difference (though I don't see why it should):

Code:
frame:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 10, -10)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-01-09, 10:44 PM   #5
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Are you sure that your code is even running at all? Have you tried putting a
Code:
message("i work")
in there somewhere to make sure? Your .xml file is just an empty <ui> tag, so that won't do anything. What does your .toc look like?

Last edited by Akryn : 03-01-09 at 10:47 PM.
  Reply With Quote
03-02-09, 07:55 AM   #6
ZikO
An Aku'mai Servant
Join Date: Jun 2008
Posts: 36
can u see your AddOn in LoadAddon list once you've logged to the game and clicked on it?

To be honest. I copied your file into LFE folder, made LFE.toc file which looks like below
Code:
## Interface: 30000
## Title: LFE
## Author:  ZikO
## Notes:  LFE Test
LFE.lua
run the game and ur frame appeared without any problem, it looked like this:

Last edited by ZikO : 03-02-09 at 08:09 AM.
  Reply With Quote
03-02-09, 08:51 AM   #7
Erina29
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 12
Wink

Thanks.

The files.toc was not good...
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » frame XML---> LUA


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