zork-tdmog
Rare-Mob
- Mitglied seit
- 08.06.2009
- Beiträge
- 152
- Reaktionspunkte
- 0
- Kommentare
- 2
http://forums.worldofwarcraft.com/thread.h...76853&sid=1
This is a consolidated list of the changes to the User Interface API's (and significant blizzard UI components, when appropriate) for the WoW 3.3 release. The purpose is to have an easy place to find out what changes are coming, and discuss how they work.
IMPORTANT: Off topic/entirely redundant posts are liable to get deleted. This wastes everyone's time so please keep it relevant!
DO's
* Please post details on how new features work, or on important changes we've missed so far.
* Feel free to suggest useful improvements to the way new features are implemented (or bugs in them)
* Ask questions about the new features (that haven't already been asked/answered)
DO NOT's
* Please DO NOT post massive diffs or raw lists of changes in this thread, create separate threads for those.
* DO NOT request random new features, those go in one of the suggestion threads.
* DO NOT complain about a feature just because it's not useful to you.
ADDON LOADING
When a .lua file is loaded you can now access the name of the AddOn containing it, and an AddOn specific table (essentially an AddOn variable scope) by assigning them from ...:
local addonName, addonTable = ...;
The same table is sent to every file in a particular AddOn (each AddOn gets its own table).
QUEST INFORMATION
* NEW - QueryQuestsCompleted() requests that the server send the client a list of completed quest ids. Once the list is received the QUEST_QUERY_COMPLETE event is fired. (There is a limit on how frequently this can be called)
* NEW - tbl = GetQuestsCompleted([tbl]) populates a table (creating one if necessary) with the ids of completed quests. (The format of this table may change before release)
GUIDs
* The format of NPC GUId's has changed, the creature ID is now two hex digits (8 bits) to the left, e.g. Hogger (0x1C0) is now xF13001C0000005D2 (formerly xF1300001C00005D2)
WIDGET API: GLOBAL
* The deprecated GetFrameType method has been completely removed (GetObjectType offers the same result)
WIDGET API: REGION
* NEW - isOver = region:IsMouseOver() -- Tests whether the mouse is over the region, replaces the MouseIsOver FrameXML lua function.
FRAME API: BUTTONS
* NEW - Button:SetMotionScriptsWhileDisabled(enable) --Allows OnEnter and OnLeave to fire while the button is disabled.
* NEW - isEnabled = Button:GetMotionScriptsWhileDisabled()
* This can also be set from XML: <Button motionScriptsWhileDisabled="true">
* The registerForClicks property can now be set from XML.
FRAME API: TEXTURES
* NEW - width = Texture:GetFileWidth() --Gets the width/height of the actual file in use by the texture. (0 if we can't access the texture for some reason) (Note: These currently aren't returning the right values for some Blizzard UI images)
* NEW - height = Texture:GetFileHeight()
MACROS
* The @ symbol has been added as a synonym for 'target=' to help avoid confusion and compact macros, you can do /cast [@focus] Obliterate
* The following new macro conditionals have been added:
vehicleui -- the PLAYER has a vehicle UI
unithasvehicleui -- the target of the macro has a vehicle UI