View Single Post
12-28-20, 08:23 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Yes, if you wanted to do it that way, then it'd look like this.
Lua Code:
  1. myOptions = {
  2.      type = "group",
  3.      args = {
  4.           myButton = {
  5.                name = "My Button",
  6.                type = "execute",
  7.                desc = "Click me to do stuff!",
  8.                func = function()
  9.                               --do something here
  10.                          end,
  11.                image = function()
  12.                               return "Interface\\Transmogrify\\Transmogrify", 20, 20
  13.                          end,
  14.                imageCoords = {0.4, 0.6, 0.4, 0.6},
  15.           },
  16.      },
  17. }

But if your image is static, then don't create an extra function.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote