-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from ninstar/beta
1.2.3 Beta changes
- Loading branch information
Showing
22 changed files
with
520 additions
and
33 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
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
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,22 @@ | ||
[gd_scene load_steps=3 format=2] | ||
|
||
[ext_resource path="res://code/ui/pages/settings/scripts/keep_on.gd" type="Script" id=1] | ||
[ext_resource path="res://code/ui/common/buttons/toggle.tscn" type="PackedScene" id=2] | ||
|
||
[node name="KeepOn" instance=ExtResource( 2 )] | ||
script = ExtResource( 1 ) | ||
title = "Keep screen on" | ||
description = "Prevents the screensaver from taking over while your status is visible. Useful if you want to keep the application always active without having to change your system settings." | ||
|
||
[node name="Title" parent="Button/Box" index="0"] | ||
text = "Keep screen on" | ||
|
||
[node name="Hint" parent="." index="1"] | ||
margin_bottom = 89.0 | ||
text = "Prevents the screensaver from taking over while your status is visible. Useful if you want to keep the application always active without having to change your system settings." | ||
|
||
[node name="Separator" parent="." index="2"] | ||
margin_top = 97.0 | ||
margin_bottom = 129.0 | ||
|
||
[connection signal="toggled" from="Button" to="." method="_on_KeepOn_toggled"] |
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,18 @@ | ||
extends "res://code/ui/common/buttons/toggle.gd" | ||
|
||
func _ready() -> void: | ||
|
||
# Locale keys | ||
set_title("KEEPON_TITLE") | ||
set_hint("KEEPON_HINT") | ||
|
||
# Update configurations on UI | ||
set_check(Main.settings["keep_on"]) | ||
|
||
# Signals | ||
func _on_KeepOn_toggled(button_pressed: bool) -> void: | ||
Main.settings["keep_on"] = button_pressed | ||
if button_pressed: | ||
OS.keep_screen_on = Main.discord_connected and Main.settings["activity"] | ||
else: | ||
OS.keep_screen_on = false |
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
Oops, something went wrong.