mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
Split "Display and rendered" aircraft,
just to avoid accidentally disabling aircraft when using "follow"
This commit is contained in:
committed by
Mat Sutcliffe
parent
dab907df8c
commit
cfb2fa9d22
@@ -102,7 +102,13 @@ namespace BlackGui
|
||||
|
||||
const CMenuAction &CMenuAction::subMenuDisplayModels()
|
||||
{
|
||||
static const CMenuAction subdir(CIcons::appAircraft16(), "Display and render models", CMenuAction::pathClientSimulationDisplay());
|
||||
static const CMenuAction subdir(CIcons::appAircraft16(), "Render models", CMenuAction::pathClientSimulationRender());
|
||||
return subdir;
|
||||
}
|
||||
|
||||
const CMenuAction &CMenuAction::subMenuRenderModels()
|
||||
{
|
||||
static const CMenuAction subdir(CIcons::appAircraft16(), "Display models", CMenuAction::pathClientSimulationDisplay());
|
||||
return subdir;
|
||||
}
|
||||
|
||||
@@ -494,6 +500,12 @@ namespace BlackGui
|
||||
return this->addAction(CMenuAction::subMenuDisplayModels());
|
||||
}
|
||||
|
||||
CMenuAction CMenuActions::addMenuRenderModels()
|
||||
{
|
||||
if (this->containsMenu(CMenuAction::subMenuRenderModels().getPath())) { return CMenuAction(); }
|
||||
return this->addAction(CMenuAction::subMenuRenderModels());
|
||||
}
|
||||
|
||||
CMenuAction CMenuActions::addMenuDataTransfer()
|
||||
{
|
||||
if (this->containsMenu(CMenuAction::subMenuDataTransfer().getPath())) { return CMenuAction(); }
|
||||
|
||||
@@ -165,6 +165,9 @@ namespace BlackGui
|
||||
//! Client simulation/display related
|
||||
static const QString &pathClientSimulationDisplay() { static const QString p("ClientSimulation.Display/Display"); return p; }
|
||||
|
||||
//! Client simulation/display related
|
||||
static const QString &pathClientSimulationRender() { static const QString p("ClientSimulation.Display/Render"); return p; }
|
||||
|
||||
//! Client simulation/display related
|
||||
static const QString &pathClientSimulationTransfer() { static const QString p("ClientSimulation.Transfer/Transfer"); return p; }
|
||||
|
||||
@@ -222,6 +225,7 @@ namespace BlackGui
|
||||
static const CMenuAction &subMenuConsolidateModels();
|
||||
static const CMenuAction &subMenuCom();
|
||||
static const CMenuAction &subMenuDisplayModels();
|
||||
static const CMenuAction &subMenuRenderModels();
|
||||
static const CMenuAction &subMenuDataTransfer();
|
||||
//! @}
|
||||
|
||||
@@ -372,6 +376,9 @@ namespace BlackGui
|
||||
//! Add display model menu
|
||||
CMenuAction addMenuDisplayModels();
|
||||
|
||||
//! Add render model menu
|
||||
CMenuAction addMenuRenderModels();
|
||||
|
||||
//! Add data transfer menu
|
||||
CMenuAction addMenuDataTransfer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user