Having issues loading images with Lua..
I'm trying to load the current Image:
However when it loads up in WoW it comes up as a Green box.. From what i know that's caused by the image not being a power of 2.. However the Images Dimensions are 256x64 so they are a power of 2.. I cant see why else the green box would be appearing.. this is the current code I'm using.. Code:
--Create a Frame for UI to be placed in |
If the texture is a power of 2 in size then showing a green box usually means that WoW can't find the texture in the location you provided or, you have placed the texture in the right place but you need to exit wow (all the way out) and re-start as WoW caches file locations only when it loads. Also it needs to be a .blp or a .tga with an alpha layer.
Code:
local frame = CreateFrame("Frame",ShowUF,UIParent) |
Thanks for the fast reply! i managed to get it sorted out thanks, it seems WoW was cached and wouldnt load it. At the moment im trying to get the current players health and mana to fill out the areas in the unitframe. When i get to his area
Code:
local health = UnitHealth(unit); |
You should use "player", self is not a valid unitID.
|
Alright! Thanks a bunch! :)
|
All times are GMT -6. The time now is 10:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI