Skip to content

Commit

Permalink
temp: level select UI
Browse files Browse the repository at this point in the history
  • Loading branch information
akorzunin committed Sep 11, 2024
1 parent ee42f51 commit e77e772
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/components/gui/menu/MenuActions.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ func menu_start_game():
return
Utils.set_scene(self, 'LoopScene')

func menu_level_select():
if G.settings.MAX_LEVEL == 0:
start_tutorial()
return
show_avaliable_levels()
return

func settings_fps_counter_on():
config.set_fps_counter_state.emit(true)

Expand Down
4 changes: 2 additions & 2 deletions src/components/gui/menu/MenuStruct.gd
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static var menu_items := {
items = {
1: {
name = "start",
action = "menu_start_game",
action = "menu_level_select",
},
2: {
name = "settings",
Expand Down Expand Up @@ -165,7 +165,7 @@ static var menu_items_emoji := {
items = {
1: {
'name': "🎮",
'action': "menu_start_game",
'action': "menu_level_select",
},
2: {
'name': "⚙️",
Expand Down

0 comments on commit e77e772

Please sign in to comment.