ps1 filter variables, crowds

This commit is contained in:
2026-07-30 15:12:22 +03:00
parent 3defc9da95
commit 271de1b045
31 changed files with 872 additions and 17 deletions
+20 -6
View File
@@ -130,11 +130,24 @@ func _apply_theme() -> void:
if title != null:
title.add_theme_font_override("font", UiFonts.title())
title.add_theme_color_override("font_color", MENU_GOLD)
for path: String in ["OptionsPanel/VBox/Hint", "CreditsPanel/VBox/Names"]:
var lbl := get_node_or_null(path) as Label
if lbl != null:
lbl.add_theme_font_override("font", UiFonts.body())
lbl.add_theme_color_override("font_color", MENU_CREAM)
var hint := get_node_or_null("OptionsPanel/VBox/Hint") as Label
if hint != null:
hint.add_theme_font_override("font", UiFonts.body())
hint.add_theme_color_override("font_color", MENU_CREAM)
_style_credits(get_node_or_null("CreditsPanel/VBox/Names") as RichTextLabel)
# The credits use a RichTextLabel so the Instagram handles are clickable links
# ([url] tags). meta_clicked opens the profile — in the web export OS.shell_open
# pops a new browser tab.
func _style_credits(names: RichTextLabel) -> void:
if names == null:
return
names.add_theme_font_override("normal_font", UiFonts.body())
names.add_theme_font_override("bold_font", UiFonts.title())
names.add_theme_color_override("default_color", MENU_CREAM)
names.meta_clicked.connect(func(meta: Variant) -> void:
OS.shell_open(str(meta)))
func _style_button(btn: Button, big: bool) -> void:
@@ -182,9 +195,10 @@ func _build_rebind_rows() -> void:
name_label.size_flags_horizontal = Control.SIZE_EXPAND_FILL
name_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
name_label.add_theme_font_override("font", UiFonts.body())
name_label.add_theme_font_size_override("font_size", 20)
name_label.add_theme_color_override("font_color", MENU_CREAM)
name_label.add_theme_color_override("font_outline_color", Color.BLACK)
name_label.add_theme_constant_override("outline_size", 4)
name_label.add_theme_constant_override("outline_size", 5)
row.add_child(name_label)
var key_button := Button.new()