WoW:Macro FAQ: Difference between revisions

2,305 bytes removed ,  24 May 2006
Moved a bunch of coding related stuff to Interface Customization FAQ. Reclassified this page as "UI".
(Moved a bunch of coding related stuff to Interface Customization FAQ. Reclassified this page as "UI".)
Line 1: Line 1:
This is the place to ask any questions about UI Customization. For [[Cosmos]]-specific questions, please see the [[Cosmos Questions]] page.
This is the place to ask any questions about UI Customization that is ''not'' directly related to writing your own AddOns. For developing AddOns, see [[Interface Customization]]. For Cosmos-specific questions, please see the Cosmos Questions page.


==Macros==
==Macros==
Line 26: Line 26:
: A) You can't use a pause before a spell or ability. However... you can kinda do pauses in certain ways. Firstly, the [[Cosmos]] [[Cosmos Slash Commands|slash commands]] includes a /in option. This will NOT work with spells or abilities, but works fine with chat commands. For example: "/in 5 /say Heal on the way!". You can also use certain script commands based on time, such as the movement commands. See the [[World of Warcraft API]] for more on those.
: A) You can't use a pause before a spell or ability. However... you can kinda do pauses in certain ways. Firstly, the [[Cosmos]] [[Cosmos Slash Commands|slash commands]] includes a /in option. This will NOT work with spells or abilities, but works fine with chat commands. For example: "/in 5 /say Heal on the way!". You can also use certain script commands based on time, such as the movement commands. See the [[World of Warcraft API]] for more on those.


=AddOns=
This section needs a lot more help :)
==Basic Questions==
; Q) Where do I start if I want to write an AddOn?
: A) Try the [[WoW UI Customization Guide]] as a starting point.
;Q) Where do I start with these XML files?
:A) Try the [[XML User Interface]] guide - its full of useful information!
; Q) How do I reload my UI?
: A) Type /console reloadui or /script ReloadUI();
;Q) What is Lua?
:A) See the [[Lua]] page for some basic details.
;Q) How do I know what verion number to use in the .toc files?
:A) When you launch the game, it's listed in parenthesis after the version number (e.g. <tt>Version 1.2.1 (4150)</tt>. If you dont have access to the game you could check on the [http://forums.worldofwarcraft.com/board.aspx?forumName=wow-interface-customization WoW Interface Customization forum] or the [http://cosmosui.org/forums CosmosUI forums] for the latest information. Alternatively, use WinMPQ to read the .mpq files, check the Patch.MPQ file and lookup the number in Interface\FrameXML\FrameXML.toc
==Function Questions==
;Q) Why doesn't [[API UnitDebuff|UnitDebuff]] accurately report the spell I just cast?
:A) There is a ~0.5 second gap between the end of a spell being cast and its associated debuff texture showing up on the unit upon which it was cast. This gap causes problems for "Smart Cast" scripts which try to prevent a spell like Immolate from being run when the target already has the debuff on it. If there is a pause between casting, the script would work; however, if the script is triggered rapidly then it is likely to try to cast Immolate twice (since it does not yet see the debuff on the target unit). The workaround for this problem is to subscribe to the SPELLCAST_STOP event. Every time that event is triggered, store the [[API GetTime|current time]] in a variable. From then on, whenever you subtract the [[API GetTime|current time]] from the stored time of the last SPELLCAST_STOP event, you get the time (in seconds) since the last spell stopped. If that time is greater than 0.5, you can proceed to cast your spell. If not, do not cast your spell. Note: this is not an issue for instant cast spells (their debuffs seem to be immediately noticeable), therefore it would be inefficient to do this check on them.


==Questions on Specific AddOns==
==Questions on Specific AddOns==
Line 63: Line 38:
===Thottbot===
===Thottbot===


----
Go to [[Cosmos Questions]]<br>
Go to [[Interface Customization]]<br>
Go to [[Cosmos]]<br>




[[Category:Interface Customization| UI Questions]]
 
[[Category:UI| UI Questions]]
[[Category:UI| UI Questions]]
Anonymous user