Thread Tools Display Modes
08/01/17, 07:40 AM   #1
p6kocka
Join Date: Apr 2014
Posts: 19
How to add transparency / alpha color to an existing addon

How to add alpha to exisitng addon with editable colors?
It looks like this:

type = "colorpicker",
name = "No Target Colour",
getFunc = function() return RAEIH.HexToRGB(RAEIH.SavedVars.ReticleRCNoTarget) end,
setFunc = function(r, g, b) RAEIH.SavedVars.ReticleRCNoTarget = RAEIH.RGBToHex(r, g, b)
RAEIH.SetReticle()
RAEIH.FormatReticle() end,
width = "n",
default =
{
r = RAEIH.HexToR(RAEIH.DefaultSavedVars.ReticleRCNoTarget),
g = RAEIH.HexToG(RAEIH.DefaultSavedVars.ReticleRCNoTarget),
b = RAEIH.HexToB(RAEIH.DefaultSavedVars.ReticleRCNoTarget)

I just want to to set alpha to 0 for this reticle with no target. Just to disable reticle in this case.
  Reply With Quote
08/01/17, 09:07 AM   #2
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
I'm not in game to check, but rather than setting the transparency to 0, could you use :SetHidden(true)?
  Reply With Quote
08/01/17, 09:09 AM   #3
p6kocka
Join Date: Apr 2014
Posts: 19
Originally Posted by Rhyono View Post
I'm not in game to check, but rather than setting the transparency to 0, could you use :SetHidden(true)?
Where to put it exact to the text pls?


OK. I´ve just got it... thanks for your help

Last edited by p6kocka : 08/01/17 at 09:34 AM.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » How to add transparency / alpha color to an existing addon


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