Rename pulseSuccessBool to pulseFailure

This commit is contained in:
okvdai
2023-06-20 20:21:49 +02:00
parent ba0c4d11c7
commit df4ee8fb0c
2 changed files with 6 additions and 6 deletions
@@ -3,7 +3,7 @@ globalize_all_functions
global string pulsePrefix global string pulsePrefix
global bool pulseSuccessBool = true global bool pulseFailure = true
table withMapName = {} table withMapName = {}
void function pulsePrefixSet() //Sets our prefix void function pulsePrefixSet() //Sets our prefix
{ {
@@ -31,16 +31,16 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
} else { } else {
pulseData[tablepath] <- DecodedJSON pulseData[tablepath] <- DecodedJSON
} }
pulseSuccessBool = false pulseFailure = false
} else { } else {
pulseSuccessBool = true pulseFailure = true
pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL)) pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL))
} }
} }
void functionref (HttpRequestFailure) onFailure = void function(HttpRequestFailure failure) : (givenURL) void functionref (HttpRequestFailure) onFailure = void function(HttpRequestFailure failure) : (givenURL)
{ {
pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL)) pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL))
pulseSuccessBool = true pulseFailure = true
} }
foreach (key, value in parameterTable) foreach (key, value in parameterTable)
{ {
@@ -542,10 +542,10 @@ void function Lobby_RefreshButtons()
void function GetStats() void function GetStats()
{ {
Hud_SetLocked(file.statsButton, pulseSuccessBool) Hud_SetLocked(file.statsButton, pulseFailure)
waitthread pulseGetData() waitthread pulseGetData()
wait 0.5 //temporary wait 0.5 //temporary
Hud_SetLocked(file.statsButton, pulseSuccessBool) Hud_SetLocked(file.statsButton, pulseFailure)
} }
void function OnLobbyMenu_Open() void function OnLobbyMenu_Open()