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

Better Prefixes for Context Menus #1792

Open
KazWolfe opened this issue Apr 28, 2024 · 0 comments
Open

Better Prefixes for Context Menus #1792

KazWolfe opened this issue Apr 28, 2024 · 0 comments

Comments

@KazWolfe
Copy link
Member

At present, the Context Menu API has a few shortcomings with prefixes that range anywhere from mildly disruptive to rather annoying.

  • Allow any 1-5 character string as a prefix
    Instead of constraining the prefix to just certain special characters, the Context Menu API should allow for any arbitrary alphanumeric string to be a prefix. If a plain string is used, Dalamud should wrap the prefix in [brackets] and assign a color to them.
  • Allow any single icon character as a prefix
    As is the case with the current API, any single icon from the range \uE071 to \uE08A and \uE0C1 to \uE0DB should be permitted as a prefix. When this condition is met, no wrapping is required.

There should be only two properties exposed: string Prefix and uint PrefixColor. Prefix validation and behavior will be handled by the API.

All other requirements (including default prefixes) will remain as-is.

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

No branches or pull requests

1 participant