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:
Alexander Bock
2015-07-07 18:52:09 +02:00
parent 2f801a4171
commit 52146a79a6
6 changed files with 28 additions and 44 deletions
+3 -3
View File
@@ -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);