mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T245, Ref T261, added functions for "follow plane", "setup changed" signal in context and simulator interface
This commit is contained in:
@@ -379,13 +379,19 @@ namespace BlackSimPlugin
|
||||
m_monitorWidget->appendSendingCall("ownAircraftModelChanged", model.toQString());
|
||||
}, Qt::QueuedConnection));
|
||||
|
||||
m_connectionGuard.append(connect(this, &ISimulator::renderRestrictionsChanged, this, [ = ](bool restricted, bool enabled, int maxAircraft, const BlackMisc::PhysicalQuantities::CLength & maxRenderedDistance)
|
||||
m_connectionGuard.append(connect(this, &ISimulator::renderRestrictionsChanged, this, [ = ](bool restricted, bool enabled, int maxAircraft, const CLength & maxRenderedDistance)
|
||||
{
|
||||
if (!m_monitorWidget) return;
|
||||
static const QString params("restricted: %1 enabled: %2 max aircraft: %3");
|
||||
m_monitorWidget->appendSendingCall("renderRestrictionsChanged", params.arg(boolToYesNo(restricted), boolToYesNo(enabled)).arg(maxAircraft), maxRenderedDistance.valueRoundedWithUnit(CLengthUnit::m(), 1));
|
||||
}, Qt::QueuedConnection));
|
||||
|
||||
m_connectionGuard.append(connect(this, &ISimulator::interpolationAndRenderingSetupChanged, this, [ = ]()
|
||||
{
|
||||
if (!m_monitorWidget) return;
|
||||
m_monitorWidget->appendSendingCall("interpolationAndRenderingSetupChanged");
|
||||
}, Qt::QueuedConnection));
|
||||
|
||||
m_connectionGuard.append(connect(this, &ISimulator::aircraftRenderingChanged, this, [ = ](const CSimulatedAircraft & aircraft)
|
||||
{
|
||||
if (!m_monitorWidget) return;
|
||||
|
||||
Reference in New Issue
Block a user