Beta API discussion
Important API changes:
http://www.wowpedia.org/Patch_5.0.1/API_changes GitHub fork of Blizzard interface files: https://github.com/Ketho/wow-ui-source/tree/beta New macro conditions [petbattle], [possessbar], [overridebar], [extrabar]: http://us.battle.net/wow/en/forum/topic/6079671818#9 New artwork (lots and lots of images): http://www.wowinterface.com/forums/s...ad.php?t=43784 |
Edit: Since the thread got made, time to post some useful info.
Taken from Cairenn's Press Tour thread. UI Changes
|
You guys have the choice. You can do everything in a single thread, or make multiple threads, however it seems to make the most sense ...
|
|
In addition to OP post, I found this:
New API: AbbreviateLargeNumbers(num) (defined in Lua, see UIParent.lua) BreakUpLargeNumbers(num) (defined in Lua, see UIParent.lua) GetNextGuildPerkIndex() RemoveTalent(id) SetSpecialization(id) GetNumSpecializations() GetSpecializationInfo(masteryIndex) returns id, name, description, icon, background GetVoidUnlockCost() (in copper) HasOverrideActionBar() GetOverrideBarSkin() GetOverrideBarIndex() GetVehicleBarIndex() HasVehicleActionBar() HasTempShapeShiftActionBar() BeginActionBarTransition(frame, ???) GetMultiCastBarIndex() GetExtraBarIndex() GetActionCharges(action) returns charges, maxCharges, chargeStart, chargeDuration GetRaidBuffTrayAuraInfo(index) returns name, rank, texture, duration, expiration, spellID, slot NeutralPlayerSelectFaction(id) 1 = Horde, 2 = Alliance UpdateFrameLock(frame) used for pet battles, locking UI elements IsInRaid() IsInGroup() used for party I'd guess IsBlizzCon() used in beta to disable social functions like friendlist, replacing the previously used CVar with the same name GetFriendshipReputation() returns id, reputation, maxRep, text, texture GetLootSlotType(slot) returns id (0 = none, 1 = item, 2 = money, 3 = currency) ValidateActionBarTransition() IsEuropeanNumbers() SetChallengeMode(index) ResetMerchantFilter() SetMerchantFilter(index) GetMerchantFilteR() GetChallengeMode() AcceptSpellConfirmationPrompt() DeclineSpellConfirmationPrompt() GetWorldElapsedTime(timerID) returns ??, elapsed, isChallengeModeTimer :RegisterUnitEvent(event, unit1, unit2) Changed API: GetActiveTalentGroup() > GetActiveSpecGroup() GetNumPartyMembers() > GetNumSubgroupMembers() UnitIsPartyLeader() > UnitIsGroupLeader() GetTalentTabInfo() > GetSpecializationInfo() (some returns removed) GetNumTalentGroups() > GetNumSpecGroups() UnitIsRaidOfficer() > UnitIsGroupAssistant() GetPartyMember() > GetGroupMember() GetNumUnspentTalentPoints() > GetNumUnspentTalents() GetExpertisePercent() > GetExpertise() GetGuildFactionInfo() changed (no longer returns experience caps as they are removed, last two returns). GameTooltip:SetTalent() changed arguments. LootSlotHasItem() changed (works for currencies and money aswell) PetMoveTo(target) new argument. GetDefaultLanguage() new return: languageID GetGuildRosterInfo() new return: reputationStanding GetMapInfo() new returns: isMicroDungeon, microDungeonMapName GetNumDungeonMapLevels() new return: isFirstFloor New events: UPDATE_VEHICLE_ACTIONBAR UPDATE_OVERRIDE_ACTIONBAR SPELL_UPDATE_CHARGES NEUTRAL_FACTION_SELECT_RESULT SHOW_FACTION_SELECT_UI QUICK_TICKET_SYSTEM_STATUS QUICK_TICKET_THROTTLE_CHANGED ITEM_RESTORATION_BUTTON_STATUS SPELL_CONFIRMATION_PROMPT SPELL_CONFIRMATION_TIMEOUT WORLD_STATE_TIMER_START arg1 = timerID WORLD_STATE_TIMER_STOP arg1 = timerID Misc stuff: - Pets seem to have lost their talents, unsure. - Lots of new events and functions for the pet battle window, not going to list them (functions are unfinished, using temporary names) - A pet journal has been added, not going to list them (unfinished aswell) - BonusActionBar file has been split up into multiple files. - BonusActionBar itself has been replaced with OverrideActionBar - Monk class color: 0/255/150 - Death Knight talent levels: 56, 57, 58, 60, 75, 90 - Total glyph slots: 6 (3 major, 3 minor) - New frame: DestinyFrame (used for Pandaren faction selection) - New graphics setting: SSAO (no idea what it is) - New frame: PVEFrame (shows LFG, LFR and Challenges) - Paladins get a total of 5 holy power? - Default unitframes gets smooth transition on statusbars |
Quote:
|
It means Screen Space Ambient Occlusion (SSAO).
It has to do with lighting and is probably another way to kill our framerate for marginal visual benefit :P |
Quote:
https://github.com/p3lim/wow-ui-sour...s.lua#L703-730 |
Have the secure templates/handlers changed at all in 5.0? I keep expecting snippets nerfed due to their ability to easily /castrandom. But at the same time it seems absolutely important (more important!) for a snippet to choose a spell based on the last one loaded or on a variable, so we can do toggle abilities and stuff.
Curious if item:id format has changed also? It's changed every expansion so far (gems in BC, level in WotLK, reforge in cata). Did they put tinker into the item id in MoP? Also I gave a guildmate a macro to test COMBAT_LOG_EVENT_UNFILTERED results and it appears they've changed. Anyone played with them at all? You don't need addons enabled to test any of this, and only so much can be gleaned from looking at the extracted UI. |
Macro interfaces :)
|
Curious, anyone with beta access able to test this new binding?
<ModifiedClick action="CASTAOEONTARGET" default="CTRL"/> Wonder if this skips the targeting reticule step for AoE spells if you have something targeted. |
|
33 Attachment(s)
Here is my github fork. You can extract it yourself with ExportInterfaceFiles
Attached diffs (up until build 16048) by kd3: |
Quote:
To my previous questions, if anyone else curious, I was able to create a secure button that toggled its spell successfully so no apparent nerf there. No change to item:id's. And no readily apparent change to COMBAT_LOG_EVENT_UNFILTERED. |
Quote:
|
Humm, it appears they may be adding vendor filters to mists. Anybody know where I can find that code? It may potentially affect my addon.
(link below because adding the link via the UI seems broken?) http://wow.joystiq.com/2012/03/29/mi...-items-easier/ |
Quote:
https://github.com/p3lim/wow-ui-sour...ca1778#diff-20 Xml: https://github.com/p3lim/wow-ui-sour...ca1778#diff-21 Do mind they take a little time to load, huge diff :) |
Any date, confirmed that they will enable AddOns on Beta?
|
Quote:
|
UPDATE_EXPANSION_LEVEL this must be the least firing event, ever
|
Quote:
|
Doesn't Blizzard make you log out of the game before you can make any changes to your account like that anyway?
|
It may be a mechanism to hype pre-expansion experience to get more people connected waiting for release a event which may actually be an event rather than just a message to start downloading. A bit like a timed easter egg.
I wouldn't be surprised to see it make it into a 4.x patch |
Quote:
Did Cata have a "live" release with no server reset? If so, my random guess is that it's there so they can try a seamless MoP release. Assuming we can buy and download the game data beforehand, maybe they plan to push some message at the moment of release that enables MoP content for the server and fires off that event on applicable accounts so you can stay logged in as the release occurs and go straight to new content without logging out and in? That seems like a lot of trouble to go to though... |
Quote:
|
Quote:
Cataclysm had a live release as well; I didn't have to logout and login after the midnight release before I could start leveling up. This event is just giving us the information that's already been available on the server side all along. |
Now AddOns have been enabled on Beta there is a Wowpedia page with API changes (mainly updated by Foxlit)
http://www.wowpedia.org/Patch_5.0.1/API_changes I also updated my GitHub fork to build 15799 WowAce thread: Addons are now enabled on MoP Edit: Just noticed Cairenn's mailing :| |
QueryQuestsCompleted() still is not implemented in the beta that allows addons to run.
|
Quote:
On a slight side-track (sorry): Could someone please tell me where I can find the class color for the new Monk class (that's the only new class, right)? I apologize, but I really have absolutely no clue. |
Quote:
https://github.com/Ketho/wow-ui-sour...stants.lua#L67 Quote:
|
Quote:
|
How to check talents of other players
Here is some additional information about checking talents that I found last night while fixing up TipTop.
As mentioned on http://www.wowpedia.org/Patch_5.0.1/API_changes some of the functions have had their names changed. Also, some of these have changed usage. GetPrimaryTalentTree() has changed to GetSpecialization(). In addition, if you are inspecting someone, you need to use GetInspectSpecialization("unit"). This will return a number (not sure what it really represents or how it is determined...) which you can then pass to GetSpecializationInfoByID(). So... when inspecting someone for their talents... You call NotifyInspect("unit") and register for "INSPECT_READY" just as before. When the event fires, call GetInspectSpecialization("unit") to get that ID number and then, if the ID exists and is greater than 0 (cause, sometimes it's 0 for some reason), pass that ID to GetSpecializationInfoByID(). One additional reminder: it is sill a good idea to save the UnitGUID of the unit you are inspecting so that you can check that GUID with what is returned with "NOTIFY_INSPECT". |
Quote:
I apologize for asking for the information, but when I try to read through code (if I can even get a clue where to look to begin with) my eyes glaze over, I start babbling gibberish and drooling in about 30 seconds. That's pretty "normal" for me, but I try to keep that kind of thing to a bare minimum. Thank you, again. |
Quote:
Code:
IsQuestFlaggedCompleted(QuestID) |
Quote:
Quote:
|
So for Grail I now check the runtime to see if QueryQuestsCompleted and GetQuestsCompleted exist. If not, I create an implementation that calls my "quest from server" updating routine. In it the call to GetQuestsCompleted is implemented to cycle through the quests and call IsQuestFlaggedCompleted for each one. On beta this seems to work and not cause the dreaded "your LUA code is taking too long" so I am leaving the code in place for now. Of course if Blizzard implements either of these two routines in the future, the old mechanism for either will still work (tested to still work in live).
|
did some testing, while the functions have been renamed
GetNumPartyMembers() > GetNumSubgroupMembers() GetNumRaidMembers() > GetNumGroupMembers() the targeting still works on UnitName("party".. i) UnitName("raid".. i) |
Quote:
However, if it doesn't behave like it should, please do! |
I don't think he's "reporting" it, just documenting it for everyone else to use the correct function.
|
Anything printed in the chat doesnt show until someone actually says something (say, channels, /dump, emote, etc).
Happens with print() and DEFAULT_CHAT_FRAME:AddMessage() Also, you cannot compare items previouly slotted in ranged with stuff previously slotted in mainhand (wand vs dagger compare). Sheating ranged weapons is a bit bugged aswell, having a wand + offhand atleast. |
Quote:
No other chat messages appeared in either my chat box or the combat log at those times and they still printed just fine. |
GetLFGMode() now requires an input argument. Anyone worked out the details yet?
UnitIsGroupLeader()
This seems like it's the trend with the newer functions; that they are returning true/false instead of 1/nil. IsInRaid() --true/false IsInGroup() --true/false, will return true if you are in a raid as well as a party |
Quote:
|
Quote:
Variables: LE_LFG_CATEGORY_LFD LE_LFG_CATEGORY_LFR LE_LFG_CATEGORY_RF Values: 1 (LookingForDungeon) 2 (LookingForRaid) 3 (RaidFinder) |
Quote:
Quote:
Code:
LFG_CATEGORY_NAMES = { https://github.com/Ketho/wow-ui-sour...tants.lua#L706 I'm not actually sure what the difference between 2 and 4 is (Raid Finder vs Looking For Raid), since the Group Finder UI only shows 1-3. Possibly 4 is not used. |
It appears that GetAddOnMetadata() is no longer returning data for X- prefixed TOC metadata fields.
|
That and a couple of other issues are listed here:
http://www.wowpedia.org/Patch_5.0.1/...le_differences Also updated my GlobalStrings repository with all locales (including the new itIT) to build 15799, here: https://github.com/phanx/wow-globalstrings |
Quote:
|
Quote:
LE_LFG_CATEGORY_LFD = "1" LE_LFG_CATEGORY_LFR = "2" LE_LFG_CATEGORY_RF = "3" LE_LFG_CATEGORY_SCENARIO = "4" Code:
local mode, submode = GetLFGMode(LE_LFG_CATEGORY_SCENARIO); |
Is GetTexture() bugged? I've been struggling for ages with a buff reminder script which works on live but doesn't on beta. It behaves extremely strangely: GetTexture() (in this case at least) returns nil, while a valid texture is set. This code, for instance:
Code:
texture = select(3, GetSpellInfo(buff)) Quote:
Code:
self.icon:SetTexture(select(3, GetSpellInfo(buff))) |
Does anyone know of an easy way to determine the player's active specialization? I've been digging through the interface code and I haven't found anything beyond maybe trying to manually set the talent frame to the active spec and checking PlayerTalentFrameSpecializationSpecButton(1-3).selected
(which is true if it is, the only problem being that it's only for the tab that's currently selected on the talent screen) I must be missing something >.> |
Quote:
-------- It seems like the world's map size has become very inconsistent. Depending on where I measure it from, it gives me different results. World's width and height in yards as measured from Kalimdor: 59547.144977691 39698.085269174 Eastern: 59325.077732756 39550.030762135 Northrend: 56143.874550054 37429.26435188 Pandaria: 51274.202252344 34182.772393128 Maelstrom: ? ? (doesn't seem to be part of the world at all, like Outland) Coordinates are completely broken in Dalaran, no player arrow appears on its map. On live servers I always get around 47714 and 31809, regardless of which continent I derive it from. |
Quote:
|
I noticed Skada's border texture when set to "none" is also that lime green colour in MoP beta, so it seems that issue is affecting other addons as well.
|
I've been having major issues with textures aswell, mainly them not existing for the client after or before some event has fired, havent tested it too much.
|
Only change I've noticed with textures is I get green squares if the texture path is invalid, can't remember if that's also present on live though. Not having any other issues thus far, but I'm not creating any frames/textures until after ADDON_LOADED has fired at the very earliest.
Animations are still very jumpy though if you combine them, for instance a Scale and Rotation animation both playing at the same time on a single frame will often make it vanish or jump in size for a frame or two pretty frequently. |
Quote:
By the time the texture was set it was unknown to the system and resulted in a bright green texture instead. Link: http://www.wowinterface.com/forums/s...ad.php?t=39960 Like p3lim wrote. If the texture is unknown to the client for whatever reason you get a bright green texture. I'm currently having no texture errors but I'm still at the beginning. @Haleth What happens if you do this: |
Quote:
Code:
"All \"special\" characters like \\ must be escaped." Code:
[[All "special" characters like \ are fine as-is. Code:
[=[For when you want literal [[double brackets]] in your Code:
[=======[For when you really like lots of equals signs, |
nUI's button bag icons have that problem as well. Will have to investigate how their images are being set if it looks like there is some sort of validation that has been enforced this time.
Also, while I am typing this, can anyone recall whether it was getglobal being phased out to _G or the other way round. I'm sure the _G were being forced to getglobal at some point but for the life of me I can't remember 100%. |
Quote:
|
All times are GMT -6. The time now is 12:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI