taultunleashed logoWOW - Unannounced Changes to Macros : World of Warcraft General Discussions
newtopic  postreply
 [ 1 post ] 
blue large dot

WOW - Unannounced Changes to Macros : World of Warcraft General Discussions

Posted: April 17th, 2007, 11:46 am
 
Gaming-News

Total Posts: 15977
Joined: August 21st, 2004, 4:36 pm
Gaming-News's Reps: 75
User avatar
Active User > 50 Posts
premium
For you modders out there this might be useful information given by Blizzard's Shaantie regarding changes coming in 2.1 patch...

Macro Features:
New conditional [flyable] which is true if you're in a location where you could use a flying mount
You can use %f in chat text to refer to your focus, the same way %t or %n refers to your target.
Added macro option support for /dismount
Macros containing conditionals will automatically update their visual feedback as appropriate during play.
#show and #showtooltip can be given conditionals and will update dynamically
#show and #showtooltip can be given a slot number, to display the appropriate feedback for that slot
Added bag and slot number support to: /castsequence, /cast, /castrandom, /use, /userandom, /equip, /equipslot
New slash command /cancelform
The /equip command can take item identifiers specified as item:: e.g. /equip [modifier:alt] item:25640
You can provide several conditional clauses for a single action, which will be performed if any of the clauses evaluates to true. e.g. /cast [target=target,help,nodead] [target=targettarget,help,nodead] [target=player] Flash of Light

AddOn Features:
New TOC field: LoadManagers - When the game loads, each AddOn listed in this field is loaded in order until one successfully loads. If one of these are loaded, then the AddOn is then loaded on demand.

UIPanel Frame Management:
The UI panel layout code now uses frame attributes instead of variables to manage layout. This allows well written AddOns to customize the layout without blocking protected panels in combat.

UIParent Attributes:
DEFAULT_FRAME_WIDTH - The default width of a single pane UI panel (default 384)
TOP_OFFSET - The offset from the top of the screen (default -104)
LEFT_OFFSET - The offset of the left panel from the left side of the screen (default 0)
RIGHT_OFFSET_BUFFER - The amount of space to leave open on the right side of the screen (default 80)
UI Panel Attributes (initial values come from the UIPanelWindows table):
UIPanelLayout-defined - True if the frame has layout attributes defined.
UIPanelLayout-enabled - True if the frame should be handled by the UI panel layout system.
UIPanelLayout-area - One of "left", "center", "right"
UIPanelLayout-width - The effective width of the UI panel, used as an override for frame:GetWidth()
UIPanelLayout-pushable - If specified as a value greater than 0, this is the priority used when sliding frames to the right when a new frame is opened.
UIPanelLayout-whileDead - True if the frame can be opened while the player is dead.

Secure Templates:
For "item" buttons, name can be an item ID or item link.
Action buttons will automatically update if their action attribute changes.
The SecureStateHeaderTemplate now supports a small stack of saved states that can be used in state transition rules via push/pop/swap actions (See the header file for usage information)
Added a generalized state driver that uses conditional macro syntax. e.g.: RegisterStateDriver(header, "stance", "[stance:1] 1; [stance:2] 2; [stance:3] 3; [stance:4] 4; [stance:5] 5; [stance:6] 6; [stance:7] 7; 0");

Memory Profiling:
Script memory is now tracked on a per-addon basis, with functions provided to analyze and query usage.
The script memory manager has been optimized and the garbage collection tuned so there is no longer any need for a hard cap on the amount of UI memory available.
NEW - UpdateAddOnMemoryUsage() - Scan through memory profiling data and update the per-addon statistics
NEW - usedKB = GetAddOnMemoryUse(index or "name") - Returns the total memory used by the specified AddOn. This returns a cached value calculated by UpdateAddOnMemoryUsage().

CPU Profiling:
CPU profiling is disabled by default since it has some overhead. CPU profiling is controlled by the scriptProfile cvar, which persists across sessions, and takes effect after a UI reload.
When profiling is enabled, you can use the following functions to retrieve CPU usage statistics. Times are in seconds with about-a-microsecond precision.
NEW - time = GetScriptCPUUsage() - Returns the total time used by the scripting system.
NEW - UpdateAddOnCPUUsage() - Scan through the profiling data and update the per-addon statistics
NEW - time = GetAddOnCPUUsage(index or \"name\") - Returns the total time used by the specified AddOn. This returns a cached value calculated by UpdateAddOnCPUUsage().
NEW - time, count = GetFunctionCPUUsage(function[, includeSubroutines]) - Returns the time used and number of times the specified function was called. If 'includeSubroutines' is true or omitted, the time includes both the time spent in the function and subroutines called by the function. If it is false, then time is only the time actually spent by the code in the function itself.
NEW - time, count = GetFrameCPUUsage(frame[, includeChildren]) - Returns the time used and number of function calls of any of the frame's script handlers. If 'includeChildren' is true or omitted, the time and call count will include the handlers for all of the frame's children as well.
NEW - time, count = GetEventCPUUsage(["event"]) - Returns the time used and number of times the specified event has been triggered. If 'event' is omitted, the time and count will be totals across all events.
NEW - ResetCPUUsage() - Reset all CPU profiling statistics to zero.

General API Functions:
UPDATED - isSecure, taint = issecurevariable() - Now returns a second value which is the name of the addon that tainted the variable (or the empty string if it was tainted by a macro script), if it is not secure.
UPDATED: GetCursorInfo() will now return "merchant", index when the cursor holds a merchant item.
NEW - link = GetSendMailItemLink()
NEW - loggedIn = IsLoggedIn() - returns false before the PLAYER_LOGIN event, and true during and after the PLAYER_LOGIN event.
NEW - isFeigned = UnitIsFeignDeath("unit") - returns true if the unit is the player, or in the player's party/raid and is feigning death.
REMOVED - IsFeignDeath() - Replaced by UnitIsFeignDeath
UPDATED - SendAddOnMessage("prefix","message"[,"type"][,"target"]) -- now accepts "WHISPER" as the message type

Frame API Functions:
NEW - Frame:HookScript("name", function) - Exactly equivalent to hooksecurefunc(), but usable with frame script handlers. (Note that like hooksecurefunc(), this is not intended as a general hooking replacement, but to allow hooking of secure frame handlers.)

GameTooltip API Functions:
UPDATED - name, unitid = GameTooltip:GetUnit() - Added second 'unitid' return value
NEW - hasComparison = GameTooltip:SetHyperlinkCompareItem(link, index) - Sets a comparison tooltip to show the index'th comparison item to the item specified as link. Will return a true value if there is an index'th comparison item (index is 1 or 2).

The changes in scripting do not appear in the general patch notes any more but should be posted in the Interface Customisation forum. If they are not posted, feel free to wake-up the person handling the Forum as he is supposed to do it regularly.

Thanks


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 83 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of World of Warcraft General Discussions RSS Feed 
Sitemap of World of Warcraft General Discussions Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?