Poster: Iriel at 11/27/2005 2:11:20 PM PST Subject: Detailed API Changes 1.8.1 -> 0.9.0 (Dec 4) |
|
It's that time again, here's my collection of the API changes for 1.9. As always it's expected that you read this thread in conjunction with the 1.9 Changes sticky thread.
http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=238150&p=1&tmp=1
I've put a !!! note next to those changes which are probably (or definitely) going to cause problems for addons that aren't updated.
WIDGET API
* NEW - font,size,flags = FontString:GetFont() - Return the font used for this font string.
* NEW - isShown = FontString:IsShown() - Return whether font string is shown (NOTE: FontString IsVisible behaves properly now on hidden tooltips, tooltip scanners need to use IsShown instead !)
* NEW - FontString:SetNonSpaceWrap(flag) - Toggle whether string wraps or truncates long text without spaces.
* NEW - type = Frame:GetEffectiveScale() - Return the resulting cumulative scale of frame (logically self:GetParent():GetEffectiveScale() * self:GetScale()).
* NEW - type = Frame:GetFrameType() - Return the type of a frame.
* NEW - isType = Frame:IsFrameType("type") - Return true if the frame is the specified type (or a subclass of type).
* UPDATED - Frame:SetBackdropBorderColor(r,g,b[,a]) - Fourth argument (guessing alpha) now used, has always been present.
* UPDATED - Frame:SetBackdropColor(r,g,b[,a]) - Fourth argument (guessing alpha) now used, has always been present.
* NEW - Frame:UnregisterAllEvents() - Unregister all of a frame's events
* NEW - path = Texture:GetTexture() - Returns the currently displayed texture file.
* NEW - isShown = Texture:IsShown() - Return whether the texture is shown.
* NEW USAGE - Texture:SetTexCoord(ULx,ULy, LLx,LLy, URx,URy, LRx,LRy) - New more general (shearing/rotation capabale) form, old one remains.
* NEW - font,size,flags = Button:GetFont() - Return the font used for this button.
* NEW - Button:SetFont("font", fontHeight [,"flags"]) - Set the font for display on the button.
* NEW - font,size,flags = EditBox:GetFont() - Return the font used for this edit box.
* NEW - EditBox:SetFont("font", fontHeight [,"flags"]) - Set the font for display on the edit box.
* NEW - anchorType = GameTooltip:GetAnchorType() - Returns the current anchoring type.
* UPDATED - GameTooltip:SetUnitBuff("unit", index [,raidFilter]) - New raidFilter argument (Goes with changes to unit buff API's)
* UPDATED - GameTooltip:SetUnitDebuff("unit", index [,raidFilter]) - New raidFilter argument (Goes with changes to unit buff API's)
* UPDATED - scale = Model:GetScale() - Now the same method as Frame version (See GetModelScale) [b]!!![/b[
* NEW - scale = Model:GetModelScale() - Gets the model's current scale (Formerly GetScale) !!!
* UPDATED - Model:SetAlpha(alpha) - Now the same method as Frame version (Old mesh version no longer available) !!!
* UPDATED - Model:SetScale(scale) - Now the same method as Frame version (See SetModelScale) !!!
* NEW - Model:SetModelScale(scale) - Presumably sets the scale on a model rather than the frame (Formerly SetScale(scale)) !!!.
* NEW - font,size,flags = ScrollingMessageFrame:GetFont() - Return the font used for this frame.
* NEW - ScrollingMessageFrame:SetFont("font", fontHeight [,"flags"]) - Set the font for display on the frame.
BATTLEGROUNDS/QUEUES
(Note, queue indexes run from 1 to MAX_BATTLEFIELD_QUEUES)
* UPDATED - AcceptBattlefieldPort(index, accept) - New first parameter, identifies which queue to accept from !!!
* UPDATED - waitTime = GetBattlefieldEstimatedWaitTime(index) - New parameter, identifies queue. !!!
* UPDATED - expireMillis = GetBattlefieldPortExpiration(index) - New parameter, identifies queue. !!!
* UPDATED - status, mapName, instanceId = GetBattlefieldStatus(index) - New parameter, identifies queue. !!!
* UPDATED - waitedMillis = GetBattlefieldTimeWaited(index) - New parameter, identifies queue. !!!
SOCIAL FUNCTIONS (GUILDS/FRIENDS)
* UPDATED - name, level, class, area, connected, status = GetFriendInfo(index) -Added new status (AFK etc) result.
* NEW - canEdit = CanEditGuildInfo() - Returns flag indicating if player can edit the guild's info text.
* NEW - infoText = GetGuildInfoText() - Returns guild's current info text
* NEW - SetGuildInfoText(text) - Sets new info text for guild.
* UPDATED - name, rank, rankIndex, level, class, zone, note, officernote, online, status = GetGuildRosterInfo(index) - Removed old 'group' flag (Used ot be between zone, and note), and added new status (AFK etc) result. !!!
MACROS
* UPDATED - index = CreateMacro(name, iconIndex, body, local, perCharacter) - New last parameter, flag to indicate per character macro.
KEY BINDINGS
(The binding set ID's are DEFAULT_BINDINGS (0), ACCOUNT_BINDINGS (1), and CHARACTER_BINDINGS (2))
* REMOVED - DefaultBindings() - Replaced by LoadBindings(DEFAULT_BINDINGS)
* NEW - bindingSet = GetCurrentBindingSet() - Return whether cahracter is using account or character bindings.
* NEW - LoadBindings(0|1|2) - Reset the active bindings to the specified saved set
* REMOVED - ResetBindings() - Replaced by LoadBindings(GetCurrentBindingSet())
* UPDATED - SaveBindings(1|2) - Save the current bindings to the specified binding set (Currently crashes if called with no arg) !!!
MAIL
* NEW - invoiceType, itemName, playerName, bid, buyout, deposit, consignment = GetInboxInvoiceInfo(index) - Get detailed AH invoice info from mail.
* UPDATED - bodyText, texture, isTakeable, isInvoice = GetInboxText(index) - Added new fourth return value, isInvoice. Non nil if message is an invoice.
LOOKING FOR GROUP
* NEW - GetLFGResults(index) - Gets specific LFG result, no idea what return values are
* NEW - ent1, ent2, ... = GetLFGTypeEntries(type) - Return entries for the specified LFG type (type is numeric)
* NEW - type1, type2, ... = GetLFGTypes() - Return LFG Types (Note, the positions are the type ID's, and the results are their names)
* NEW - GetNumLFGResults() - Returns number of LFG results.
* NEW - LFGQuery(param1 [, class]) - Submit an LFG query, no idea what the parms or results are yet.
Also I suspect the following are new LFG events (unverified) UPDATE_LFG, UPDATE_LFG_LIST, UPDATE_LFG_TYPES.
ITEMS
* NEW - link = GetLootRollItemLink(id) - Get the item link for a loot roll.
* UPDATED - itemName, itemLink, itemRarity, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, invTexture = GetItemInfo(itemID|"itemLink") - itemEquipLoc is no longer localized, new invTexture return value.
MAP
* UPDATED - SetupWorldMapScale(WorldMapframe) - New parameter, the frame to set the scale on. !!!
BUFFS/DEBUFFS
* UPDATED - buff = UnitBuff("unit", index, [,raidFilter]) - New raidFilter parameter, set to 1 to only show castable buffs.
* UPDATED - debuff, applications = UnitDebuff("unit", index, [,raidFilter]) - New raidFilter parameter, set to 1 to only show dispellable debuffs.
BITLIB
The bitlib library is now available
* NEW - r = bit.arshift(a,b) - Return a shifted arithmetically right b places
* NEW - r = bit.band(w1,w2,...) - Return bitwise and of all arguments
* NEW - r = bit.bnot(a) - Return bitwise not of a
* NEW - r = bit.bor(w1,w2,...) - Return bitwise or of all arguments
* NEW - r = bit.bxor(w1,w2,...) - Return bitwise exclusive or of all arguments
* NEW - r = bit.lshift(a, b) - Return a shifted left b places
* NEW - r = bit.mod(a,b) - Returns integer remainder of a divided by b
* NEW - r = bit.rshift(a, b) - Return a shifted right b places
2005-12-05: Updated to the Dec 5 Test Build.[ post edited by Iriel ]
<Addon Authors: Dont use RegisterForSave()!>
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=270816&p=#post270816 | | Poster: slouken at 12/6/2005 10:12:38 AM PST Subject: Re: Detailed API Changes 1.8.1 -> 0.9.0 |
|
Q u o t e: With FontString:GetFont, and Get/SetFont being added for EditBoxes, would it be doable to have GetFont/SetFont for SimpleHTML as well, since it doesn't *seem* to support the HTML <FONT> tag? (Or maybe I'm just doing something wrong?)
Remind me to look into it for 1.10
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=270816&p=#post275627 | Poster: slouken at 12/6/2005 3:22:51 PM PST Subject: Re: Detailed API Changes 1.8.1 -> 0.9.0 |
|
Q u o t e: Will do, slouken, and thanks.
(Although it occurs to me, for SimpleHTML controls, it might be more involved than that -- not just SetFont/GetFont, but SetFontH1/GetFontH1, SetFontH2/GetFontH2, SetFontH3/GetFontH3. So yeah, maybe more than I initially anticipated.)
Yep, I'm not promising anything. :)
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=270816&p=#post275830 | Poster: slouken at 12/6/2005 7:16:45 PM PST Subject: Re: Detailed API Changes 1.8.1 -> 0.9.0 |
|
Oh, I know what should be done, I just don't know if I'll have time to do it. :)
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=270816&p=#post275934 | Poster: slouken at 12/6/2005 7:19:03 PM PST Subject: Re: Detailed API Changes 1.8.1 -> 0.9.0 |
|
Thanks. :)
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=270816&p=#post275938 | Poster: slouken at 12/6/2005 7:19:03 PM PST Subject: Re: Detailed API Changes 1.8.1 -> 0.9.0 *edited post* |
|
Thanks. :)
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=270816&p=#post275938 |
View all recent official Blue Posts
|