Tooltip and SetAlpha - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-28-20, 05:05 PM   #1
A Murloc Raider
Join Date: Feb 2020
Posts: 6
Arrow Tooltip and SetAlpha

Hello, I'm very new to creating scripts in an addon format. I'm not new to simply writing them. I created an account because I cannot find this information online, so I'm hoping the pros here can help.

I'm trying to write a script that sets the opacity of the tooltip to be 0.5. When I test it (while mousing over something and typing the script directly into the chat window), it works; however, as soon as I move away from the object I'm mousing over, it returns to be 100% opacity. Here is how I write the script in game:


If I put this into my addon, it changes nothing, however when I put GameTooltip:SetScale(0.8) into the addon, it permanently changes the size of the tooltip without issue.

Can you explain why this is happening and what I can do to fix this issue?

Thank you in advance.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Tooltip and SetAlpha

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