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 976c813..f2c9000 100644 --- a/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut +++ b/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-common-func.gnut @@ -3,7 +3,7 @@ globalize_all_functions global string pulsePrefix -global bool pulseSuccessBool = true +global bool pulseFailure = true table withMapName = {} void function pulsePrefixSet() //Sets our prefix { @@ -31,16 +31,16 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab } else { pulseData[tablepath] <- DecodedJSON } - pulseSuccessBool = false + pulseFailure = false } else { - pulseSuccessBool = true + pulseFailure = true pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL)) } } void functionref (HttpRequestFailure) onFailure = void function(HttpRequestFailure failure) : (givenURL) { pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL)) - pulseSuccessBool = true + pulseFailure = true } foreach (key, value in parameterTable) { diff --git a/mods/ToneAPI.pulse/mod/scripts/vscripts/ui/menu_lobby.nut b/mods/ToneAPI.pulse/mod/scripts/vscripts/ui/menu_lobby.nut index 3a2be2f..530042a 100644 --- a/mods/ToneAPI.pulse/mod/scripts/vscripts/ui/menu_lobby.nut +++ b/mods/ToneAPI.pulse/mod/scripts/vscripts/ui/menu_lobby.nut @@ -542,10 +542,10 @@ void function Lobby_RefreshButtons() void function GetStats() { - Hud_SetLocked(file.statsButton, pulseSuccessBool) + Hud_SetLocked(file.statsButton, pulseFailure) waitthread pulseGetData() wait 0.5 //temporary - Hud_SetLocked(file.statsButton, pulseSuccessBool) + Hud_SetLocked(file.statsButton, pulseFailure) } void function OnLobbyMenu_Open()