diff options
| author | nokoe <nokoe@mailbox.org> | 2024-08-13 22:03:23 +0200 | 
|---|---|---|
| committer | nokoe <nokoe@mailbox.org> | 2024-08-13 22:04:14 +0200 | 
| commit | c63337bb6fe3e7b8abedeea9f4ab2ebf6dc1242a (patch) | |
| tree | bcd57fbc0a4d0dcf8a45a670334ca8c4dcd634d2 /client/menu/settings.gd | |
| parent | ebc36f3f18547608c19ddeba39997c7bf2613010 (diff) | |
| download | hurrycurry-c63337bb6fe3e7b8abedeea9f4ab2ebf6dc1242a.tar hurrycurry-c63337bb6fe3e7b8abedeea9f4ab2ebf6dc1242a.tar.bz2 hurrycurry-c63337bb6fe3e7b8abedeea9f4ab2ebf6dc1242a.tar.zst | |
presets
Diffstat (limited to 'client/menu/settings.gd')
| -rw-r--r-- | client/menu/settings.gd | 16 | 
1 files changed, 14 insertions, 2 deletions
| diff --git a/client/menu/settings.gd b/client/menu/settings.gd index 800e3c66..27e08db7 100644 --- a/client/menu/settings.gd +++ b/client/menu/settings.gd @@ -33,11 +33,23 @@ func exit():  func update_rows(fix_focus = false):  	for c in options.get_children():  		c.queue_free() -	 + +	for i in Global.presets: +		var label := Label.new() +		label.text = i.label +		var hbox := HBoxContainer.new() +		var spacer := Control.new() +		spacer.size_flags_horizontal = Control.SIZE_EXPAND +		hbox.add_child(label) +		hbox.add_child(spacer) +		options.add_child(hbox) +		for b in i.buttons(): +			hbox.add_child(b) +  	for k in Global.settings.keys():  		var row: SettingsRow = Global.settings[k].get_row()  		options.add_child(row) -	 +  	if fix_focus:  		pass  		# TODO: Not implemented! | 
