summaryrefslogtreecommitdiff
path: root/client/menu/hairstyle_preview.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/hairstyle_preview.gd')
-rw-r--r--client/menu/hairstyle_preview.gd13
1 files changed, 8 insertions, 5 deletions
diff --git a/client/menu/hairstyle_preview.gd b/client/menu/hairstyle_preview.gd
index 08b6aab9..415f5c21 100644
--- a/client/menu/hairstyle_preview.gd
+++ b/client/menu/hairstyle_preview.gd
@@ -1,4 +1,5 @@
# Hurry Curry! - a game about cooking
+# Copyright 2025 tpart
# Copyright 2024 nokoe
#
# This program is free software: you can redistribute it and/or modify
@@ -16,10 +17,12 @@
class_name HairstylePreview
extends VBoxContainer
-signal selected(character: int)
+signal selected(character_style: Dictionary)
-func setup(character: int, group: ButtonGroup):
- $HairViewport/Node3D/Character.set_style(character)
+func setup(hairstyle: int, group: ButtonGroup):
+ var character_style = Global.default_profile.character_style
+ character_style.hairstyle = hairstyle
+ $HairViewport/Node3D/Character.set_style(character_style, "chef")
$Select.button_group = group
- $Select.text = tr("c.setup.uniform.value").format([character + 1])
- $Select.pressed.connect(func(): selected.emit(character))
+ $Select.text = tr("c.setup.uniform.value").format([hairstyle + 1])
+ $Select.pressed.connect(func(): selected.emit(character_style))