20,741
edits
No edit summary |
|||
Line 43: | Line 43: | ||
Whatever is written to <code>/sim/messages/*</code> at runtime is shown on-screen for a few seconds, then moved away. When the next message is written to that node, that is moved on-screen. | Whatever is written to <code>/sim/messages/*</code> at runtime is shown on-screen for a few seconds, then moved away. When the next message is written to that node, that is moved on-screen. | ||
Behind the scenes, this works by using a property listener/callback that is triggered whenever the property tree branch is modified. | Behind the scenes, this works by using a property listener/callback that is triggered whenever the property tree branch is modified. | ||
== Development == | |||
It would make sense to use the Canvas tooltip framework and adapt the screen.nas code accordingly: [[Tooltips]]<ref>{{cite web | |||
|url = https://forum.flightgear.org/viewtopic.php?p=289869#p289869 | |||
|title = <nowiki> Re: canvas vs. on-screen messages - 1:0 </nowiki> | |||
|author = <nowiki> Hooray </nowiki> | |||
|date = Jul 1st, 2016 | |||
|added = Jul 1st, 2016 | |||
|script_version = 0.40 | |||
}}</ref> | |||
== Features == | == Features == |