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

Implement an API to pick different widget styles #1

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nevcairiel
Copy link
Contributor

@Nevcairiel Nevcairiel commented Sep 20, 2022

The public API is extended to take a widget style parameter anywhere a widget type is being supplied. If its not specified, classic style is assumed.

The style parameter is a string for future expandability, currently defined are AceGUI.STYLE_CLASSIC ("classic"), and AceGUI.STYLE_MODERN ("modern")

The Create function will also additionally accept 'true' (boolean) as a parameter, which indicates automatic style selection, which switches between classic and modern depending on which client this is run.

API Changes:
AceGUI:Create(type, style)
AceGUI:RegisterWidgetType(Name, Constructor, Version, Style)
AceGUI:GetWidgetVersion(type, style)

@Nevcairiel Nevcairiel added the enhancement New feature or request label Sep 20, 2022
@Nevcairiel Nevcairiel self-assigned this Sep 20, 2022
@Nevcairiel Nevcairiel force-pushed the style branch 5 times, most recently from 0c43b17 to 8428c4f Compare September 26, 2022 19:51
The public API is extended to take a widget style parameter anywhere a
widget type is being supplied. If its not specified, classic style is
assumed.

The style parameter is a string for future expandability,
currently defined are AceGUI.STYLE_CLASSIC ("classic"), and
AceGUI.STYLE_MODERN ("modern")

The Create function will also additionally accept 'true' (boolean) as a
parameter, which indicates automatic style selection, which switches
between classic and modern depending on which client this is run on.

API Changes:
AceGUI:Create(type, style)
AceGUI:RegisterWidgetType(Name, Constructor, Version, Style)
AceGUI:GetWidgetVersion(type, style)
AceGUI:GetNextWidgetNum(type, style)
AceGUI:GetWidgetCount(type, style)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant