187
edits
(added example of the text handler concept.) |
|||
Line 141: | Line 141: | ||
: | : | ||
:Cheers, [[User:Gijs|Gijs]] 08:19, 5 December 2010 (UTC) | :Cheers, [[User:Gijs|Gijs]] 08:19, 5 December 2010 (UTC) | ||
I've done a proof-of-concept of the text handler and display, there is probably more that could be done with this, but it works quite nicely, just need a way to style each line now? | |||
http://gitorious.org/airbus-aircraft/a380/blobs/master/Nasal/TextRegion.nas | |||
http://gitorious.org/airbus-aircraft/a380/blobs/master/XML/FlightDeck/FrontPanel/eicas.xml | |||
and in my system.nas (I think from memory) I declare at the beginning (so it's not inside any function and acts like a global var) | |||
ewdChecklist = TextRegion.new(5, 50, "/instrumentation/ewd/checklists"); | |||
then I have a update_ewd() function where I can do the following; | |||
if (getprop("/controls/gear/brake-parking") == 1) { | |||
ewdChecklist.append("PARK BRAKE ON"); | |||
} | |||
if (getprop("/instrumentation/ewd/flap-overspeed") == 1) { | |||
ewdChecklist.append("FLAP OVERSPEED"); | |||
} | |||
ewdChecklist.reset(); | |||
[[User:Scotth1|Scotth1]] 12:19, 6 December 2010 (UTC) | |||
== Bottom up design for virtual screen implementation (params) == | == Bottom up design for virtual screen implementation (params) == |
edits