mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 09:20:26 -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);
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ void GuiOriginComponent::render() {
|
||||
bool result = ImGui::Combo("Origin", &position, nodeNames.c_str());
|
||||
|
||||
if (result) {
|
||||
LINFO("openspace.setOrigin('" + nodes[position]->name() + "');");
|
||||
OsEng.scriptEngine()->queueScript("openspace.setOrigin('" + nodes[position]->name() + "');");
|
||||
LINFO("openspace.setPropertyValue('Interaction.origin', '" + nodes[position]->name() + "');");
|
||||
OsEng.scriptEngine()->queueScript("openspace.setPropertyValue('Interaction.origin', '" + nodes[position]->name() + "');");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user