new font and menu tweaks, created bishop and knight character
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 10s
Create tag and build when new code gets to main / Export (push) Successful in 1m30s

This commit is contained in:
2026-02-01 12:41:49 +01:00
parent a4cf579c8e
commit 837b994ef0
70 changed files with 1238 additions and 38 deletions

View File

@@ -1,8 +1,8 @@
[gd_scene format=3 uid="uid://bvpyqyftqhy45"]
[ext_resource type="Script" uid="uid://dnt4l1eghm1gi" path="res://scenes/character/character.gd" id="1_cuyo6"]
[ext_resource type="Resource" uid="uid://c87odmn680x7" path="res://resources/characters/duchex.tres" id="2_fgi2k"]
[ext_resource type="Texture2D" uid="uid://dwy3kklywl0ci" path="res://assets/characters/Perso 1.png" id="3_f8hpl"]
[ext_resource type="Resource" uid="uid://c2v05fqr7cwll" path="res://resources/characters/bishop.tres" id="2_fgi2k"]
[ext_resource type="Texture2D" uid="uid://dmmhwqsi3im3w" path="res://assets/characters/Perso 4.png" id="3_f8hpl"]
[ext_resource type="PackedScene" uid="uid://3jlukpb5hefb" path="res://scenes/mask/mask.tscn" id="3_mutn8"]
[sub_resource type="Animation" id="Animation_fgi2k"]
@@ -164,12 +164,10 @@ chara_resource = ExtResource("2_fgi2k")
texture = ExtResource("3_f8hpl")
[node name="MaskMouth" parent="." unique_id=1087336064 instance=ExtResource("3_mutn8")]
position = Vector2(76.505, 203.355)
rotation = -0.05235988
visible = false
[node name="MaskEyes" parent="." unique_id=428968220 instance=ExtResource("3_mutn8")]
position = Vector2(61.445, 168.635)
rotation = -0.06981317
visible = false
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=713965213]
libraries/ = SubResource("AnimationLibrary_7ex5l")

View File

@@ -1,6 +1,9 @@
extends Area2D
class_name List
var current_item = 0
@onready var label: Label = $Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@@ -12,5 +15,33 @@ func _process(delta: float) -> void:
pass
func set_list(items: Array[Resource]):
func set_mask_list(items: Array[MaskResource]):
print(items)
current_item = 0
if items.size() == 0:
label.text = "..."
func set_chara_list(items: Array[CharacterResource]):
print(items)
current_item = 0
if items.size() == 0:
label.text = "..."
func cycle_through_items() -> void:
current_item += 1
print(current_item)
func _on_mouse_entered() -> void:
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_POINTING_HAND)
func _on_mouse_exited() -> void:
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
func _on_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
if event is InputEventMouseButton and event.is_pressed():
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
cycle_through_items()

View File

@@ -11,3 +11,19 @@ script = ExtResource("1_khygj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=579673425]
shape = SubResource("CapsuleShape2D_trceg")
[node name="Label" type="Label" parent="." unique_id=1624172949]
z_index = 10
custom_minimum_size = Vector2(360, 0)
offset_left = -179.0
offset_top = -257.0
offset_right = 121.0
offset_bottom = -209.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 24
text = "..."
autowrap_mode = 3
[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]

View File

@@ -152,7 +152,19 @@ func on_ready_bell_pressed() -> void:
current_chara_roster = [lvl3_guest_1, lvl3_guest_2, lvl3_guest_3]
else:
create_new_roster()
var all_chara_in_current_roster: Array[CharacterResource] = []
var all_masks_in_current_roster: Array[MaskResource] = []
for masked_chara in current_chara_roster:
all_chara_in_current_roster.append(masked_chara.character)
if masked_chara.face_mask.resource_name:
all_masks_in_current_roster.append(masked_chara.face_mask)
if masked_chara.mouth_mask.resource_name:
all_masks_in_current_roster.append(masked_chara.mouth_mask)
mask_list.set_mask_list(all_masks_in_current_roster)
guest_list.set_chara_list(all_chara_in_current_roster)
current_game_state = GameState.GUEST_REVIEW
bell_anim_player.stop()
ring_bell.visible = false