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:
Malin E
2023-09-07 13:21:29 +02:00
committed by GitHub
parent b49a8704dc
commit 4447de87f5
43 changed files with 449 additions and 165 deletions

View File

@@ -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();