sending/showing information to frame
hello,
i made a frame which has a background and 1 active button i can send information using out function . but it send them to chat window how can i send inofrmation or just showing texts into my main frame area ? hope i'm clear and this is the right section to post this thank you for your help |
You would need a FontString in your frame to display text.
Can you list your code? |
//this site is mian source : http://fara.webeddie.com/frames/
AD.xml :: Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" AD.lua : Code:
function out(text) thank you :) |
So what is this addon supposed to do?
|
i understand your asking
the aim of this addon is not to do somthing but simmply understand how addons work it's just a way of learning so if you have any idea to make me understad how send texts or infomations to this frame , well it would be appreciated :) |
i think one solution could be
make a frame using lua functions : CreateFrame(..) |
IMO, get rid of the fontsring creation in XML and replace it with this (put it in your OnLoad function):
Code:
local fstring = AD1:CreateFontString() |
done,but how sending information to show in this frame from any function ??
|
well it seems that in lua , when you declare in a function a varialbe, it could be reached by any other function; hmmm well i called
fstring:SetText("this is some text") from another function and it worked, hmmm :cool: |
All times are GMT -6. The time now is 07:07 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI