Merge pulse-loeb-component.nut into pulse-common-func.gnut
This commit is contained in:
@@ -32,11 +32,13 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
|
||||
}
|
||||
} else {
|
||||
pulsePrintt(format("%s, %s is unreachable.", response.statusCode, givenURL))
|
||||
pulseLockStats()
|
||||
}
|
||||
}
|
||||
void functionref (HttpRequestFailure) onFailure = void function(HttpRequestFailure failure) : (givenURL)
|
||||
{
|
||||
pulsePrintt(format("Something went wrong, %s is unreachable", givenURL))
|
||||
pulseLockStats()
|
||||
}
|
||||
foreach (key, value in parameterTable)
|
||||
{
|
||||
@@ -61,6 +63,11 @@ int function pulseParse(...) //Returns data from our pulseData table.
|
||||
return result
|
||||
}
|
||||
|
||||
void function pulseLockStats()
|
||||
{
|
||||
loebSetLockedButton(Localize("#MENU_TITLE_STATS"), true)
|
||||
}
|
||||
|
||||
string function HammerToMeterString(float value)
|
||||
{
|
||||
return value > 0 && int((1.905 * value ))/100 > 0 ? string(int((1.905 * value ) )/100) + "m" : "0";
|
||||
|
||||
Reference in New Issue
Block a user