File tree 2 files changed +13
-11
lines changed
truncate_client/src/regions
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,8 @@ impl RulesState {
398
398
. centered_button ( theme. button_emphasis , theme. text , & self . map_texture , ui)
399
399
. clicked ( )
400
400
{
401
+ self . event_dispatcher
402
+ . event ( format ! ( "tutorial_core_rules_go_puzzle" ) ) ;
401
403
action = Some ( RuleCardAction :: DailyPuzzle ) ;
402
404
}
403
405
ui. add_space ( text_padding * 2.0 ) ;
@@ -407,6 +409,8 @@ impl RulesState {
407
409
. centered_button ( theme. water . lighten ( ) , theme. text , & self . map_texture , ui)
408
410
. clicked ( )
409
411
{
412
+ self . event_dispatcher
413
+ . event ( format ! ( "tutorial_core_rules_go_tutorial" ) ) ;
410
414
action = Some ( RuleCardAction :: Tutorial ) ;
411
415
}
412
416
@@ -415,6 +419,8 @@ impl RulesState {
415
419
. centered_button ( theme. water . lighten ( ) , theme. text , & self . map_texture , ui)
416
420
. clicked ( )
417
421
{
422
+ self . event_dispatcher
423
+ . event ( format ! ( "tutorial_core_rules_go_menu" ) ) ;
418
424
back_to_menu ( ) ;
419
425
}
420
426
ui. add_space ( text_padding) ;
Original file line number Diff line number Diff line change @@ -560,27 +560,23 @@ <h2>Many thanks to the word data sources:</h2>
560
560
} ) ;
561
561
562
562
if ( has_played_tut ) {
563
- this . button ( "Learn To Play" , ( ) => {
564
- localStorage . setItem ( "tutorial_played" , "true" ) ;
565
- truncate_runner . join_game ( 'RULE_CARD' ) ;
563
+ this . button ( "Tutorials" , ( ) => {
564
+ this . learnStage ( ) ;
566
565
} ) ;
567
- // Uncomment if adding back a second tutorial
568
- // this.button("Tutorials", () => {
569
- // this.learnStage();
570
- // });
571
566
}
572
567
}
573
568
574
569
learnStage ( ) {
575
570
this . reset ( ) ;
576
571
577
- this . button ( "Learn To Play " , ( ) => {
572
+ this . button ( "Quick Start " , ( ) => {
578
573
localStorage . setItem ( "tutorial_played" , "true" ) ;
579
- truncate_runner . join_game ( 'TUTORIAL_RULES ' ) ;
574
+ truncate_runner . join_game ( 'RULE_CARD ' ) ;
580
575
} ) ;
581
576
582
- this . button ( "Example Game" , ( ) => {
583
- truncate_runner . join_game ( 'TUTORIAL_EXAMPLE' ) ;
577
+ this . button ( "Interactive Tutorial" , ( ) => {
578
+ localStorage . setItem ( "tutorial_played" , "true" ) ;
579
+ truncate_runner . join_game ( 'TUTORIAL_RULES' ) ;
584
580
} ) ;
585
581
586
582
this . backButton ( ) ;
You can’t perform that action at this time.
0 commit comments