jpg texture?
Hello, So i am trying to set a texture frame to a .jpg image file beside my frame. Is there something special i have to do? With my current code it only displays a green box where the image should be at.
Lua Code:
this is how it looks: https://gyazo.com/05493ffe4b4c163bd86e5613c2a159df |
I'm pretty sure you can't use jpg and would need tga. But also try removing C:\\Program Files (x86)\\World of Warcraft\\_retail_\\ from your path file. All you need is the stuff including and after Interface
|
Quote:
|
.tga or .blp texture formats only.
BLP2PNG or BLPNG Converter are tools for converting to/from .blp and .png As mentioned file paths start with "Interface\\" as in "Interface\\Addons\\Myaddon\\MyTexture" You can use \\ or / in your .lua path name "Interface/Addons/Myaddon/MyTexture" |
Also remember it has to be in powers of 2.
ie: 2x2, 4x4, 8x8, 16x16, 32x32, 64x64, 128x128, 256x256, 512x512 and 1024x1024 |
Thanks for the replies everyone!
|
I now have this code but it is still just showing a green box like first gyazo picture :O . I did check if there was something wrong with the "fear.tga" file itself and grabbed a quick icon from elvui package but that did not work either.
Lua Code:
|
Images requirements
try using "Interface/BUTTONS/WHITE8X8" for the texture. If you add a file (including images or code) to to your addons you ,must completely exit and re-start the game before they will be "recognised" |
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
|
All times are GMT -6. The time now is 01:52 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI