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

Adds real-time charge & disabled action information to Actions #31821

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

keronshb
Copy link
Contributor

@keronshb keronshb commented Sep 4, 2024

About the PR

Adds real-time charge & disabled action information to Actions

Why / Balance

It's better to see if your action is currently disabled in real time and the same for charges.

Technical details

Original Icon Color and Disabled Icon Color were added to the Base Action Component.
Original Icon Color is set on map init in SharedActionsSystem.
Action Icon Color gets set to either the Disabled Icon Color or the Original Icon Color depending if there's any charges & if the action is disabled in the Shared Actions System
States for Original icon Color and Disabled Icon Color were added to the Base Action Component, Action Component States, and the Client Action System.
Update was added to the shared actions system so we can Update & Dirty Actions if they're in the middle of a cooldown & are recharging.

Media

Content.Client_kxA3qARrNA.mp4

Requirements

  • I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion
  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

BaseActionComponent - OriginalIconColor and DisabledIconColor were added to the BaseActionComponent and the Action State.
SharedActionSystem - setting action.IconColor happens now in the UpdateAction() method. Update was added for all 3 action types so charge information & if the action is disabled can be updated in real time.

Changelog

tweak: Actions with charges will now grey out when they're disabled.

… cooldowns and charged update in real time. Sets Icon color to Disabled Icon Color or Original Icon color when action is updatees in shared. Adds method to check IsCoolDownActive and if we ShouldReesetCharges
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