WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   using the same frame over and over again? (https://www.wowinterface.com/forums/showthread.php?t=1139)

flyt 06-29-05 03:54 PM

using the same frame over and over again?
 
so, i'm wondering how i can make a button working like a tab, so that when you click it all new for example buttons will appear, and the others will disappear.

guess i kinda want to know how to make something kinda like the cosmos config frame, a list with addons, and when you click you get you get options for only that addon.

so pretty much, How do you change the frame layout with the click of a button?

i'm very new to xml, but i thought maybe you could put all the buttons/checkboxes/texts in the window, and then when you click a button to change "tab" it would do something like;

Code:

if (id == "2") then
button1:Hide();
button2:Hide();
button3:Show();
text1 = "";
text2 = "Button2:";
end

but is this really the easiest way?

thanks, i know i suck at explaining...

Inokis 06-29-05 04:22 PM

I don't know if its the easiest but thats how I do it.

Otherwise you can group them by frame and just hide the frame name so they all hide.


All times are GMT -6. The time now is 01:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI