Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variation of reso energy % for days remaining #1038

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ravendarque
Copy link

A simple adaption of reso-energy-pct-in-portal-details.user.js where instead of displaying the remaining percentage, it calculates the decay rate (15% of max per day) and displays the (pessimistic) number of days remaining based on the remaining energy. Screenshot:

reso-energy-days-in-portal-detail

Issues: If both days and % scripts are enabled, they will both display and look garbled. There are plenty of ways to work around this but as this is my first contribution to IITC and UI dev is not generally my area of expertise, I'm happy to take suggestions, or for someone else to roll it in to the pct script. Screenshot:

reso-energy-days-in-portal-detail-issue

A simple adaption of reso-energy-pct-in-portal-details.user.js where instead of displaying the remaining percentage, it calculates the decay rate (15% of max per day) and displays the (pessimistic) number of days remaining based on the remaining energy. 

Issues: If both days and % scripts are enabled, they will both display and look garbled. There are plenty of ways to work around this but as this is my first contribution to IITC and UI dev is not generally my area of expertise, I'm happy to take suggestions, or for someone else to roll it in to the pct script.
@michaeldever
Copy link
Contributor

@ravendarque I left a comment on your commit with a suggestion on how to fix the garbling of data.

johnd0e pushed a commit to johnd0e/ingress-intel-total-conversion that referenced this pull request Jul 2, 2019
johnd0e pushed a commit to johnd0e/ingress-intel-total-conversion that referenced this pull request Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants