conforms file names to consistant standard

This commit is contained in:
2026-02-21 04:24:04 +11:00
parent 6b67dd9755
commit 5a4ad8633a
1991 changed files with 3836 additions and 7976 deletions

View File

@@ -0,0 +1,34 @@
[gd_scene format=3 uid="uid://c6isprnkaliqr"]
[ext_resource type="Script" uid="uid://bpvmvx10q4ayd" path="res://scenes/mixer/scr_mixer.gd" id="1_q8doq"]
[ext_resource type="PackedScene" uid="uid://bajli4d3nqwll" path="res://ui/menus/MixingMenu/track_editor.tscn" id="2_ibyhf"]
[ext_resource type="Script" uid="uid://dkfswql8ui0bt" path="res://scripts/interact_button.gd" id="2_mjah6"]
[sub_resource type="BoxShape3D" id="BoxShape3D_ibyhf"]
[sub_resource type="BoxShape3D" id="BoxShape3D_78x4u"]
size = Vector3(0.5, 0.5, 0.5)
[node name="RemixTable" type="StaticBody3D" unique_id=155375437 node_paths=PackedStringArray("button")]
script = ExtResource("1_q8doq")
remix_menu_scene = ExtResource("2_ibyhf")
button = NodePath("StaticBody3D")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=512153260]
shape = SubResource("BoxShape3D_ibyhf")
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=1398049834]
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=1526369567]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.524303, 0)
collision_layer = 16
collision_mask = 0
script = ExtResource("2_mjah6")
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=296240418]
shape = SubResource("BoxShape3D_78x4u")
[node name="CSGBox3D" type="CSGBox3D" parent="StaticBody3D" unique_id=2047185618]
size = Vector3(0.5, 0.5, 0.5)
[connection signal="button_interacted" from="StaticBody3D" to="." method="_on_static_body_3d_button_interacted"]

37
scenes/mixer/scr_mixer.gd Normal file
View File

@@ -0,0 +1,37 @@
class_name RemixTable
extends StaticBody3D
@export var remix_menu_scene: PackedScene
@export var button: InteractButton
var reply_player: Hero
func _ready() -> void:
button.hover_text = tr("PROMPT_REMIX_INTERACT")
func _on_static_body_3d_button_interacted(_value: int, callback: Hero) -> void:
if callback.hand.size >= 1:
reply_player = callback
var menu: TrackEditor = remix_menu_scene.instantiate() as TrackEditor
var cassette_array: Array[Cassette] = []
for cassette: Cassette in callback.hand.contents:
cassette_array.append(cassette)
menu.hero = reply_player
menu.set_money(reply_player.currency)
menu.populate_feature_slots()
menu.add_option(cassette_array)
menu.cassettes_remixed.connect(output)
menu.press_check_button(false)
reply_player.pause()
reply_player.hud.add_child(menu)
func output(cassettes_to_remove: Array[Cassette], cassettes_to_add: Array[Cassette], amount_spent: int) -> void:
for cassette: Cassette in cassettes_to_remove:
reply_player.hand.contents.erase(cassette)
reply_player.hud.hot_wheel.update_cassettes(reply_player.get_wheel_cassettes())
for cassette: Cassette in cassettes_to_add:
reply_player.add_cassette(cassette)
reply_player.currency -= amount_spent
reply_player.unpause()

View File

@@ -0,0 +1 @@
uid://bpvmvx10q4ayd