summaryrefslogtreecommitdiff
path: root/client/menu/settings
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/settings')
-rw-r--r--client/menu/settings/path_setting.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/menu/settings/path_setting.gd b/client/menu/settings/path_setting.gd
index 747721e9..2d8f3e9b 100644
--- a/client/menu/settings/path_setting.gd
+++ b/client/menu/settings/path_setting.gd
@@ -1,5 +1,6 @@
# Hurry Curry! - a game about cooking
# Copyright 2025 nokoe
+# Copyright 2025 tpart
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -16,6 +17,9 @@
class_name PathSetting
extends TextSetting
+var select_file_icon: Texture2D = preload("res://menu/icons/select_file.svg")
+var select_dir_icon: Texture2D = preload("res://menu/icons/select_directory.svg")
+
var access: FileDialog.Access
var file_mode: FileDialog.FileMode
@@ -37,6 +41,7 @@ func create_row():
row.value_node = HBoxContainer.new()
row.value_node.add_child(input)
var button := Button.new()
+ button.icon = select_file_icon if file_mode == FileDialog.FileMode.FILE_MODE_OPEN_FILE else select_dir_icon
row.value_node.add_child(button)
button.pressed.connect(func():
var d := FileDialog.new()