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

Add controlable component and Checkable/Clickable Widgets #108

Merged
merged 13 commits into from
Jun 10, 2022

Conversation

AndreasLrx
Copy link
Collaborator

Add a controlable component listening to a specific user.
Also add Checkable and Clickable widgets components and possibility to move between linked Widgets.

The widgets framework will probably be reworked later when needed, or when I will have some ideas to clean it.
Do not hesitate to request more events on the widgets.

Linked: #92

@AndreasLrx AndreasLrx added ECS: System Issue tied to the systems in Entity Component System ECS: Component Issue tied to the components in Entity Component System UI/UX Issue tied to the UI/UX labels Jun 9, 2022
@AndreasLrx AndreasLrx added this to the Menus, HUDs and Options milestone Jun 9, 2022
@AndreasLrx AndreasLrx self-assigned this Jun 9, 2022
src/main.cpp Outdated Show resolved Hide resolved
src/main.cpp Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #108 (52cc5c4) into master (7bbb899) will decrease coverage by 1.91%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
- Coverage   22.33%   20.41%   -1.92%     
==========================================
  Files          74       88      +14     
  Lines        1276     1381     +105     
  Branches      452      498      +46     
==========================================
- Hits          285      282       -3     
- Misses        867      974     +107     
- Partials      124      125       +1     
Impacted Files Coverage Δ
src/game/Users.hpp 0.00% <ø> (ø)
src/game/components/Controlable.hpp 0.00% <0.00%> (ø)
src/game/components/Position.hpp 0.00% <0.00%> (ø)
src/game/components/Textual.hpp 0.00% <0.00%> (ø)
src/game/gui/components/Checkable.cpp 0.00% <0.00%> (ø)
src/game/gui/components/Checkable.hpp 0.00% <0.00%> (ø)
src/game/gui/components/Clickable.cpp 0.00% <0.00%> (ø)
src/game/gui/components/Clickable.hpp 0.00% <0.00%> (ø)
src/game/gui/components/Widget.cpp 0.00% <0.00%> (ø)
src/game/gui/components/Widget.hpp 0.00% <0.00%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bbb899...52cc5c4. Read the comment docs.

@ZQUEMA ZQUEMA merged commit a16a48f into master Jun 10, 2022
@ZQUEMA ZQUEMA deleted the feature/92-ecs-widgets branch June 10, 2022 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ECS: Component Issue tied to the components in Entity Component System ECS: System Issue tied to the systems in Entity Component System UI/UX Issue tied to the UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants