From 87d4e7b5d491a81b3d1145cd2056b3938c9f3c45 Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 26 Mar 2000 17:19:39 +0000 Subject: [PATCH] David Megginson: I've created a couple of very simple textures: one for 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 | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index c75d52d76..3ee97a16c 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -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; } -- 2.39.5