Skip to content

Conversation

@Nevcairiel
Copy link
Member

@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 as ACEGUI_STYLE_CLASSIC ("classic") for the default
style shipping with AceGUI-3.0

Additional styles have to be registered, and can optionally take a
parent style, which causes widgets not present in the requested style to
be looked up from the parent instead. This enables partial style
overrides.

API Changes:
AceGUI:RegisterStyle(style, parentStyle)
AceGUI:Create(type, style)
AceGUI:RegisterWidgetType(Name, Constructor, Version, Style)
AceGUI:GetWidgetVersion(type, style)
AceGUI:GetNextWidgetNum(type, style)
AceGUI:GetWidgetCount(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 as ACEGUI_STYLE_CLASSIC ("classic") for the default
style shipping with AceGUI-3.0

Additional styles have to be registered, and can optionally take a
parent style, which causes widgets not present in the requested style to
be looked up from the parent instead. This enables partial style
overrides.

API Changes:
AceGUI:RegisterStyle(style, parentStyle)
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.

2 participants