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.
This commit is contained in:
parent
9517c0b82d
commit
87d4e7b5d4
1 changed files with 7 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue