Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
If you missed knowing what batteries you shall recharge soon just by looking at your quickbar, you just found a solution. This mod allows you to set your favorite indicator style, configure colors and basically just enjoy the moment of your batteries loosing charge!
The configuration is held in config.json. As of 0.2.1 the options are:
Key: style Values: Default/Text/BZ Description: Choose from the large variety (three) of vibrant styles for battery display.
Key: coloring Values: [{"threshold": float, "color": color}...] Description: Colors used on indicator. If useGradient is false, the values act as threshold to change color (i.e. having {"threshold": 0.20, "color": #FF0000} will make battery go red if the charge is under 20%). If useGradient is true, these are gradient keys. Make sure to keep a value for "threshold": 1.0, otherwise funny things happen. Colors are given in HTML format.
Key: useGradient Values: true/false Description: To have smooth transition from high-charge to low-charge color, or to change colors below some threshold. Choose wisely.
Key: showOnBatterySelector Values: true/false Description: When enabled, shows charge indicator on battery icons in replacement menu (i.e. one opened with [R]).