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

[Suggestion] Show average gp/kill as tooltip #60

Open
Ckrisirkc opened this issue Jul 8, 2024 · 0 comments
Open

[Suggestion] Show average gp/kill as tooltip #60

Ckrisirkc opened this issue Jul 8, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Ckrisirkc
Copy link

This is a suggestion/feature request to show the average gp per kill as a tooltip on the "Kills Logged" panel similar to the way the current loot tracker does.

I believe a simple way to get this effect could be the following addition to the existing code in the LootPanel class:

// Store Total Value
long totalValue = lootLog.getLootValue(false);

// Show gp/kill tooltip
if (killsLogged > 0)
{
    killsLoggedPanel.setToolTipText(QuantityFormatter.formatNumber(totalValue / killsLogged) + " gp/kill");
}

Thanks for the plugin, and I appreciate any consideration.

@TheStonedTurtle TheStonedTurtle added enhancement New feature or request good first issue Good for newcomers labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants