Skip to content

Commit

Permalink
Merge branch 'main' into signs-light
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainDolphy authored Mar 9, 2025
2 parents 80efe9d + 4fd7696 commit 3d21f5d
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/godot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
gh release upload '${{ github.ref_name }}' * --repo '${{ github.repository }}'
gh release upload '${{ github.ref_name }}' */* --repo '${{ github.repository }}'
76 changes: 38 additions & 38 deletions assets/3d_tiles/mesh_library.tres

Large diffs are not rendered by default.

Binary file added linux/as.may.moat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ dash={
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":5,"axis_value":1.0,"script":null)
]
}
toggle_fullscreen={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194342,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}

[layer_names]

Expand Down
4 changes: 4 additions & 0 deletions scenes/Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ func _on_settings_back():
_start_game()

func _input(event):

if Input.is_action_pressed("toggle_fullscreen"):
GlobalMenuEvents.emit_on_fullscreen_toggled(not GraphicsManager.fullscreen)

if not game_started:
return

Expand Down
2 changes: 2 additions & 0 deletions scenes/menu/GraphicsSettings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var _loaded_settings = false

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
GlobalMenuEvents._on_fullscreen_toggled.connect(_on_fullscreen_toggled)
_load_settings()
if _xr:
_vbox.get_node("FPSOptions").visible = false
Expand Down Expand Up @@ -81,6 +82,7 @@ func _on_enable_fog_toggled(toggled_on: bool):

func _on_fullscreen_toggled(toggled_on: bool):
GraphicsManager.set_fullscreen(toggled_on)
_vbox.get_node("DisplayOptions/Fullscreen").set_pressed_no_signal(toggled_on)

func _on_render_scale_value_changed(value: float):
GraphicsManager.set_render_scale(value)
Expand Down
4 changes: 4 additions & 0 deletions scenes/util/GlobalMenuEvents.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ signal ui_cancel_pressed
signal ui_accept_pressed
signal hide_menu
signal return_to_lobby
signal _on_fullscreen_toggled(enabled: bool)
signal set_current_room
signal set_xr_movement_style
signal set_movement_speed
Expand Down Expand Up @@ -33,6 +34,9 @@ func emit_return_to_lobby():
func emit_set_current_room(room):
emit_signal("set_current_room", room)

func emit_on_fullscreen_toggled(enabled):
emit_signal("_on_fullscreen_toggled", enabled)

func emit_set_xr_movement_style(style):
emit_signal("set_xr_movement_style", style)

Expand Down

0 comments on commit 3d21f5d

Please sign in to comment.