mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
[xswiftbus] Plane View Menu
FSX/P3D have a nice feature to follow a remote aircraft with the camera. X-Plane was missing this feature, since for X-Plane the remote aircrafts are not known. However, from a plugin point of view, we know them and where they are. So we can manually control the camera and provide a similar feature. This is still very simple. As soon as you move the mouse, the PoV angle will change. In future updates, it should be change only while the right mouse button is pressed.
This commit is contained in:
@@ -32,6 +32,7 @@ namespace XSwiftBus
|
||||
m_toggleMessageWindowMenuItem = m_menu.item("Toggle Message Window", [this] { if(m_service) { m_service->toggleMessageBoxVisibility(); } });
|
||||
// m_startServerMenuItems.push_back(m_menu.item("Start server on system bus", [this]{ startServer(BlackMisc::CDBusServer::systemBusAddress()); }));
|
||||
// m_startServerMenuItems.push_back(m_menu.item("Start server on localhost P2P", [this]{ startServer(BlackMisc::CDBusServer::p2pAddress("localhost")); }));
|
||||
m_planeViewSubMenu = m_menu.subMenu("Plane View");
|
||||
|
||||
m_dbusThread = std::thread([this]()
|
||||
{
|
||||
@@ -71,6 +72,8 @@ namespace XSwiftBus
|
||||
m_traffic = new CTraffic(m_dbusConnection.get());
|
||||
m_weather = new CWeather(m_dbusConnection.get());
|
||||
|
||||
m_traffic->setPlaneViewMenu(m_planeViewSubMenu);
|
||||
|
||||
INFO_LOG("XSwiftBus started.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user