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

FLECS Style UI creation #11

Open
Kubic-C opened this issue Apr 2, 2023 · 0 comments
Open

FLECS Style UI creation #11

Kubic-C opened this issue Apr 2, 2023 · 0 comments
Assignees

Comments

@Kubic-C
Copy link
Owner

Kubic-C commented Apr 2, 2023

Further development of the UI design, im pushing this off later to go work on the primary focus of the engine which would be tiles.

To get to the point: allow a FLECS style creation of a UI element.

The reason I want to add this is it would simplify creation of UI elements, and reduce boiler plate. (PS i hate boiler plate)

example below

// this will make the element display in the middle of the screen
canvas->add_text("hello_world").add_horizontal_constraint(SPK_MIDDLE).add_vertical_constraint(SPK_MIDDLE);
@Kubic-C Kubic-C self-assigned this Apr 3, 2023
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