From 7b4180009fabb97821ece08847e34094ad347a44 Mon Sep 17 00:00:00 2001 From: baletiballo <75846481+baletiballo@users.noreply.github.com> Date: Sat, 18 Jan 2025 17:45:37 +0100 Subject: [PATCH] slightly more descriptive Comments --- Assets/Scripts/InteractionEngine/FactHandling/Facts/Fact.cs | 2 +- Assets/Scripts/InventoryStuff/ActiveScroll.cs | 5 ++++- .../scroll_interaction/Drop_facts.js | 4 ---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Assets/Scripts/InteractionEngine/FactHandling/Facts/Fact.cs b/Assets/Scripts/InteractionEngine/FactHandling/Facts/Fact.cs index 1bafe7d9..6a3e9b6e 100644 --- a/Assets/Scripts/InteractionEngine/FactHandling/Facts/Fact.cs +++ b/Assets/Scripts/InteractionEngine/FactHandling/Facts/Fact.cs @@ -425,7 +425,7 @@ public bool rename(string newLabel, FactRecorder name_space) //freeAutoLabel(_Facts); //should be done already if (CommunicationEvents.VerboseURI) - Debug.Log("Server removed Fact:\n" + this.Id); + Debug.Log("Removed Fact:\n" + this.Id + ". Since MMT cannot yet delete Facts, it is still on the Server."); } /// <summary> diff --git a/Assets/Scripts/InventoryStuff/ActiveScroll.cs b/Assets/Scripts/InventoryStuff/ActiveScroll.cs index 6b1d6a18..1900d3b0 100644 --- a/Assets/Scripts/InventoryStuff/ActiveScroll.cs +++ b/Assets/Scripts/InventoryStuff/ActiveScroll.cs @@ -70,7 +70,7 @@ public class ActiveScroll : MonoBehaviour private Scroll _Scroll; /// <summary> - /// The currently active scroll + /// Base version of the currently active scroll /// </summary> public Scroll Scroll { @@ -342,6 +342,9 @@ public void SendCurrentFactAssignments() StartCoroutine(_SendAssignments()); } + /// <summary> + /// Send the assignment to the MMT-Server, unpack the answer and check it for Errors. If everything is fine hand it over to <see cref="_ProcessScrollDynamicInfo(ScrollDynamicInfo)"/> + /// </summary> private IEnumerator _SendAssignments() { if (DynamicScrollInQue) diff --git a/Assets/StreamingAssets/StreamToDataPath_withHandler/scroll_interaction/Drop_facts.js b/Assets/StreamingAssets/StreamToDataPath_withHandler/scroll_interaction/Drop_facts.js index d74a0862..0916b3d9 100644 --- a/Assets/StreamingAssets/StreamToDataPath_withHandler/scroll_interaction/Drop_facts.js +++ b/Assets/StreamingAssets/StreamToDataPath_withHandler/scroll_interaction/Drop_facts.js @@ -198,7 +198,3 @@ function addDropZoneEventListeners() { }) } //addDropZoneEventListeners() - -console.log("worked") -const test = document.getElementById('test'); -test.innerText += ' successful' -- GitLab