mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Add new command to jump to previous plane in follow plane view
ref T269
This commit is contained in:
committed by
Klaus Basan
parent
e55103ccdf
commit
87ba7183cc
@@ -134,6 +134,7 @@ namespace XSwiftBus
|
||||
void emitPlaneAddingFailed(const std::string &callsign);
|
||||
void enableFollowPlaneView(const std::string &callsign);
|
||||
void followNextPlane();
|
||||
void followPreviousPlane();
|
||||
|
||||
static int preferences(const char *section, const char *name, int def);
|
||||
static float preferences(const char *section, const char *name, float def);
|
||||
@@ -169,12 +170,12 @@ namespace XSwiftBus
|
||||
CMenu m_followPlaneViewSubMenu;
|
||||
std::unordered_map<std::string, CMenuItem> m_followPlaneViewMenuItems;
|
||||
std::string m_followPlaneViewCallsign;
|
||||
CCommand m_followPlaneViewNextCommand;
|
||||
CCommand m_followPlaneViewPreviousCommand;
|
||||
|
||||
DataRef<xplane::data::sim::graphics::view::world_render_type> m_worldRenderType;
|
||||
bool m_emitSimFrame = true;
|
||||
|
||||
CCommand m_followPlaneViewNextCommand;
|
||||
|
||||
int getPlaneData(void *id, int dataType, void *io_data);
|
||||
static int getPlaneData(void *id, int dataType, void *io_data, void *self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user