AceConfig-3.0 Options: How to pass imageCoords?
In AceConfig-3.0 Options you can set an image to be displayed instead of an execute button.
But I don't understand how you are supposed to pass the imageCoords, as it says in the manual:
The 1st return value is the image string, the 2nd and 3rd is are width and height. But what about the imageCoords table?? Lua Code:
|
Lua Code:
|
Brilliant!! Thanks a lot. Kind of stupid that I did not think of this, but this "2nd and 3rd value" thing got me thinking that this is the only way. It works now.
|
Yes, if you wanted to do it that way, then it'd look like this.
Lua Code:
But if your image is static, then don't create an extra function. |
All times are GMT -6. The time now is 02:13 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI