From b2cb9586735c0ad4fa07d70a0cec03288d0d6c5d Mon Sep 17 00:00:00 2001 From: okvdai <108829133+okvdai@users.noreply.github.com> Date: Thu, 8 Jun 2023 12:56:38 +0200 Subject: [PATCH] Fix map piecharts --- .../ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut b/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut index 2a12562..499091b 100644 --- a/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut +++ b/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut @@ -3,6 +3,7 @@ globalize_all_functions global string pulsePrefix +table withMapName = {} void function pulsePrefixSet() //Sets our prefix { pulsePrefix = format("\x1b[38;2;%i;%i;%im[PULSE]\x1b[0m", 255, 178, 102) @@ -23,7 +24,6 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab if ("map" in parameterTable) { string mapName = expect string(parameterTable["map"]) - table withMapName = {} withMapName[mapName] <- DecodedJSON pulseData[tablepath] <- withMapName } else { @@ -37,6 +37,8 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab foreach (key, value in parameterTable) { requestTable[string(key)] <- [string(value)] + pulsePrintt(string(key)) + pulsePrintt(string(value)) } return NSHttpGet(givenURL, requestTable, onSuccess, onFailure) }