C++ Question redraw button texture on my VC

fausto

FOI SuperMod
Joined
Jul 13, 2008
Messages
797
Reaction score
2
Points
0
Location
Monza (Milan)
Hi guys.. i have a problem.. again..
I have a virtual cockpit and i want to:

1) press a VC button (kill rotation) by defining an active VC area.. note that the pressed button is an animation..

2) one pressed, i want the kill rotation button to change its texture to light up it.. i suppose i have to use the clbkVCRedrawEvent for that..

Now, how can i obtain this? Which code lines? I was able to create the active vc area and press it and activate Kill rotation in the simulation, but i can't change the light up texture..
Please help!!
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,660
Reaction score
2,381
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
You would need to define an area for redrawing on a texture, the redraw events are then either triggered automatically or once you demand a repaint from orbiters API.
 
Top