Skip to content

feat(overall): Add Overall Mode#17

Open
kavekor wants to merge 1 commit into
SuperNerdEric:masterfrom
kavekor:master
Open

feat(overall): Add Overall Mode#17
kavekor wants to merge 1 commit into
SuperNerdEric:masterfrom
kavekor:master

Conversation

@kavekor
Copy link
Copy Markdown

@kavekor kavekor commented Aug 16, 2025

This commit introduces a new "Overall" mode to the Combat Logger. When enabled, all combat data is logged into a single, continuous fight session, which persists until the mode is disabled or the client is closed. This provides users with a way to track their total damage over an entire play session without creating separate entries for each encounter.

Key Changes:

Overall Mode:

Added an "Enable Overall Mode" toggle in the plugin configuration.

Implemented logic in FightManager to start, stop, and manage a single overallFight object.

Modified addDamage and addTicks to route all data to the overallFight when the mode is active, preventing the creation of new fight sessions.

Added startUp and shutDown methods to CombatLoggerPlugin to correctly initialize and terminate the "Overall" mode when RuneLite starts or closes with the setting enabled.

This commit introduces a new "Overall" mode to the Combat Logger. When enabled, all combat data is logged into a single, continuous fight session, which persists until the mode is disabled or the client is closed. This provides users with a way to track their total damage over an entire play session without creating separate entries for each encounter.

Key Changes:

Overall Mode:

Added an "Enable Overall Mode" toggle in the plugin configuration.

Implemented logic in FightManager to start, stop, and manage a single overallFight object.

Modified addDamage and addTicks to route all data to the overallFight when the mode is active, preventing the creation of new fight sessions.

Added startUp and shutDown methods to CombatLoggerPlugin to correctly initialize and terminate the "Overall" mode when RuneLite starts or closes with the setting enabled.
@SuperNerdEric
Copy link
Copy Markdown
Owner

I don't think this should be an option in the settings. There should just always be a drop-down option for Overall in the overlay/sidebar and the user can select it if they want.

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