SnekStudio module for multiplayer / multiuser support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
604 B

extends Container
@export var visible_icon: Texture2D
@export var hidden_icon: Texture2D
func _on_cache_dir_dialog_pressed() -> void:
var widget: LineEdit = $"Cache/LineEdit"
var dialog: FileDialog = $"Cache/FileDialog"
dialog.size = get_window().size / 2
dialog.position = get_window().size / 4
dialog.current_dir = widget.text
dialog.popup()
widget.text = await dialog.dir_selected
widget.text_changed.emit(widget.text)
func _on_show_hide_address_toggled(toggled_on: bool) -> void:
$"Host/Address".secret = !toggled_on
$"Host/ShowHide".icon = visible_icon if toggled_on else hidden_icon