mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
fixed hbar percentage position
This commit is contained in:
parent
6397f29d4f
commit
316b255a04
@ -88,7 +88,7 @@ local function hbar(args)
|
||||
|
||||
-- update percentage
|
||||
if args.show_percent then
|
||||
e.window.setCursorPos(bar_width + 1, math.max(1, math.ceil(e.frame.h / 2)))
|
||||
e.window.setCursorPos(bar_width + 2, math.max(1, math.ceil(e.frame.h / 2)))
|
||||
e.window.write(util.sprintf("%3.0f%%", fraction * 100))
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user