Barotrauma

Barotrauma

Not enough ratings
Battery charge bar
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
28.183 KB
24 Oct, 2022 @ 1:24pm
1 Change Note ( view )

Subscribe to download
Battery charge bar

Description
Displays the remaining battery charge in a visually appealing way using nothing but vanilla components.


Will handle multiple batteries if you add up all the charge_out values, make sure to divide the TOTAL capacity of your batteries for the memory value.
You can also use the charge % instead of the charge out value, in this case rounding may make it ever so slightly less accurate, but you will not have to adjust the value when you buy upgrades.
6 Comments
Lammert  [author] 30 Jun @ 8:56am 
Everything with regex components has this issue now unfortunately, the devs of the game are working on a fix.
Gubbins 29 Jun @ 11:32am 
The text display keeps on saying "TIMEOUT" after 5 or so minutes of it running, is there anything I can do to fix this?
KJ 26 Oct, 2022 @ 6:39pm 
Ah, I didn't even think of it that way. That's pretty neat!
Lammert  [author] 26 Oct, 2022 @ 4:17pm 
The vanilla batteries do have their own charge indicators yes.. this setup is meant to be used to have an indicator for perhaps the control room, as opposed to just having a text field with "70%" on it.
KJ 26 Oct, 2022 @ 3:05pm 
aren't these already on vanilla batteries?
KJ 26 Oct, 2022 @ 3:04pm 
hmmmmm