Quantcast
AceConfig-3.0 Options: Button with empty name and tooltip? - WoWInterface
Thread Tools Display Modes
12-29-20, 07:39 AM   #1
LudiusMaximus
A Frostmaul Preserver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 275
AceConfig-3.0 Options: Button with empty name and tooltip?

I am using the AceConfig-3.0 Options button with a custom image. The image should be self-explanatory so I do not want to clutter up the UI with an extra text below it. This can be achieved by setting name to "". But then, I am getting not tooltip any more. If I set name to " ", I get the tooltip but with a blank line on top.

Lua Code:
  1. type = "execute",
  2. name = "This should just be the tooltip header, but not below the button image.",
  3. image = "Interface\\Transmogrify\\Transmogrify",
  4. imageCoords = {0.533203125, 0.58203125, 0.248046875, 0.294921875},
  5. imageWidth = 25,
  6. imageHeight = 24,
  7. desc = "Some explanatory tooltip text...",

Ideally, a text would still be shown as the golden tootlip header, but not in the UI below the button image. Is there a way to achieve this?

I started looking into what a "custom widget" might be but did not get very far.
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
12-29-20, 12:53 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,817
These AceConfig options tables are an easy way for authors to set up a standardized settings window using the templates provided. If you want to edit too far beyond the template, you need to make a custom options frame (you can use AceGUI directly).

In short, either don't worry about what the name text looks like in the window OR don't worry about what the tooltip looks like if you want to use the templates provided.

Besides, it's never a bad idea to be *as clear as possible* instead of assuming that your image is self-explanatory.
__________________
"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

WoWInterface » Developer Discussions » Lua/XML Help » AceConfig-3.0 Options: Button with empty name and tooltip?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off