View Full Version : Basics...
Beelzer
10-03-2007, 07:03 AM
How many basic commands/scripts are there, basic as in:
MainMenuBarLeftEndCap:Hide();
MainMenuBarRightEndCap:Hide();
Because all the tutorials i see on this site and others are really long and confusing for someone who has never seen it before. Could anyone post a site with this stuff or list some for me? Thanks in advance. :grin:
Vilkku
10-03-2007, 09:51 AM
http://wowwiki.com/API and some similar to your example http://www.wowwiki.com/HOWTO:_Remove_Blizzard_Default_Frames
Wowwiki is generally a great place when it comes to everything AddOn writing related :)
JaedxRapture
10-03-2007, 10:45 AM
The things "MainMenuBarLeftEndCap" are frames/textures. What you're doing there is telling the game to hide them.
This is the basic API: http://wowwiki.com/API.
This is the API for altering frames: http://wowwiki.com/Widget_API.
If you want a full list of frames, download the Blizzard Interface AddOn Kit (http://www.blizzard.com/support/wow/?id=aww01671p). Once you run that, extract the "Interface Data." A new folder will appear in your WoW directory named "Blizzarde Interface Data." Browse through the XML files located in there to get the names of frames. (XML files can be opened in Notepad.)
Remember if you mess up, it isn't permanent. Just do a "/script ReloadUI()" or "/console reloadui" to reset everything, or disable the addon you made if you're using addon files.
Beelzer
10-03-2007, 10:57 AM
I've been looking at the slash command tutorial on wowwiki and i am just wondering how to check if one action has been taken then it will do the second. Like with the gryphon hide thing how to make it on and off.
JaedxRapture
10-03-2007, 10:15 PM
You can re-show the gryphons by replacing Hide() with Show().
It's probably worth noting that these aren't really slash commands. What you're typing is a small LUA script. The /script command tells the game that it should parse the following as LUA script.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.