Setup for dynamic elevator floor buttons
Add a button scene, as well as a button scene. Each button has an Area3D to detect collisons; a two-row sprite sheet contains all of the numbers and their on/off state.
This commit is contained in:
parent
acb10d18a4
commit
189823e8bf
9 changed files with 219 additions and 0 deletions
75
scenes/button_panel.tscn
Normal file
75
scenes/button_panel.tscn
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
[gd_scene format=3 uid="uid://cnjn0vhg1phav"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bw1kbbl3n83e8" path="res://scenes/floor_button.tscn" id="1_lff67"]
|
||||
|
||||
[node name="ButtonPanel" type="Node3D" unique_id=1270714626]
|
||||
|
||||
[node name="FloorButtons" type="Node3D" parent="." unique_id=1608506954]
|
||||
|
||||
[node name="00" parent="." unique_id=1628684586 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.360477, 0)
|
||||
|
||||
[node name="01" parent="." unique_id=1324476691 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.8598118, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="01" index="0" unique_id=1628684586]
|
||||
frame = 1
|
||||
|
||||
[node name="02" parent="." unique_id=1143590285 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.3875825, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="02" index="0" unique_id=1628684586]
|
||||
frame = 2
|
||||
|
||||
[node name="03" parent="." unique_id=1467372561 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.03961301, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="03" index="0" unique_id=1628684586]
|
||||
frame = 3
|
||||
|
||||
[node name="04" parent="." unique_id=652433944 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3832786, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="04" index="0" unique_id=1628684586]
|
||||
frame = 4
|
||||
|
||||
[node name="05" parent="." unique_id=470439905 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.842876, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="05" index="0" unique_id=1628684586]
|
||||
frame = 5
|
||||
|
||||
[node name="06" parent="." unique_id=1293107230 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.1931896, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="06" index="0" unique_id=1628684586]
|
||||
frame = 6
|
||||
|
||||
[node name="07" parent="." unique_id=1309697731 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.632162, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="07" index="0" unique_id=1628684586]
|
||||
frame = 7
|
||||
|
||||
[node name="08" parent="." unique_id=447931949 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7.0681796, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="08" index="0" unique_id=1628684586]
|
||||
frame = 8
|
||||
|
||||
[node name="09" parent="." unique_id=1200513083 instance=ExtResource("1_lff67")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.490524, 0)
|
||||
|
||||
[node name="ButtonSprite" parent="09" index="0" unique_id=1628684586]
|
||||
frame = 9
|
||||
|
||||
[editable path="00"]
|
||||
[editable path="01"]
|
||||
[editable path="02"]
|
||||
[editable path="03"]
|
||||
[editable path="04"]
|
||||
[editable path="05"]
|
||||
[editable path="06"]
|
||||
[editable path="07"]
|
||||
[editable path="08"]
|
||||
[editable path="09"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue