GUI Messages: Difference between revisions

Jump to navigation Jump to search
615 bytes removed ,  2 February 2016
m
de-quoting
No edit summary
m (de-quoting)
Line 3: Line 3:
FlightGear is using a simple property-based messaging system which can render GUI messages using propoerty listenenrs and the [[PUI]] GUI system.
FlightGear is using a simple property-based messaging system which can render GUI messages using propoerty listenenrs and the [[PUI]] GUI system.


{{FGCquote
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.
|1= Whatever is written to  
/sim/messages/*  
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.
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=274765#p274765
  | title  = <nowiki>Re: Hiding all notification messages (top of screen)</nowiki>
  | author = <nowiki>Thorsten</nowiki>
  | date  = Feb 2nd, 2016
  | added  = Feb 2nd, 2016
  | script_version = 0.23
  }}
}}


This system is primarily used for the following features:
This system is primarily used by the following features:


* [[Tutorials]]
* [[Tutorials]]
Line 24: Line 12:
* ATC
* ATC


{{FGCquote
None of those are hard-coded, those are all going through the property tree and gui.nas, so you can "disable" things there.
|1= none of those are hard-coded, those are all going through the property tree and gui.nas, so you can "disable" things there.
The higher-level features are limits.nas (or the failure manager) and the tutorial system.
The higher-level features are limits.nas (or the failure manager) and the tutorial system.
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=274745#p274745
  | title  = <nowiki>Re: Hiding all notification messages (top of screen)</nowiki>
  | author = <nowiki>Hooray</nowiki>
  | date  = Feb 1st, 2016
  | added  = Feb 1st, 2016
  | script_version = 0.23
  }}
}}


The corresponding code can be found in gui.nas and screen.nas
The corresponding code can be found in gui.nas and screen.nas


In addition, there's the tooltip system which is meanwhile using the [[Canvas]] 2D rendering API
In addition, there's the tooltip system which is meanwhile using the [[Canvas]] 2D rendering API

Navigation menu