Kazhnuz
|
13702b0df7
|
Adaptation du readme au nouveau but du projet
|
2019-12-24 11:07:41 +01:00 |
|
Kazhnuz
|
0e43ef3e4d
|
scenes/boost: lock input just after the menu closure
|
2019-02-15 21:39:09 +01:00 |
|
Kazhnuz
|
7065028143
|
scenes/boost: fix a wrong mention of the controller
|
2019-02-15 18:54:22 +01:00 |
|
Kazhnuz
|
e5e12714fb
|
core/menusystem: only send key presses to an active menu
|
2019-02-15 18:51:57 +01:00 |
|
Kazhnuz
|
a51eb1d64e
|
scenes/boost: flush keys when unpausing
|
2019-02-15 18:45:48 +01:00 |
|
Kazhnuz
|
b80bd248a7
|
core/input: add a way to flush active keys
|
2019-02-15 18:45:38 +01:00 |
|
Kazhnuz
|
a7676297ca
|
scenes/boost: stop sprite animations when the pause menu is active
|
2019-02-15 18:38:41 +01:00 |
|
Kazhnuz
|
7b2a5298ba
|
scenes/boost: fix pause menu crashes
|
2019-02-15 18:37:03 +01:00 |
|
Kazhnuz
|
592e92ea6d
|
core/menusystem: fix a crash when trying to get sound volume
|
2019-02-15 18:33:38 +01:00 |
|
Kazhnuz
|
831531b3fa
|
core/menusystem: only draw cursor menu if the menu is visible
|
2019-02-15 18:32:27 +01:00 |
|
Kazhnuz
|
d30f28322a
|
core/assets: add a way to deactivate sprite animation
|
2019-02-15 18:30:23 +01:00 |
|
Kazhnuz
|
1cc8acd4c3
|
core/menusystem: add a basic text widget
|
2019-02-15 18:26:45 +01:00 |
|
Kazhnuz
|
b98bf1af67
|
assets: add first runners music
|
2019-02-14 21:46:49 +01:00 |
|
Kazhnuz
|
ecaef7d8b5
|
main: reuse the level as main scene for the moment
|
2019-02-14 20:50:32 +01:00 |
|
Kazhnuz
|
5d95b50b97
|
core/menusystem: remove debug print()
|
2019-02-14 20:49:07 +01:00 |
|
Kazhnuz
|
6b9bbc4286
|
core/menusystem: restore keyboard navigation support in grid system
|
2019-02-14 20:47:56 +01:00 |
|
Kazhnuz
|
10f5b05eca
|
libs/utils: fix a bad var name in pointDistance
|
2019-02-14 20:41:36 +01:00 |
|
Kazhnuz
|
fdbeffa42d
|
core/menusystem: remove base widget self-destruct action
|
2019-02-14 18:33:25 +01:00 |
|
Kazhnuz
|
0c3f4a10f0
|
core/menusystem: make the grid system use free widget placement
It'll make it way more easy to use and maintain compared to the old
"parent/children" system, and will be more flexible.
|
2019-02-14 18:32:52 +01:00 |
|
Kazhnuz
|
1b805ff4b9
|
scenes/test: test grid parents
|
2019-02-13 22:13:43 +01:00 |
|
Kazhnuz
|
fed4f6f598
|
core/menusystem: initial work on cursor moving
|
2019-02-13 22:11:04 +01:00 |
|
Kazhnuz
|
92bea8c2cd
|
core/menusystem: add cursor in gridbox
|
2019-02-13 19:47:00 +01:00 |
|
Kazhnuz
|
fe7f4b1f87
|
core/menusystem: fix crash by adding updateView() to menu parent
|
2019-02-13 19:18:51 +01:00 |
|
Kazhnuz
|
864c1c31a3
|
core/menusystem: fix widget size in gridbox
|
2019-02-13 19:07:44 +01:00 |
|
Kazhnuz
|
7d42991d7a
|
core/menusystem: get widget size when redrawing and not at start
It's only relevant when drawing/redrawing
|
2019-02-13 18:52:18 +01:00 |
|
Kazhnuz
|
70853353bb
|
core/menusystem: fix a crash
|
2019-02-13 18:51:10 +01:00 |
|
Kazhnuz
|
88701f5e44
|
core/menusystem: add the view table to GridBox
|
2019-02-13 18:50:06 +01:00 |
|
Kazhnuz
|
6bd30bf71c
|
scenes/test: add a grid test
|
2019-02-13 18:48:58 +01:00 |
|
Kazhnuz
|
cad0cbc071
|
core/menusystem: update widgets id each time a new widget is added
|
2019-02-13 18:41:16 +01:00 |
|
Kazhnuz
|
6fb00518bb
|
core/menusystem: add the getWidgetSize function to GridBox
|
2019-02-13 18:35:13 +01:00 |
|
Kazhnuz
|
8c53f69663
|
core/menusystem: use a more logical naming scheme for variables in grids
|
2019-02-13 18:25:41 +01:00 |
|
Kazhnuz
|
ce5b4ea20b
|
core/menusystem: update view just before drawing to avoid glitch
|
2019-02-13 18:06:58 +01:00 |
|
Kazhnuz
|
ded24ede27
|
core/menusystem: put the view update in its own function
|
2019-02-13 18:04:27 +01:00 |
|
Kazhnuz
|
0a4d57e46b
|
core/menusystem: make cursor position relative to first element
|
2019-02-13 17:51:05 +01:00 |
|
Kazhnuz
|
f2b520e2b3
|
core/menusystem: improve view variables names
|
2019-02-13 17:44:59 +01:00 |
|
Kazhnuz
|
d352987aca
|
scenes/test: test menu overflow
|
2019-02-13 17:13:54 +01:00 |
|
Kazhnuz
|
80bd57c4fe
|
core/menusystem: rename isSlave to isChild
|
2019-02-13 17:10:57 +01:00 |
|
Kazhnuz
|
2aac02c223
|
core/menusystem: fix namespacing errors
|
2019-02-12 19:27:02 +01:00 |
|
Kazhnuz
|
997a66e901
|
core/menusystem: don't draw cursor and allow selection when it overflow
|
2019-02-12 18:58:26 +01:00 |
|
Kazhnuz
|
b18c95455c
|
core/menusystem: let the menu handle cursor drawing
|
2019-02-12 18:52:38 +01:00 |
|
Kazhnuz
|
a1f7995b13
|
core/menusystem: stop inverting w and h when returning widget size
|
2019-02-12 18:48:51 +01:00 |
|
Kazhnuz
|
434b5e6865
|
core/menusystem: place the cursor drawing script in a separate file
|
2019-02-12 18:35:52 +01:00 |
|
Kazhnuz
|
b3febf0fb3
|
core/menusystem: rework focus system
Don't let every menus handle themselves if they have focus, it should be
the menu system role to handle that
|
2019-02-12 18:31:32 +01:00 |
|
Kazhnuz
|
c4ce0f5c5d
|
core/menusystem: don't update cursor position when hovering no widget
|
2019-02-12 18:15:17 +01:00 |
|
Kazhnuz
|
902dfa0d95
|
scenes/test: test a second menu
|
2019-02-12 18:05:50 +01:00 |
|
Kazhnuz
|
242c877592
|
core/menusystem: rename all instance of focus to haveFocus
|
2019-02-11 23:04:25 +01:00 |
|
Kazhnuz
|
a8965a8945
|
scenes/test: floor the second counter
|
2019-02-11 22:41:19 +01:00 |
|
Kazhnuz
|
96e095759b
|
scenes/test: use a more neutral and readable color for background
|
2019-02-11 22:40:44 +01:00 |
|
Kazhnuz
|
28beee9c41
|
core/menusystem: only count click if menu is currently active
|
2019-02-11 22:39:18 +01:00 |
|
Kazhnuz
|
205de52345
|
core/menusystem: rework default Widget
|
2019-02-11 22:37:48 +01:00 |
|