-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(buttons): issue with changing button state after changing screens… (
#127) fix(buttons): issue with changing button state after changing screens fixed
- Loading branch information
Showing
7 changed files
with
73 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import game from './scripts/default.narrat'; | ||
import arrays from './scripts/arrays.narrat'; | ||
import objects from './scripts/objects.narrat'; | ||
export default [game, arrays, objects]; | ||
import buttons from './scripts/buttons.narrat'; | ||
|
||
export default [game, arrays, objects, buttons]; |
31 changes: 31 additions & 0 deletions
31
packages/narrat/src/examples/default/scripts/buttons.narrat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
test_buttons: | ||
set_screen map | ||
jump test_buttons_menu | ||
|
||
test_buttons_menu: | ||
choice: | ||
"What do we want to test?" | ||
"Let's enable some buttons": | ||
jump enable_buttons | ||
"Let's disable some buttons": | ||
jump disable_buttons | ||
|
||
enable_buttons: | ||
set_button shopButton true | ||
set_button tester true | ||
set_button parkButton true | ||
jump test_map_2 | ||
// jump test_buttons_menu | ||
|
||
test_map_2: | ||
set_screen map_2 | ||
set_button shopButton hidden | ||
set_button tester hidden | ||
|
||
disable_buttons: | ||
set_button shopButton hidden | ||
set_button tester hidden | ||
set_button parkButton hidden | ||
jump test_map_2 | ||
|
||
// jump test_buttons_menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters