Fixed OC LUA script for radar showing status offscreen
This commit is contained in:
parent
23f3c638a6
commit
859c01ca02
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ function scanAndDraw()
|
|||
if energyRequired == nil then energyRequired = 0 end
|
||||
|
||||
if (energyRequired <= 0 or energy < energyRequired) then
|
||||
textOut((w / 2) - 7, 1, " /!\\ LOW POWER ", 0xFFFFFF, 0xFF0000)
|
||||
textOut((w / 2) - 8, 1, " /!\\ LOW POWER ", 0xFFFFFF, 0xFF0000)
|
||||
os.sleep(1)
|
||||
|
||||
return 0
|
||||
|
@ -109,7 +109,7 @@ function scanAndDraw()
|
|||
radar.radius(radius)
|
||||
radar.start()
|
||||
local scanDuration = radar.getScanDuration(radius)
|
||||
textOut(w - 3, 1, " ping sent ", 0x808080, 0x000000)
|
||||
textOut((w / 2) - 8, 1, " ping sent ", 0x808080, 0x000000)
|
||||
os.sleep(scanDuration)
|
||||
|
||||
local delay = 0
|
||||
|
|
Loading…
Reference in a new issue