-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,713 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://6bl4pdfuoiku" | ||
path="res://.godot/imported/roguelikeIndoor_transparent.png-689d37e3ece7cf0637f0220206a95208.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/roguelikeIndoor_transparent.png" | ||
dest_files=["res://.godot/imported/roguelikeIndoor_transparent.png-689d37e3ece7cf0637f0220206a95208.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://boh50c7dq3xvw" | ||
path="res://.godot/imported/roguelikeSheet_transparent.png-cd3a50438593de754089da4607424a78.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/roguelikeSheet_transparent.png" | ||
dest_files=["res://.godot/imported/roguelikeSheet_transparent.png-cd3a50438593de754089da4607424a78.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://cdosyjgfwcv5p" | ||
path="res://.godot/imported/tilemap.png-5e61b4f08267e3455a4ee95d454c23fa.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/tilemap.png" | ||
dest_files=["res://.godot/imported/tilemap.png-5e61b4f08267e3455a4ee95d454c23fa.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
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 @@ | ||
extends Node | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
# func _process(delta): | ||
# pass |
File renamed without changes.
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 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://bo2421qsghpcl"] | ||
|
||
[ext_resource type="TileSet" uid="uid://d0bihcm3fyv5o" path="res://assets/new_tile_set.tres" id="1_0da5o"] | ||
|
||
[node name="Node2D" type="Node2D"] | ||
|
||
[node name="TileMap" type="TileMap" parent="."] | ||
tile_set = ExtResource("1_0da5o") | ||
format = 2 | ||
layer_0/tile_data = PackedInt32Array(0, 589827, 2, 1, 589827, 2, 2, 589827, 2, 3, 589827, 2, 4, 589827, 2, 5, 589827, 2, 6, 589827, 2, 7, 589827, 2, 8, 589827, 2, 9, 589827, 2, 10, 589827, 2, 11, 589827, 2, 12, 589827, 2, 13, 589827, 2, 14, 589827, 2, 65551, 589827, 2, 65552, 589827, 2, 65553, 589827, 2, 65554, 589827, 2, 65555, 589827, 2, 19, 589827, 2, 20, 589827, 2, 21, 589827, 2, 22, 589827, 2, 18, 589827, 2, 17, 589827, 2, 16, 589827, 2, 15, 589827, 2, 65545, 589827, 2, 65544, 589827, 2, 65543, 589827, 2, 65542, 589827, 2, 65541, 589827, 2, 65540, 589827, 2, 65539, 589827, 2, 65538, 589827, 2, 65537, 589827, 2, 65536, 589827, 2, 65556, 589827, 2, 65557, 589827, 2, 65558, 589827, 2, 65559, 589827, 2, 65560, 589827, 2, 65550, 589827, 2, 65549, 589827, 2, 65548, 589827, 2, 65547, 589827, 2, 65546, 589827, 2, 131077, 589827, 2, 131076, 589827, 2, 131075, 589827, 2, 131074, 589827, 2, 196610, 589827, 2, 196609, 589827, 2, 196608, 589827, 2, 131072, 589827, 2, 262144, 589827, 2, 327680, 589827, 2, 393216, 589827, 2, 458752, 589827, 2, 524288, 589827, 2, 589824, 589827, 2, 589825, 589827, 2, 655361, 589827, 2, 720897, 589827, 2, 720896, 589827, 2, 655360, 589827, 2, 327681, 589827, 2, 393217, 589827, 2, 458753, 589827, 2, 458754, 589827, 2, 524290, 589827, 2, 589826, 589827, 2, 720898, 589827, 2, 786434, 589827, 2, 786433, 589827, 2, 786432, 589827, 2, 851968, 589827, 2, 917504, 589827, 2, 917505, 589827, 2, 917506, 589827, 2, 917507, 589827, 2, 917508, 589827, 2, 851973, 589827, 2, 851974, 589827, 2, 851975, 589827, 2, 851976, 589827, 2, 851977, 589827, 2, 851978, 589827, 2, 851979, 589827, 2, 851980, 589827, 2, 851981, 589827, 2, 851982, 589827, 2, 851983, 589827, 2, 851984, 589827, 2, 851985, 589827, 2, 851986, 589827, 2, 851987, 589827, 2, 851988, 589827, 2, 851989, 589827, 2, 851990, 589827, 2, 851991, 589827, 2, 851992, 589827, 2, 851993, 589827, 2, 851994, 589827, 2, 851995, 589827, 2, 851996, 589827, 2, 851997, 589827, 2, 786461, 589827, 2, 720925, 589827, 2, 655389, 589827, 2, 589853, 589827, 2, 524317, 589827, 2, 458781, 589827, 2, 393245, 589827, 2, 327709, 589827, 2, 262173, 589827, 2, 196637, 589827, 2, 131101, 589827, 2, 65565, 589827, 2, 29, 589827, 2, 28, 589827, 2, 27, 589827, 2, 26, 589827, 2, 25, 589827, 2, 24, 589827, 2, 23, 589827, 2, 983040, 589827, 2, 1048576, 589827, 2, 1048577, 589827, 2, 1048578, 589827, 2, 1048579, 589827, 2, 1048580, 589827, 2, 1048581, 589827, 2, 1048582, 589827, 2, 1048583, 589827, 2, 1048584, 589827, 2, 1048585, 589827, 2, 1048586, 589827, 2, 1048587, 589827, 2, 1048588, 589827, 2, 1048589, 589827, 2, 1048590, 589827, 2, 1048591, 589827, 2, 1048592, 589827, 2, 1048593, 589827, 2, 1048594, 589827, 2, 1048595, 589827, 2, 1048596, 589827, 2, 1048597, 589827, 2, 1048598, 589827, 2, 1048599, 589827, 2, 1048600, 589827, 2, 1048601, 589827, 2, 1048602, 589827, 2, 1048603, 589827, 2, 1048604, 589827, 2, 1048605, 589827, 2, 983069, 589827, 2, 917533, 589827, 2, 327688, 589827, 2, 262152, 589827, 2, 196616, 589827, 2, 131080, 589827, 2, 131079, 589827, 2, 131078, 589827, 2, 196614, 589827, 2, 196613, 589827, 2, 196612, 589827, 2, 196611, 589827, 2, 262147, 589827, 2, 262146, 589827, 2, 262145, 589827, 2, 327682, 589827, 2, 393218, 589827, 2, 393219, 589827, 2, 327683, 589827, 2, 327684, 589827, 2, 262148, 589827, 2, 262149, 589827, 2, 327685, 589827, 2, 393221, 589827, 2, 393220, 589827, 2, 458756, 589827, 2, 458755, 589827, 2, 524291, 589827, 2, 589827, 589827, 2, 655363, 589827, 2, 655362, 589827, 2, 720899, 589827, 2, 786435, 589827, 2, 851971, 589827, 2, 851970, 589827, 2, 851969, 589827, 2, 851972, 589827, 2, 786436, 589827, 2, 720900, 589827, 2, 655364, 589827, 2, 589828, 589827, 2, 524292, 589827, 2, 524293, 589827, 2, 458757, 589827, 2, 458758, 589827, 2, 393222, 589827, 2, 327686, 589827, 2, 262150, 589827, 2, 262151, 589827, 2, 196615, 589827, 2, 327687, 589827, 2, 393223, 589827, 2, 458759, 589827, 2, 524295, 589827, 2, 524294, 589827, 2, 589830, 589827, 2, 589829, 589827, 2, 655365, 589827, 2, 720901, 589827, 2, 786437, 589827, 2, 786438, 589827, 2, 720902, 589827, 2, 655366, 589827, 2, 655367, 589827, 2, 589831, 589827, 2, 589832, 589827, 2, 524296, 589827, 2, 458760, 589827, 2, 393224, 589827, 2, 393225, 589827, 2, 327689, 589827, 2, 262153, 589827, 2, 196617, 589827, 2, 131081, 589827, 2, 131082, 589827, 2, 196618, 589827, 2, 262154, 589827, 2, 327690, 589827, 2, 393226, 589827, 2, 458762, 589827, 2, 458761, 589827, 2, 524297, 589827, 2, 589833, 589827, 2, 655369, 589827, 2, 655368, 589827, 2, 720904, 589827, 2, 720903, 589827, 2, 786439, 589827, 2, 786440, 589827, 2, 786441, 589827, 2, 720905, 589827, 2, 720906, 589827, 2, 655370, 589827, 2, 589834, 589827, 2, 524298, 589827, 2, 524299, 589827, 2, 458763, 589827, 2, 393227, 589827, 2, 327691, 589827, 2, 262155, 589827, 2, 196619, 589827, 2, 131083, 589827, 2, 131084, 589827, 2, 196620, 589827, 2, 262156, 589827, 2, 327692, 589827, 2, 393228, 589827, 2, 458764, 589827, 2, 524300, 589827, 2, 589836, 589827, 2, 589835, 589827, 2, 655371, 589827, 2, 720907, 589827, 2, 786443, 589827, 2, 786442, 589827, 2, 786444, 589827, 2, 720908, 589827, 2, 655372, 589827, 2, 655373, 589827, 2, 589837, 589827, 2, 524301, 589827, 2, 458765, 589827, 2, 393229, 589827, 2, 327693, 589827, 2, 262157, 589827, 2, 196621, 589827, 2, 131085, 589827, 2, 131086, 589827, 2, 196622, 589827, 2, 262158, 589827, 2, 327694, 589827, 2, 393230, 589827, 2, 458766, 589827, 2, 524302, 589827, 2, 589838, 589827, 2, 655374, 589827, 2, 720910, 589827, 2, 720909, 589827, 2, 786445, 589827, 2, 786446, 589827, 2, 786447, 589827, 2, 720911, 589827, 2, 655375, 589827, 2, 589839, 589827, 2, 524303, 589827, 2, 458767, 589827, 2, 393231, 589827, 2, 327695, 589827, 2, 262159, 589827, 2, 196623, 589827, 2, 131087, 589827, 2, 131088, 589827, 2, 196624, 589827, 2, 262160, 589827, 2, 327696, 589827, 2, 393232, 589827, 2, 458768, 589827, 2, 524304, 589827, 2, 589840, 589827, 2, 655376, 589827, 2, 720912, 589827, 2, 786448, 589827, 2, 786449, 589827, 2, 720913, 589827, 2, 655377, 589827, 2, 589841, 589827, 2, 524305, 589827, 2, 458769, 589827, 2, 393233, 589827, 2, 327697, 589827, 2, 262161, 589827, 2, 196625, 589827, 2, 131089, 589827, 2, 131090, 589827, 2, 196626, 589827, 2, 262162, 589827, 2, 327698, 589827, 2, 393234, 589827, 2, 458770, 589827, 2, 524306, 589827, 2, 589842, 589827, 2, 655378, 589827, 2, 720914, 589827, 2, 786450, 589827, 2, 786451, 589827, 2, 720915, 589827, 2, 655379, 589827, 2, 589843, 589827, 2, 524307, 589827, 2, 458771, 589827, 2, 393235, 589827, 2, 327699, 589827, 2, 262163, 589827, 2, 196627, 589827, 2, 131091, 589827, 2, 131092, 589827, 2, 196628, 589827, 2, 262164, 589827, 2, 327700, 589827, 2, 393236, 589827, 2, 458772, 589827, 2, 524308, 589827, 2, 589844, 589827, 2, 655380, 589827, 2, 720916, 589827, 2, 786452, 589827, 2, 786453, 589827, 2, 720917, 589827, 2, 655381, 589827, 2, 589845, 589827, 2, 524309, 589827, 2, 458773, 589827, 2, 393237, 589827, 2, 327701, 589827, 2, 262165, 589827, 2, 196629, 589827, 2, 131093, 589827, 2, 131094, 589827, 2, 196630, 589827, 2, 262166, 589827, 2, 327702, 589827, 2, 393238, 589827, 2, 458774, 589827, 2, 524310, 589827, 2, 589846, 589827, 2, 655382, 589827, 2, 720918, 589827, 2, 786454, 589827, 2, 786455, 589827, 2, 720919, 589827, 2, 655383, 589827, 2, 589847, 589827, 2, 524311, 589827, 2, 458775, 589827, 2, 393239, 589827, 2, 327703, 589827, 2, 262167, 589827, 2, 196631, 589827, 2, 131095, 589827, 2, 131096, 589827, 2, 196632, 589827, 2, 262168, 589827, 2, 327704, 589827, 2, 393240, 589827, 2, 458776, 589827, 2, 524312, 589827, 2, 589848, 589827, 2, 655384, 589827, 2, 720920, 589827, 2, 786456, 589827, 2, 786457, 589827, 2, 720921, 589827, 2, 655385, 589827, 2, 589849, 589827, 2, 524313, 589827, 2, 458777, 589827, 2, 393241, 589827, 2, 327705, 589827, 2, 262169, 589827, 2, 196633, 589827, 2, 131097, 589827, 2, 65561, 589827, 2, 65562, 589827, 2, 131098, 589827, 2, 196634, 589827, 2, 262170, 589827, 2, 327706, 589827, 2, 393242, 589827, 2, 458778, 589827, 2, 524314, 589827, 2, 589850, 589827, 2, 655386, 589827, 2, 720922, 589827, 2, 786458, 589827, 2, 786459, 589827, 2, 720923, 589827, 2, 655387, 589827, 2, 589851, 589827, 2, 524315, 589827, 2, 458779, 589827, 2, 393243, 589827, 2, 327707, 589827, 2, 262171, 589827, 2, 196635, 589827, 2, 131099, 589827, 2, 65563, 589827, 2, 65564, 589827, 2, 131100, 589827, 2, 196636, 589827, 2, 262172, 589827, 2, 327708, 589827, 2, 393244, 589827, 2, 458780, 589827, 2, 524316, 589827, 2, 589852, 589827, 2, 655388, 589827, 2, 720924, 589827, 2, 786460, 589827, 2, 131073, 589827, 2, 524289, 589827, 2, 983055, 589827, 2, 917519, 589827, 2, 917518, 589827, 2, 917517, 589827, 2, 917516, 589827, 2, 917515, 589827, 2, 917514, 589827, 2, 917513, 589827, 2, 917512, 589827, 2, 917511, 589827, 2, 917510, 589827, 2, 917509, 589827, 2, 983045, 589827, 2, 983044, 589827, 2, 983043, 589827, 2, 983042, 589827, 2, 983041, 589827, 2, 983046, 589827, 2, 983047, 589827, 2, 983048, 589827, 2, 983049, 589827, 2, 983050, 589827, 2, 983051, 589827, 2, 983052, 589827, 2, 983053, 589827, 2, 983054, 589827, 2, 917520, 589827, 2, 983056, 589827, 2, 983057, 589827, 2, 917521, 589827, 2, 917522, 589827, 2, 983058, 589827, 2, 983059, 589827, 2, 917523, 589827, 2, 917524, 589827, 2, 983060, 589827, 2, 983061, 589827, 2, 917525, 589827, 2, 917526, 589827, 2, 983062, 589827, 2, 983063, 589827, 2, 917527, 589827, 2, 917528, 589827, 2, 983064, 589827, 2, 983065, 589827, 2, 917529, 589827, 2, 917530, 589827, 2, 983066, 589827, 2, 983067, 589827, 2, 917531, 589827, 2, 917532, 589827, 2, 983068, 589827, 2) |
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,3 @@ | ||
[gd_scene format=3 uid="uid://cbwfg8x6vuvbm"] | ||
|
||
[node name="Node3D" type="Node3D"] |
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,28 @@ | ||
extends Node | ||
|
||
var config = ConfigFile.new() | ||
|
||
var user_config = "user://config.cfg" | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
# Load the config file, if it exists. | ||
var err = config.load(user_config) | ||
if err != OK: | ||
# If it doesn't exist, create it. | ||
config.save(user_config) | ||
|
||
func set_option(section, key, value): | ||
config.set_value(section, key, value) | ||
|
||
func load_option(section, key, default_value): | ||
var val = config.get_value(section, key) | ||
if val != null: | ||
print_debug(val) | ||
return val | ||
else: | ||
set_option(section, key, default_value) | ||
return default_value | ||
|
||
func save_config(): | ||
config.save(user_config) |
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,36 @@ | ||
extends Node | ||
|
||
var current_scene = null | ||
var scene_stack = [] | ||
|
||
func _ready() -> void: | ||
var root = get_tree().root | ||
current_scene = root.get_child(root.get_child_count() - 1) | ||
scene_stack.push_back(current_scene) | ||
|
||
func push_scene(res_path: String) -> void: | ||
scene_stack.push_back(current_scene) | ||
call_deferred("_deferred_switch_scene", res_path) | ||
|
||
# TODO: this is broken | ||
func pop_scene() -> void: | ||
if scene_stack.size() > 1: | ||
scene_stack.pop_back() | ||
call_deferred("_deferred_switch_scene", scene_stack[scene_stack.size() - 1].get_path()) | ||
else: | ||
print_debug("Scene stack is empty, cannot pop scene") | ||
|
||
# legacy, will clear the scene stack | ||
func switch_scene(res_path: String) -> void: | ||
scene_stack.clear() | ||
call_deferred("_deferred_switch_scene", res_path) | ||
|
||
func _deferred_switch_scene(res_path: String) -> void: | ||
current_scene.free() | ||
var scene = load(res_path) | ||
current_scene = scene.instantiate() | ||
get_tree().root.add_child(current_scene) | ||
get_tree().current_scene = current_scene | ||
|
||
# func _process(delta): | ||
# print_debug(scene_stack) |
File renamed without changes.
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,19 @@ | ||
extends Control | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass # Replace with function body. | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _process(delta): | ||
pass | ||
|
||
|
||
func _on_button_exit_pressed(): | ||
get_tree().quit() | ||
|
||
|
||
func _on_button_options_pressed(): | ||
SceneManager.switch_scene("res://scenes/ui/options_menu.tscn") |
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,13 @@ | ||
extends Control | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
$CheckBoxFullscreen.toggled = ConfigManager.load_option("display", "fullscreen", false) | ||
|
||
func _on_button_back_pressed(): | ||
SceneManager.switch_scene("res://main.tscn") | ||
|
||
|
||
func _on_check_box_fullscreen_toggled(toggled_on:bool): | ||
ConfigManager.set_option("display", "fullscreen", toggled_on) | ||
ConfigManager.save_config() |
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,31 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://b42wqmb4v21sl"] | ||
|
||
[ext_resource type="Script" path="res://scenes/ui/options_menu.gd" id="1_0elkx"] | ||
|
||
[node name="OptionsMenu" type="Control"] | ||
layout_mode = 3 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
script = ExtResource("1_0elkx") | ||
|
||
[node name="ButtonBack" type="Button" parent="."] | ||
layout_mode = 0 | ||
offset_left = 16.0 | ||
offset_top = 16.0 | ||
offset_right = 61.0 | ||
offset_bottom = 47.0 | ||
text = "Back" | ||
|
||
[node name="CheckBoxFullscreen" type="CheckBox" parent="."] | ||
layout_mode = 0 | ||
offset_left = 16.0 | ||
offset_top = 56.0 | ||
offset_right = 123.0 | ||
offset_bottom = 87.0 | ||
text = "Fullscreen" | ||
|
||
[connection signal="pressed" from="ButtonBack" to="." method="_on_button_back_pressed"] | ||
[connection signal="toggled" from="CheckBoxFullscreen" to="." method="_on_check_box_fullscreen_toggled"] |