mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 20:50:19 -06:00
Issue/2768 (#2872)
* Rename remote scripting property to reflect better what it does * Change the remote scripting name in all modules * Update all scripts and action calls to use the new property for sync * Simplify code that decides whether to send actions to nodes and peers * Move Lua console hint text to be right top aligned * Update Lua script topic * Added new JSON key whether or not the script should be synced to other nodes and peers * Per default all scripts sync to everyone In the next full release, we should have two separate keys that decides whether to sync and send to nodes and peers separately * Add some comments that explain why there is no sync for some scripts * Make sync argument in trigger action function BooleanType
This commit is contained in:
@@ -55,7 +55,11 @@ void GuiActionComponent::render() {
|
||||
for (const std::pair<const K, V>& p : binds) {
|
||||
boundActions.insert(p.second);
|
||||
if (ImGui::Button(ghoul::to_string(p.first).c_str())) {
|
||||
global::actionManager->triggerAction(p.second, ghoul::Dictionary());
|
||||
global::actionManager->triggerAction(
|
||||
p.second,
|
||||
ghoul::Dictionary(),
|
||||
interaction::ActionManager::ShouldBeSynchronized::Yes
|
||||
);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
||||
@@ -78,7 +82,11 @@ void GuiActionComponent::render() {
|
||||
}
|
||||
|
||||
if (ImGui::Button(action.identifier.c_str())) {
|
||||
global::actionManager->triggerAction(action.command, ghoul::Dictionary());
|
||||
global::actionManager->triggerAction(
|
||||
action.command,
|
||||
ghoul::Dictionary(),
|
||||
interaction::ActionManager::ShouldBeSynchronized::Yes
|
||||
);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user