filter input while workshop form is open menu2
authorhgn <hgodden00@gmail.com>
Tue, 23 Apr 2024 20:26:58 +0000 (21:26 +0100)
committerhgn <hgodden00@gmail.com>
Tue, 23 Apr 2024 20:26:58 +0000 (21:26 +0100)
input.h
menu.c

diff --git a/input.h b/input.h
index 131ab8c031fccbc4affe35081517ba7cdddd3d2d..337782420c932ff4d2b9e0729709b73b7e86b402 100644 (file)
--- a/input.h
+++ b/input.h
@@ -187,7 +187,8 @@ struct {
 static srinput;
 
 static int input_filter_generic(void){
-   if( srinput.state != k_input_state_enabled || vg_console.enabled )
+   if( (srinput.state != k_input_state_enabled) || vg_console.enabled ||
+       (workshop_form.page != k_workshop_form_hidden)  )
       return 1;
    else 
       return 0;
diff --git a/menu.c b/menu.c
index 091deb04fc8d2429e6a1cff709d6e555e716f907..279dbf5a68dfb2e2ae469697d795b74aedbd3be5 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -1037,7 +1037,7 @@ void menu_gui(void)
          {
             menu.guide_sel = 0;
             menu_link_modal( 
-                  "https://skaterift.com/index.php?page=skating" );
+                  "https://skaterift.com/index.php?page=movement" );
          }
          if( menu.guide_sel == 0 || menu.guide_sel > 3 ) menu_try_find_cam( 3 );