Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-12-11, 08:00 AM   #1
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
Few XML/LUA questions

Hello,

I have few questions I gathered, which I couldn't find answers to. I hope someone here will be able to assist me

1. I want to use local functions properly, in order to save memory.
If I'm declaring a local frame and having all my functions declared as myFrame:myFunc(), will they be local as well? Is it a good practice for saving memory?

2. I want to make a dropdown checkbutton list, which will have only one valid option at a time. Meaning, when I choose an option, the previous option will be unchecked. So I though of doing so using the initialize function, setting the "checked" flag. However, it seems to be updated only when I close and open the dropdown list. Until then, I get more than one option selected. How can I make a dropdown with one selected option which is not closed when selecting an option? I managed do both separately, but not together...

3. The dropdown list has a text that I can set using "UIDropDownMenu_SetText". How can I set the font and font size of this text? I coudn't find any function to do so.

Thanks in advance!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Few XML/LUA questions


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