Drawing a square (basic noob question)
Hi,
I'm trying to draw a red square. I've searched for over an hour and it seems the "backdrop" api was changed in 9.0 Anyway, here is my code: Code:
function HelloWorld() This displays nothing however. I'd appreciate if someone could please point me in the right direction... |
It might be that you have to use the full set of options with SetBackdrop. Take a look at https://wowpedia.fandom.com/wiki/API_Frame_SetBackdrop where it gives you a more complete example.
|
If you just want a coloured square, it might be easier to use a texture:
Lua Code:
|
Quote:
Although I didn't call SetAllPoints. What does it do? It seems to work fine without that call. |
Quote:
Lua Code:
|
All times are GMT -6. The time now is 07:50 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI