add base system
This commit is contained in:
6
docs/museums/photo_mode/museum_photo_mode.gd
Normal file
6
docs/museums/photo_mode/museum_photo_mode.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends Node3D
|
||||
|
||||
@onready var collection_compendium: Control = $Control/CollectionCompendium
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
collection_compendium.visible = !collection_compendium.visible
|
||||
1
docs/museums/photo_mode/museum_photo_mode.gd.uid
Normal file
1
docs/museums/photo_mode/museum_photo_mode.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://7oglx4br38d5
|
||||
80
docs/museums/photo_mode/museum_photo_mode.tscn
Normal file
80
docs/museums/photo_mode/museum_photo_mode.tscn
Normal file
@@ -0,0 +1,80 @@
|
||||
[gd_scene format=3 uid="uid://bwc8slnbu7dmn"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://vni5kjalum6d" path="res://core/photo_mode/photo_mode_controller.tscn" id="1_css17"]
|
||||
[ext_resource type="Script" uid="uid://7oglx4br38d5" path="res://docs/museums/photo_mode/museum_photo_mode.gd" id="1_ynvi2"]
|
||||
[ext_resource type="PackedScene" uid="uid://bmkxt6btcx8qr" path="res://core/photo_mode/collectible.tscn" id="2_48mla"]
|
||||
[ext_resource type="Script" uid="uid://bj34o0org55ei" path="res://core/photo_mode/collectible_resource.gd" id="3_hh1ka"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3grftlmap4q5" path="res://docs/museums/daynight/scenes/grain_test/leaf_test.png" id="4_fan5s"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvw086glfpcba" path="res://core/photo_mode/collection_compendium.tscn" id="5_ws0fy"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_48mla"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_hh1ka"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ynvi2"]
|
||||
size = Vector3(1.9942131, 0.09710693, 1.984024)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ynvi2"]
|
||||
script = ExtResource("3_hh1ka")
|
||||
id = "gatto"
|
||||
title = "Gatto"
|
||||
image = ExtResource("4_fan5s")
|
||||
metadata/_custom_type_script = "uid://bj34o0org55ei"
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_hh1ka"]
|
||||
|
||||
[node name="MuseumPhotoMode" type="Node3D" unique_id=1314600330]
|
||||
script = ExtResource("1_ynvi2")
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=213183287]
|
||||
environment = SubResource("Environment_48mla")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1274975837]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.17952333, 0.98375374, 0, -0.98375374, 0.17952333, 0, 18.920979, 0)
|
||||
|
||||
[node name="Floor" type="MeshInstance3D" parent="." unique_id=958865480]
|
||||
transform = Transform3D(20, 0, 0, 0, 20, 0, 0, 0, 20, 0, -0.83473957, 0)
|
||||
mesh = SubResource("PlaneMesh_hh1ka")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="Floor" unique_id=2096983240]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor/StaticBody3D" unique_id=188185045]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0036563873, -0.009703338, -0.00868988)
|
||||
shape = SubResource("BoxShape3D_ynvi2")
|
||||
|
||||
[node name="PhotoModeController" parent="." unique_id=695158870 node_paths=PackedStringArray("rotation_target") instance=ExtResource("1_css17")]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.49999994, 0.8660254, 0, -0.8660254, 0.49999994, 0, 30, 20)
|
||||
movement_bounds = AABB(-5, -5, -5, 10, 10, 10)
|
||||
rotation_target = NodePath("../Node3D")
|
||||
|
||||
[node name="Node3D" type="Node3D" parent="." unique_id=570786250]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0)
|
||||
|
||||
[node name="Node3D2" type="Node3D" parent="." unique_id=15037296]
|
||||
|
||||
[node name="Collectible" parent="Node3D2" unique_id=1229019813 instance=ExtResource("2_48mla")]
|
||||
collectible_data = SubResource("Resource_ynvi2")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D2" unique_id=553040412]
|
||||
mesh = SubResource("BoxMesh_hh1ka")
|
||||
|
||||
[node name="Control" type="Control" parent="." unique_id=1802496396]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Button" type="Button" parent="Control" unique_id=539195532]
|
||||
layout_mode = 0
|
||||
offset_right = 8.0
|
||||
offset_bottom = 8.0
|
||||
text = "Compendium"
|
||||
|
||||
[node name="CollectionCompendium" parent="Control" unique_id=354419843 instance=ExtResource("5_ws0fy")]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
|
||||
[connection signal="pressed" from="Control/Button" to="." method="_on_button_pressed"]
|
||||
Reference in New Issue
Block a user