ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Tutorials & Other Helpful Info (https://www.esoui.com/forums/forumdisplay.php?f=172)
-   -   PTS 2.5 API changes (2.4.9.1325902 to 2.5.0.1325934 diff) (https://www.esoui.com/forums/showthread.php?t=6406)

Harven 07/05/16 07:47 AM

PTS 2.5 API changes (2.4.9.1325902 to 2.5.0.1325934 diff)
 
Hey!

A little late this time ;) Look here for official api changelog. Also see 2.4 Update discussion thread. The following data is produced by comparing 2.4.9.1325902 and 2.5.0.1325934 global variables.
  • New Functions:
    Warning: Spoiler
  • Removed Functions:
    Warning: Spoiler
  • New Protected Functions:
    Warning: Spoiler
  • No Removed Protected Functions!
  • New Constants:
    Warning: Spoiler
  • Removed Constants:
    Warning: Spoiler
  • New Tables:
    Warning: Spoiler
  • Removed Tables:
    Warning: Spoiler
  • New Userdata:
    Warning: Spoiler
  • Removed Userdata:
    Warning: Spoiler

Previous diff: PTS 2.4 API changes (2.3.9 to 2.4.0 diff)

Baertram 07/07/16 03:49 AM

Many thanks for the list!

level and rank are new global constants? I hope they are not leaked, somehow looks like...
And I wodner what this new table exit will contain :-)

Halja 07/07/16 11:05 AM

Quote:

Originally Posted by Baertram (Post 27690)
Many thanks for the list!

level and rank are new global constants? I hope they are not leaked, somehow looks like...
And I wodner what this new table exit will contain :-)

How about _MAX_VALUE and _MIN_VALUE as new global constants too?
Don't get me wrong I have been guilty of tossing an underscore to a name as a cheap sort to the top. :D

Sasky 07/07/16 01:15 PM

Also "exit" as a new table is a bit odd.

Harven 07/07/16 04:35 PM

Yeah, some leaked locals I think :) table exit contains following elements:
function 'callback',
string 'name' = "Exit",
numer 'alignment' = 1,
string 'keybind' = "UI_SHORTCUT_NEGATIVE"

rank and levels both are booleans set to true :)

votan 07/08/16 03:42 AM

leaking variables
 
@Chip: Found them: :)
One in keyboard and the other one (with UI_SHORTCUT_NEGATIVE) in gamepad:
Code:

function ZO_DyeStamp_Confirmation_Base:AddExitKey()
    -- Special exit button
    exit =
    {
        alignment = KEYBIND_STRIP_ALIGN_RIGHT,
        name = GetString(SI_EXIT_BUTTON),
        keybind = "UI_SHORTCUT_EXIT",
        callback = function() self:EndConfirmation() end,
    }
    table.insert(self.keybindStripDescriptor, exit)
end

Code:

function ZO_ActivityFinderTemplate_Keyboard:RefreshFilters()
...
                local minGroupSize, maxGroupSize = ZO_ACTIVITY_FINDER_ROOT_MANAGER:GetGroupSizeRangeForActivityType(activityType)
                level = true
                rank = true
                local entry = ZO_ComboBox:CreateItemEntry(activityName, OnFilterChanged)
...



All times are GMT -6. The time now is 04:52 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI