From cef940108fe15752c3ef66f43f5169403fa2f71d Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Sat, 3 Jun 2023 14:37:10 -0400 Subject: Reorganize the file structure of the files in `game/src` --- game/src/OptionMenu/MonitorDisplaySelector.gd | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 game/src/OptionMenu/MonitorDisplaySelector.gd (limited to 'game/src/OptionMenu/MonitorDisplaySelector.gd') diff --git a/game/src/OptionMenu/MonitorDisplaySelector.gd b/game/src/OptionMenu/MonitorDisplaySelector.gd deleted file mode 100644 index 7de033a..0000000 --- a/game/src/OptionMenu/MonitorDisplaySelector.gd +++ /dev/null @@ -1,18 +0,0 @@ -extends SettingOptionButton - -func _setup_button() -> void: - clear() - for screen_index in DisplayServer.get_screen_count(): - add_item("Monitor %d" % (screen_index + 1)) - default_selected = get_viewport().get_window().current_screen - -func _on_option_selected(index : int, by_user : bool) -> void: - if _valid_index(index): - var window := get_viewport().get_window() - var mode := window.mode - window.mode = Window.MODE_WINDOWED - get_viewport().get_window().set_current_screen(index) - window.mode = mode - else: - push_error("Invalid MonitorDisplaySelector index: %d" % index) - reset_setting(not by_user) -- cgit v1.2.3-56-ga3b1