diff options
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! |