diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-09-07 03:39:06 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-09-07 03:39:06 +0200 |
| commit | a97f429c6a0ead9eb084efbd276bd999bf9c9a7f (patch) | |
| tree | 55f259924422d8611c070c935313705f04003530 /client/menu/settings/settings_category.gd | |
| parent | 78b7ec6ef9e343731cc496f11c76a0a3e5f37220 (diff) | |
| download | hurrycurry-a97f429c6a0ead9eb084efbd276bd999bf9c9a7f.tar hurrycurry-a97f429c6a0ead9eb084efbd276bd999bf9c9a7f.tar.bz2 hurrycurry-a97f429c6a0ead9eb084efbd276bd999bf9c9a7f.tar.zst | |
_update_row -> create_row
Diffstat (limited to 'client/menu/settings/settings_category.gd')
| -rw-r--r-- | client/menu/settings/settings_category.gd | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/menu/settings/settings_category.gd b/client/menu/settings/settings_category.gd index 4f5fbbc4..b5d02d8f 100644 --- a/client/menu/settings/settings_category.gd +++ b/client/menu/settings/settings_category.gd @@ -29,7 +29,7 @@ func set_parent(parent: GameSetting): for c in settings: c.set_parent(self) -func _update_row(): +func create_row(): var row = ScrollContainerCustom.new() var options = VBoxContainer.new() row.name = tr(nskey) @@ -37,9 +37,7 @@ func _update_row(): options.size_flags_horizontal = Control.SIZE_EXPAND_FILL row.add_child(options) - for r in settings: - r._update_row() - options.add_child(r.row) + for r in settings: options.add_child(r.create_row()) return row func check(): |