]> git.mxchange.org Git - flightgear.git/commitdiff
David Megginson: I've created a couple of very simple textures: one for
authorcurt <curt>
Sun, 26 Mar 2000 17:19:39 +0000 (17:19 +0000)
committercurt <curt>
Sun, 26 Mar 2000 17:19:39 +0000 (17:19 +0000)
the NAV face, and one for a NAV needle (just a thin, slightly blurry red
line for now).  I'm attaching my two new textures, together with my newest
panel.cxx (modified from Alex's to use the new textures).  Obviously,
there's a lot more to do, including TO/FROM indicators, but this is a
start, and it's fun.

src/Cockpit/panel.cxx

index c75d52d766c25e2a9f2403e3d937fc47aa15533f..3ee97a16c7ed635f4bec440db7d471da7025dcfb 100644 (file)
@@ -395,20 +395,17 @@ createNAV1 (int x, int y)
                          FGSteam::get_HackOBS1_deg,
                          -360.0, 360.0, -1.0, 0.0);
                                // Layer 1: long needle
-  inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
+  inst->addLayer(1, createTexture("Textures/Panel/nav-needle.rgb"));
   inst->addTransformation(1, FGInstrumentLayer::XSHIFT,
                          FGSteam::get_HackVOR1_deg,
                          -10.0, 10.0, SIX_W / 40.0, 0.0);
-  inst->addTransformation(1, FGInstrumentLayer::YSHIFT,
-                         -SIX_W / 4.4 );
-  inst->addLayer(2, createTexture("Textures/Panel/long-needle.rgb"));
+  inst->addLayer(2, createTexture("Textures/Panel/nav-needle.rgb"));
   inst->addTransformation(2, FGInstrumentLayer::YSHIFT,
                          FGSteam::get_HackGS_deg,
                          -1.0, 1.0, SIX_W / 5.0, 0.0);
-  inst->addTransformation(2, FGInstrumentLayer::XSHIFT,
-                         -SIX_W / 4.4 );
   inst->addTransformation(2, FGInstrumentLayer::ROTATION,
                          90 );
+  inst->addLayer(3, createTexture("Textures/Panel/nav-face.rgb"));
 
   return inst;
 }
@@ -427,12 +424,13 @@ createNAV2 (int x, int y)
   inst->addTransformation(0, FGInstrumentLayer::ROTATION,
                          FGSteam::get_HackOBS2_deg,
                          -360.0, 360.0, -1.0, 0.0);
-  inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
+  inst->addLayer(1, createTexture("Textures/Panel/nav-needle.rgb"));
   inst->addTransformation(1, FGInstrumentLayer::XSHIFT,
                          FGSteam::get_HackVOR2_deg,
                          -10.0, 10.0, SIX_W / 40.0, 0.0);
-  inst->addTransformation(1, FGInstrumentLayer::YSHIFT,
-                         -SIX_W / 4.4 );
+//   inst->addTransformation(1, FGInstrumentLayer::YSHIFT,
+//                       -SIX_W / 4.4 );
+  inst->addLayer(2, createTexture("Textures/Panel/nav-face.rgb"));
 
   return inst;
 }