Can someone explain why this call to FireCallbacks is not executed
and EVENT_ACTION_SLOT_UPDATED is not dispatched in API 101034 ? Code:
600 function ZO_ActionBarAssignmentManager_Hotbar:ClearSlot(actionSlotIndex) I can get the expected result manually by running zo_loadstring from GQSB with those slash commands: Code:
-- init required for this to work (as it has not been called yet): - either there is some replacement mechanism at work I'm not aware of, or - the pts7.3 branch handling is freezed at the moment in pts8.0. ... |
You should explain what you are trying to achieve here FIRST and then post some code etc. ;)
From your dev name and the abbreviation GQSB I know it's about Gremyind Quickslot bar and it seems to be something about dragging items from the bar, and you expect (it worked on live server I assume) either the event EVENT_ACTION_SLOT_UPDATED to fire then, or the callback manager to fire ACTION_BAR_ASSIGNMENT_MANAGER:FireCallbacks("SlotUpdated", self.hotbarCategory, actionSlotIndex, IS_CHANGED_BY_PLAYER) When exactly do you think this should fire? What are you doing? It's easier for Dan to understand and maybe find a bug then. Thank you. btw: The quickslots changed and there are new files that might fire a quickslot only related callback meanwhile, so check the new files, if it's about quickslots: https://github.com/esoui/esoui/blob/...board.lua#L202 https://github.com/esoui/esoui/blob/...l_keyboard.lua ZO_UtilityWheelValidateOrClearSlot |
Quote:
I was just following your last post about QuickSlot handling with this added bar category parameter. As if that was an obvious continuation about this very subject. But I could have stated it more clearly! Quote:
Quote:
Quote:
But, after a git clone https://github.com/esoui/esoui.git, I took the time to search the whole pts8.0 and pts7.3 branches for those keywords before posting here. I'm ready to give a try to any suggestion, Thanks. |
EVENT_ACTION_SLOT_UPDATED is only fired for slots on the active bar, and now that quickslots are not part of the skill bars, it wont fire for them. They want EVENT_HOTBAR_SLOT_UPDATED instead.
|
Quote:
Quote:
It is a GQSB Settings option [Disable Default Quick Slot Button]. I was using ActionButton9:SetHidden() but ActionButton9 is nil on PTS. |
It's control name should be QuickslotButton now
|
Quote:
Quote:
|
2 Attachment(s)
Updated documentation for the upcoming PTS 4.
|
2 Attachment(s)
Final updated documentation
|
Thanks for everything Dan, sirinsidiator, Baertram et al. Your extensive documentation efforts made a pretty major API update a lot less of a hassle for all of us addon authors!
|
Invite pls
Can I get a guild invite to the dev/testing guild? @Pithka on NA
|
Leaderboard changes from Update 34
Catching up after being away for a few patches and am a bit confused by some of the API changes. Previously, to get all of a characters top scores for each trial and arena, I would
1. Call QueryRaidLeaderboardData() 2. Wait for the event EVENT_RAID_LEADERBOARD_DATA_CHANGED 3. Loop through GetRaidLeaderboardLocalPlayerInfo(RAID_CATEGORY_TRIAL, raidId) for all trials 4. Loop through GetRaidLeaderboardLocalPlayerInfo(RAID_CATEGORY_CHALLENGE, arenaId) for all arena This doesn't work anymore. Here is the section of the API patch notes that I think are relevant Code:
Changed I'm not entirely sure how to read these patch notes. A couple of quick questions.
|
RaidCategory should be the enum/number constant, yes.
You can find a list of the parameter constants/return values within/of API functions if you search for the constant (here: RaidCategory) within the API documentation txt file attached to this thread, or for the most current at the PTS 8.1 thread. For the other functions I guess you need to provide the raidId now, yes. Maybe there is another API function GetNumRaids() or similar to get a raidIndex 1 to n, And GetRaidId(raidIndex)? Or maybe the ID is the index (same, 1 to n) in this case. I never used those functions yet. Another hint: some api functions do not return data if you haven't opened the menu (campaign e.g.) before as the server will not collect the dats earlier, to prevent the server being asked too often, making it slow. Not sure if this is the case here too, just wanted to warn you. |
All times are GMT -6. The time now is 11:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI