Jump to content

[1.0.x] BatteryIndicator (2015-02-09)


pizzaoverhead

Recommended Posts

If you like this concept, check out IndicatorLights by @Snark which does all this and more!

A little plugin that makes the light on the Z-100 battery pack change colour to let you know that it's running low.

jIOp2nf.png

Download from Curse

MediaFire Mirror

Get IndicatorLights instead

Source included, licenced under GPL v2.

Includes ModuleManager, licence here.

If you've enjoyed this, consider donating a cup of coffee to help with late night coding:

btn_donate_LG.gif

Planned features

  • Colour blindness-compatible colours.
  • Customisable colours.
  • An extra colour (defaulting to blue) for when the battery is locked.

Change log

v1.0 (2015-02-09)

  • Initial Release
Edited by pizzaoverhead
Superseded by IndicatorLights.
Link to comment
Share on other sites

A wonderfully simple idea that probably wasn't as simple to code as it sounds and adds a very neat touch.

Change request: disabled mode indicator for my 'emergency reserve' battery. Blue, since the other primaries are in use, or dimmed?

Link to comment
Share on other sites

Change request: disabled mode indicator for my 'emergency reserve' battery. Blue, since the other primaries are in use, or dimmed?

Ooh! seconded, I would love to have a colour for disabled batteries! (I would probably prefer cyan to blue though, (also primary) but I would defer that decision to the colour blind.)

Link to comment
Share on other sites

A wonderfully simple idea that probably wasn't as simple to code as it sounds and adds a very neat touch.

Change request: disabled mode indicator for my 'emergency reserve' battery. Blue, since the other primaries are in use, or dimmed?

That's coming in the next version!

Amazing idea; thank you for making this! Quick question... does the color indicate the charge of the individual battery, or of the ship's total battery charge?

It's the charge of the battery pack itself. It wouldn't make sense for a little battery pack to have sensors hooked into the whole ship, and having lots of indicators displaying the same thing is less useful than having more information.

Colorblind mode please?

Working on it! I haven't found a good looking set of colours to fit everyone yet, but I plan to for the next release. It'll also be customisable, so you can pick whatever looks best for you.

Link to comment
Share on other sites

After 1 min of investigation, i found this could be easily tweaked to work with Ven's stock revamp.

The material name seems to be: unnamed.emissiveMaterial

Just change in the .cs file: t.renderer.material.name.Contains("light")) to t.renderer.material.name.Contains("emissive"))

It's untested, don't have time right now, but that should work right!

EDIT: The light gameobject will keep emiting light (illuminating parts) , but the color of the led should change. It could also be tweaked to work with the physical light, will take a look into it once i have more time!

EDIT2: This should work with all the batteries, but some of them may have different material names.

Cheers! :)

Edited by tajampi
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...