aboutsummaryrefslogtreecommitdiff
path: root/src/gui/privinc
Commit message (Collapse)AuthorAgeFilesLines
* Remap calls to pad/mouse/keyboard to inputXavier Del Campo Romero2022-09-201-0/+7
|
* Allow multiple button typesXavier Del Campo Romero2022-07-071-0/+22
|
* Revamp gui componentXavier Del Campo Romero2022-06-261-0/+17
`gui` was tighly coupled to game logic, and could not be extended for other purposes. Therefore, a generic GUI implementation, loosely inspired by well-known GUI frameworks such as GTK, is now provided, with the following properties: - Does not depend on dynamic or static memory allocation, only automatic (i.e., stack) memory allocation required. - Portable among existing implementations. - Simple to extend. - Tiny memory footprint. `gui` is now composed by GUI elements that can be chained to form a tree structure. This is useful e.g.: to calculate X/Y coordinates for a given GUI element given its parent(s). This commit also refactors the older implementation, moving game-specific logic into `player` and making use of the new component.