Instrument Opacity no longer works (BETA 26)

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
Pkaser
Posts: 61
Joined: Mon Jul 15, 2019 7:15 pm

Instrument Opacity no longer works (BETA 26)

#1 Post by Pkaser »

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

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: Instrument Opacity no longer works (BETA 26)

#2 Post by Keith Baxter »

Hi,

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 

Pkaser
Posts: 61
Joined: Mon Jul 15, 2019 7:15 pm

Re: Instrument Opacity no longer works (BETA 26)

#3 Post by Pkaser »

Thanks...I will try that tonight!

Pkaser
Posts: 61
Joined: Mon Jul 15, 2019 7:15 pm

Re: Instrument Opacity no longer works (BETA 26)

#4 Post by Pkaser »

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.

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: Instrument Opacity no longer works (BETA 26)

#5 Post by Keith Baxter »

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.
Hi,

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 

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Instrument Opacity no longer works (BETA 26)

#6 Post by Corjan »

Hi,

Found and fixed. Will push a new BETA shortly.

Thanks for letting me know,
Corjan

Pkaser
Posts: 61
Joined: Mon Jul 15, 2019 7:15 pm

Re: Instrument Opacity no longer works (BETA 26)

#7 Post by Pkaser »

Thank you @Corjan ! Works like a champ now

Post Reply