-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created a basic settings layout connected to the setting manager
- Loading branch information
1 parent
ba3bcec
commit a091008
Showing
7 changed files
with
486 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class_name ReverseMouseCheckbox extends CheckBox | ||
|
||
|
||
func _ready() -> void: | ||
button_pressed = SettingsManager.get_accessibility_section(GameSettings.ReversedMouseSetting) | ||
toggled.connect(on_reverse_mouse_changed) | ||
|
||
|
||
func on_reverse_mouse_changed(enabled: bool) -> void: | ||
SettingsManager.update_accessibility_section(GameSettings.ReversedMouseSetting, enabled) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class_name ScreenBrightnessSlider extends HSlider | ||
|
||
|
||
func _enter_tree() -> void: | ||
name = "ScreenBrightnessSlider" | ||
|
||
min_value = 0.0 | ||
max_value = 1.0 | ||
step = 0.01 | ||
|
||
drag_ended.connect(on_brightness_changed) | ||
|
||
|
||
func _ready() -> void: | ||
value = SettingsManager.get_accessibility_section(GameSettings.ScreenBrightnessSetting) | ||
|
||
|
||
|
||
func on_brightness_changed(brightness: float) -> void: | ||
SettingsManager.update_accessibility_section(GameSettings.ScreenBrightnessSetting, brightness) |
Oops, something went wrong.