Browse Source

added visible cdp location in settings

Jonathan Higgins 3 months ago
parent
commit
32213b4807
3 changed files with 18 additions and 2 deletions
  1. 1 0
      scenes/main/scripts/control.gd
  2. 3 0
      scenes/main/scripts/settings.gd
  3. 14 2
      scenes/main/settings.tscn

+ 1 - 0
scenes/main/scripts/control.gd

@@ -376,6 +376,7 @@ func _on_settings_button_index_pressed(index: int) -> void:
 	
 	match index:
 		0:
+			$Settings.cdpprogs_location = cdpprogs_location
 			$Settings.popup_centered()
 		1:
 			$AudioSettings.popup_centered()

+ 3 - 0
scenes/main/scripts/settings.gd

@@ -3,6 +3,7 @@ signal open_cdp_location
 signal console_on_top
 var interface_settings
 var main_theme = preload("res://theme/main_theme.tres")
+var cdpprogs_location
 
 signal invert_ui
 
@@ -29,6 +30,8 @@ func _on_about_to_popup() -> void:
 	$VBoxContainer/HBoxContainer6/ProgressBar.button_pressed = interface_settings.disable_progress_bar
 	$VBoxContainer/HBoxContainer3/AutoCloseConsole.button_pressed = interface_settings.auto_close_console
 	$VBoxContainer/HBoxContainer4/ConsoleAlwaysOnTop.button_pressed = interface_settings.console_on_top
+	$VBoxContainer/HBoxContainer7/cdprogsLocationLabel.text = cdpprogs_location
+	$VBoxContainer/HBoxContainer7.tooltip_text = cdpprogs_location
 	
 
 func _on_pvoc_warning_toggled(toggled_on: bool) -> void:

+ 14 - 2
scenes/main/settings.tscn

@@ -7,7 +7,7 @@
 auto_translate_mode = 1
 title = "SoundThread Settings"
 initial_position = 2
-size = Vector2i(500, 410)
+size = Vector2i(500, 458)
 transient = true
 unresizable = true
 always_on_top = true
@@ -15,7 +15,7 @@ script = ExtResource("1_uey6c")
 
 [node name="ColorRect" type="ColorRect" parent="." groups=["invertable_background"]]
 offset_right = 506.0
-offset_bottom = 421.0
+offset_bottom = 467.0
 color = Color(0.101961, 0.101961, 0.101961, 0.6)
 script = ExtResource("2_bym2s")
 
@@ -39,6 +39,18 @@ layout_mode = 2
 theme_override_font_sizes/font_size = 18
 text = "Composers Desktop Project"
 
+[node name="HBoxContainer7" type="HBoxContainer" parent="VBoxContainer"]
+layout_mode = 2
+
+[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer7"]
+layout_mode = 2
+text = "CDP location: "
+
+[node name="cdprogsLocationLabel" type="Label" parent="VBoxContainer/HBoxContainer7"]
+layout_mode = 2
+size_flags_horizontal = 3
+text_overrun_behavior = 3
+
 [node name="ChangeCDP" type="Button" parent="VBoxContainer"]
 layout_mode = 2
 text = "Change location for cdprogs folder"