img_del or img_remove?

Help creating logic scripts for Air Manager Instruments

Moderators: russ, Ralph

Post Reply
Message
Author
JackZ
Posts: 2262
Joined: Mon Feb 22, 2016 1:02 pm

img_del or img_remove?

#1 Post by JackZ »

Still investigating for the drawing of a GPS FPL. Can retrieve the next and previous waypoint and locate these WPT on the screen, and even have them rotate and move with the plane's changes of position/heading, but when I connect the dots using the graphic library, I'm facing the problem of "removing" the old lines.

The question is simple: is there any plans for an inverse to img_add(), such as img_del() or img_remove()?

In fact I figured that this is mandatory in order to "move" an element of the graphic library such as the lines. As soon as the bearing or the distance changes, the waypoint fix obviously "moves" in space and the "old" connecting magenta line ( from the previous to the next WPT) is no longer valid and needs to be removed and redrawn.

I could write a black line over the previous one before drawing the new one, but that means recreating again a new object, and to track and maintain a list of previously drawn lines. In fact it's undoable that way, hence my question.
Capture.PNG
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

Post Reply