Setalpha and coloured text.
I am trying to make the quest tracker panel transparent.
I've tried: Code:
ZO_FocusedQuestTrackerPanel:SetAlpha(0.5) Does anyone know how to make all the text transparent? Failing that, is anyone able to tell me why SetAlpha() won't act upon the colored text? |
Running
Lua Code:
In the game worked just fine for me, the whole Tracked Quest component became transparent. You sure you tested it right? |
I just realized I didn't mention I'm using the gamepad UI. You are right: When I tested the code in non-gamepad mode, it makes the whole quest tracker transparent. In gamepad mode, it only makes the goal transparent while leaving the yellow quest title untouched.
Any ideas as to the cause of that? |
Quote:
You have to change the alpha for 3 separated controls, not sure why since they all has the same parent, anyway, here it is: Lua Code:
There's also "ZO_FocusedQuestTrackerPanelContainerQuestContainerTrackedHeader2" though I don't know in which situation this one appear, since normally it seems unused. |
Thank you very much for the help. This seems to do the trick.
|
Does anyone know why having the line
Code:
ZO_FocusedQuestTrackerPanelContainerQuestContainerTrackedHeader1:SetAlpha(0.5) Code:
/script ZO_FocusedQuestTrackerPanelContainerQuestContainerTrackedHeader1:SetAlpha(0.5) |
The addon is calling it before it exists, perhaps?
|
I have attempted to use
Code:
zo_callLater(function () ZO_FocusedQuestTrackerPanelContainerQuestContainerTrackedHeader1:SetAlpha(0.5) end, 10000) Performing the same command with "/script" slash command in game results in success. If the addon is calling it before it exists, is there some usual way to overcome this? Please forgive me if the question is a silly one, as I'm a bit new to this. |
Quote:
It's kinda late here and I'm sleepy as hell, is it okay if I get this tomorrow? :P |
Of course it is. I'm grateful for any help you are able to give whenever!
Edit: I have arrived at a solution thanks to what Rhyono said earlier. I found some information about registering for add on loaded event and combined it with zo_callLater, and I now have a working script. Thanks everyone. |
Quote:
Now about the AddOnLoaded event, you should ALWAYS wait it to be fired to begin your actual modifications. You can prepare stuff outside, set tables, define functions, but only actually do something after it's triggered. i.e. Lua Code:
|
All times are GMT -6. The time now is 10:01 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI