Howto:Coding a simple Nasal Framework: Difference between revisions

Jump to navigation Jump to search
Switch from {{git link}} to {{fgaddon source}} to provide a functional link to the correct infrastructure.
(Switch from {{git link}} to {{fgaddon source}} to provide a functional link to the correct infrastructure.)
 
Line 266: Line 266:
== Moving huge conditionals into hash functions ==
== Moving huge conditionals into hash functions ==


The next problem we want to tackle is getting rid of huge conditional blocks inside the '''update()''' method: {{Git link|gitorious|fg/fgdata|master|Aircraft/747-400/Models/Cockpit/Instruments/PFD/PFD.nas}}
The next problem we want to tackle is getting rid of huge conditional blocks inside the '''update()''' method: {{fgaddon source|path=Aircraft/747-400/Models/Cockpit/Instruments/PFD/PFD.nas}}


<syntaxhighlight lang="nasal" line="GESHI_FANCY_LINE_NUMBERS" start="258">
<syntaxhighlight lang="nasal" line="GESHI_FANCY_LINE_NUMBERS" start="258">

Navigation menu