I am having an issue with a setting the opacity of an instrument.
To eliminate my code as a possibility of the source, I created a new test panel, added 2 instruments and am using the following code on the panel's logic.lua script.
test1 = instrument_get("aedc8040-4d27-4ec4-b22e-2f1d1a4a8c96")
test2 = instrument_get("4538f8f5-c340-4cb5-0d76-8020899292d7")
opacity(test1,0)
opacity(test2,0)
Am I forgetting or missing something? Last time i knew the code worked was on 3.x. If its a bug, I will work on other things until it gets resolved.
Thanks in advance
Patrick
Instrument Opacity no longer works (BETA 26)
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Instrument Opacity no longer works (BETA 26)
Hi,
That may be a bug.
Did you try visibility instead?
Keith
That may be a bug.
Did you try visibility instead?
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Instrument Opacity no longer works (BETA 26)
Thanks...I will try that tonight!
Re: Instrument Opacity no longer works (BETA 26)
visibility does work but opacity does not. The reason I use opacity is because after the sun starts setting, I change the panel opacity and the instrument opacity to dim the panel. When the nav lights are turned on, I set the opacity back to 100% and it looks illuminated.
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Instrument Opacity no longer works (BETA 26)
Hi,Pkaser wrote: ↑Wed Dec 08, 2021 11:44 pm visibility does work but opacity does not. The reason I use opacity is because after the sun starts setting, I change the panel opacity and the instrument opacity to dim the panel. When the nav lights are turned on, I set the opacity back to 100% and it looks illuminated.
OK perhaps something for @Ralph & @Corjan to look at.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Instrument Opacity no longer works (BETA 26)
Hi,
Found and fixed. Will push a new BETA shortly.
Thanks for letting me know,
Corjan
Found and fixed. Will push a new BETA shortly.
Thanks for letting me know,
Corjan
Re: Instrument Opacity no longer works (BETA 26)
Thank you @Corjan ! Works like a champ now