WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Tutorials & Other Helpful Info. (https://www.wowinterface.com/forums/forumdisplay.php?f=12)
-   -   Classic Beta 1.13.2 API changes (https://www.wowinterface.com/forums/showthread.php?t=57154)

Ketho 05-18-19 03:44 PM

Classic Beta 1.13.2 API changes
 
The Classic API changes from 8.1.5* to 1.13.2 (30406) are available here. It also has widgets, events, CVars and enums.
I should probably mention Gethe's FrameXML mirror for completeness

* (The diff is from 8.1.5 instead of 8.1.0 since I only started dumping the api resources in 8.1.5 with the addon sorry)

Tuller 05-18-19 05:48 PM

Would you mind generating a luacheck file from this?

jaliborc 05-19-19 03:23 PM

Thanks! That's helpful.
Anyone knows of any program to get beta keys for mod devs?

Xrystal 05-19-19 05:30 PM

Thanks Ketho,

It will help me identify what stuff I need to look at to get nUI and some of my addons to work in Classic.

SDPhantom 05-20-19 12:31 AM

Quote:

Originally Posted by jaliborc (Post 332160)
Anyone knows of any program to get beta keys for mod devs?

Cairenn said on IRC to contact her directly. I'm guessing there's a reason she didn't make a public fanfare, maybe there are relatively limited slots?

Ketho 05-20-19 03:27 AM

Quote:

Originally Posted by Tuller (Post 332152)
Would you mind generating a luacheck file from this?


This one has the API, Lua aliases, enums but doesn't include the framexml globals
I haven't generated a luacheck config file before, so I hope it works

jaliborc 05-20-19 09:47 AM

Quote:

Originally Posted by SDPhantom (Post 332162)
Cairenn said on IRC to contact her directly. I'm guessing there's a reason she didn't make a public fanfare, maybe there are relatively limited slots?

I'll ask. Thanks for the tip.

Ketho 05-24-19 12:21 PM

Added Classic API pages

Fizzlemizz 05-24-19 12:30 PM

Greatly appreciated Ketho, thank you.

Ketho 05-24-19 01:32 PM

You're welcome. I didn't know how classic docs should be properly updated but I hope this works out

Nightness 05-25-19 01:26 AM

Are secure templates passing into classic unaltered?
 
Are secure templates passing into classic unaltered?

Xrystal 06-20-19 11:03 AM

Quote:

Originally Posted by Nightness (Post 332215)
Are secure templates passing into classic unaltered?

I haven't noticed anything go wrong with nUI's Secure Templated frames so appears so.

Fizzlemizz 06-20-19 01:38 PM

What about "togglemenu" on a (non-Blizz. frames) target unit that is not the player?

I get an error about UnitIsOtherPlayersBattlePet which I'm pretty certain weren't a thing in vanilla :).

Test Code:
Code:

local f = CreateFrame("Button", "FizzleTestUnitFrame", UIParent, "SecureUnitButtonTemplate")
f.unit = "target"
f:SetAttribute("unit", f.unit)
RegisterUnitWatch(f)
f:SetAttribute("toggleForVehicle", true)
f:RegisterForClicks("AnyUp")
f:SetAttribute("*type1", "target")
f:SetAttribute("*type2", "togglemenu")
f:SetAttribute("*type3", "assist")
f:SetPoint("TOP", 0, -5)
f:SetSize(100, 100)
f.Portrait = f:CreateTexture("$parentPortrait")
f.Portrait:SetAllPoints()
f:SetScript("OnEvent", function(self, event, ...)
        SetPortraitTexture(self.Portrait, self.unit)
end)
f:RegisterEvent("UNIT_PORTRAIT_UPDATE")
f:RegisterEvent("PLAYER_TARGET_CHANGED")


Xrystal 06-20-19 03:48 PM

Oops, looks like they may have forgotten to remove that block of code.

But then again it is a beta so they probably haven't gone through all the files yet.

In SecureTemplates.lua
Code:

local InitializeSecureMenu = function(self)
        local unit = self.unit;
        if( not unit ) then return end

        local unitType = string.match(unit, "^([a-z]+)[0-9]+$") or unit;

        -- Mimic the default UI and prefer the relevant units menu when possible
        local menu;
        if( unitType == "party" ) then
                menu = "PARTY";
        elseif( unitType == "boss" ) then
                menu = "BOSS";
        elseif( unitType == "focus" ) then
                menu = "FOCUS";
        elseif( unitType == "arenapet" or unitType == "arena" ) then
                menu = "ARENAENEMY";
        -- Then try and detect the unit type and show the most relevant menu we can find
        elseif( UnitIsUnit(unit, "player") ) then
                menu = "SELF";
        elseif( UnitIsUnit(unit, "vehicle") ) then
                menu = "VEHICLE";
        elseif( UnitIsUnit(unit, "pet") ) then
                menu = "PET";
      vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
        elseif( UnitIsOtherPlayersBattlePet(unit) ) then
                menu = "OTHERBATTLEPET";
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        elseif( UnitIsOtherPlayersPet(unit) ) then
                menu = "OTHERPET";
        -- Last ditch checks
        elseif( UnitIsPlayer(unit) ) then
                if( UnitInRaid(unit) ) then
                        menu = "RAID_PLAYER";
                elseif( UnitInParty(unit) ) then
                        menu = "PARTY";
                else
                        menu = "PLAYER";
                end
        elseif( UnitIsUnit(unit, "target") ) then
                menu = "TARGET";
        end

        if( menu ) then
                UnitPopup_ShowMenu(self, menu, unit);
        end
end


Fizzlemizz 06-20-19 05:22 PM

Thank you for confirming. It looks like it has been reported.

shervin 07-04-19 09:51 AM

luacheck file
 
What do you guys use the luacheck file for?
Is it possible to use the luacheck file in Visual Studio?
I use Visual Studio 2017 + BabeLua extension


All times are GMT -6. The time now is 03:02 AM.

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