Quantcast
WoWInterface - View Single Post - Minimap Textures Library?
View Single Post
07-14-20, 05:38 PM   #7
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 227
Originally Posted by elcius View Post
just place them on a 64x64 grid as they are numbered
If I wanted to do this, I would need the fileID of every tile, right?


I can do
Code:
local testFrame = CreateFrame("Frame", nil, UIParent)
testFrame:SetSize(512, 512)
testFrame:SetPoint("CENTER", 0, 0)

local box = testFrame:CreateTexture()
box:SetAllPoints()
box:SetTexture(207980)

But
Code:
box:SetTexture("world/minimaps/kalimdor/map32_31.blp")
does not work (any more?).


So I guess I would need a mapping from filename -> fileId somewhere in my lua code?
Is there a conveniant way to get this?

EDIT: Is there a more conveniant way than to manually create a file like this?
https://gist.github.com/LudiusMaximu...e8ea53d85ec11f
__________________
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 07-14-20 at 06:11 PM.
  Reply With Quote