WoW:API and scripting quirks: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 25: Line 25:
** x,y = GetCursorPosition(); will return the current position of the mouse '''with respect to the object it currently is in'''.  This means x will be 0 if the mouse is at the left edge of a frame or button, regardless of where that frame or button is.
** x,y = GetCursorPosition(); will return the current position of the mouse '''with respect to the object it currently is in'''.  This means x will be 0 if the mouse is at the left edge of a frame or button, regardless of where that frame or button is.
** x,y = GetCursorPosition(UIParent); will return the current position of the mouse with respect to the entire UI.  This can be considered the absolute position..
** x,y = GetCursorPosition(UIParent); will return the current position of the mouse with respect to the entire UI.  This can be considered the absolute position..
* [[ChatFrame]]
** Trying to send colored text to other players will cause your client to disconnect.  Not sure if Blizz's server is forcing the disconnect, or my client.
*** Example:  /tell Name |cFF00FF00Hello|r.  The EditBox will show the text in green after replacing "||" with "|".  Pressing enter to send the info to the server chat channel results in the following:
**** "|r" causes the disconnect,
**** "|c" doesn't have the same problem, but will cause the text after it not to show.
Anonymous user