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

LM4: Reimplement Tiered Coloring #440

Open
lokka30 opened this issue Jan 17, 2023 · 1 comment
Open

LM4: Reimplement Tiered Coloring #440

lokka30 opened this issue Jan 17, 2023 · 1 comment
Assignees
Labels
priority: normal Normal priority status: confirmed Confirmed by a maintainer type: improvement Add or adjust a feature
Milestone

Comments

@lokka30
Copy link
Member

lokka30 commented Jan 17, 2023

Tiered Coloring needs to be reimplemented into LM4.

@lokka30 lokka30 added type: improvement Add or adjust a feature priority: normal Normal priority status: confirmed Confirmed by a maintainer labels Jan 17, 2023
@lokka30 lokka30 self-assigned this Jan 17, 2023
@lokka30 lokka30 added this to the v4.0 milestone Jan 17, 2023
@lokka30
Copy link
Member Author

lokka30 commented Jan 17, 2023

Oath's Suggestion


The current nametag:

'&8&l༺ &bLvl.%entity-level%&f %entity-prefix%&f%entity-name%&f%entity-suffix%&8 • &7%entity-health-rounded%&8/&7%entity-max-health-rounded%&c♥ &8&l༻'

Once we implement the tiered-coloring system, should replace the opening &b with %tiered%, with a &r added after the %entity-level% to reset any changes made with %tiered%.
I also suggest we change the default color of the health text to a brighter color; ideally we can use the hex color code system &#123456 but if not I would suggest &b or &f instead.
There might also be the opportunity to create a modified %tiered%; transforming it to %tiered_name% which would allow the user to set their own colors based on the value of a fomula. An example of how this might be done in LM4's formatting:

- action: 'set-tiered-placeholder'
  formula: '%entity-level%'
  placeholer: 'level-tier'
  tiers:
    '<=5': '&#22E76B'  # Green
    '6-10': '&#528CFF'  # Blue
    '11-15': '&#FFCD56' # Yellow
    '16-20': '&#F2003D' #Red
    '>=21': '&#B447FF'  # Purple
    default: '&f'  # White

- action: 'set-tiered-placeholder'
  formula: '%entity-health-rounded%/%entity-max-health-rounded%'
  placeholer: 'health-remaining'
  tiers:
    '<=0.3': '&#F2003D' #Red
    '0.31-0.70': '&#FFCD56' # Yellow
    '>=0.71': '&#22E76B'  # Green
    default: '&f'  # White

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal Normal priority status: confirmed Confirmed by a maintainer type: improvement Add or adjust a feature
Projects
None yet
Development

No branches or pull requests

1 participant