mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 16:59:37 -05:00
Remove old script messages for changing the origin and the coordinate system
Adapt the onscreen-gui to use the new property mechanism Adapt the Timeline GUI to use the new property mechanism
This commit is contained in:
@@ -381,11 +381,11 @@ void GUI::renderMainWindow() {
|
||||
bool toJupiter = ImGui::Button("Coordinate System to Jupiter");
|
||||
|
||||
if (toSun)
|
||||
OsEng.scriptEngine()->queueScript("openspace.changeCoordinateSystem('Sun');");
|
||||
OsEng.scriptEngine()->queueScript("openspace.setPropertyValue('Interaction.coordinateSystem', 'Sun');");
|
||||
if (toPluto)
|
||||
OsEng.scriptEngine()->queueScript("openspace.changeCoordinateSystem('Pluto');");
|
||||
OsEng.scriptEngine()->queueScript("openspace.setPropertyValue('Interaction.coordinateSystem', 'Pluto');");
|
||||
if (toJupiter)
|
||||
OsEng.scriptEngine()->queueScript("openspace.changeCoordinateSystem('Jupiter');");
|
||||
OsEng.scriptEngine()->queueScript("openspace.setPropertyValue('Interaction.coordinateSystem', 'Jupiter');");
|
||||
|
||||
ImGui::Checkbox("Help", &_help._isEnabled);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user