Quantcast
WoWInterface - Search Results
Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: elcius
Forum: PTR API and Graphics Changes 06-21-18, 12:57 AM
Replies: 31
Views: 20,571
Posted By elcius
WorldMapFrame.ScrollContainer.GetCursorPosition =...

WorldMapFrame.ScrollContainer.GetCursorPosition = function(f)
local x,y = MapCanvasScrollControllerMixin.GetCursorPosition(f);
local s = WorldMapFrame:GetScale();
return x/s, y/s;
end
Forum: PTR API and Graphics Changes 06-15-18, 09:38 PM
Replies: 31
Views: 20,571
Posted By elcius
local MapRects = {}; local TempVec2D =...

local MapRects = {};
local TempVec2D = CreateVector2D(0,0);
function GetPlayerMapPos(MapID)
local R,P,_ = MapRects[MapID],TempVec2D;
if not R then
R = {};
_, R[1] =...
Showing results 1 to 2 of 2