Main Menu 0.3

This commit is contained in:
2020-02-19 00:32:05 +01:00
parent 303bac604b
commit d65d31abce
9 changed files with 1201 additions and 39 deletions
+33 -39
View File
@@ -1,10 +1,22 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://Menu/iconegg.png" type="Texture" id=1] [ext_resource path="res://Menu/iconegg.png" type="Texture" id=1]
[ext_resource path="res://Main Menu.gd" type="Script" id=2] [ext_resource path="res://Main Menu.gd" type="Script" id=2]
[ext_resource path="res://main.obj" type="ArrayMesh" id=3] [ext_resource path="res://main.tscn" type="PackedScene" id=3]
[ext_resource path="res://MainSpatial.gd" type="Script" id=4]
[sub_resource type="ProceduralSky" id=1]
sky_top_color = Color( 0.482353, 0.494118, 0.54902, 1 )
sky_horizon_color = Color( 0.368627, 0.372549, 0.376471, 1 )
sun_latitude = 2.77
sun_longitude = -50.44
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
[node name="Spatial" type="Spatial"] [node name="Spatial" type="Spatial"]
script = ExtResource( 4 )
[node name="Main Menu" type="Control" parent="."] [node name="Main Menu" type="Control" parent="."]
anchor_right = 1.0 anchor_right = 1.0
@@ -65,44 +77,26 @@ margin_right = 577.0
margin_bottom = 535.0 margin_bottom = 535.0
text = "Mark houdt van BBC" text = "Mark houdt van BBC"
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = ExtResource( 3 )
material/0 = null
material/1 = null
material/2 = null
material/3 = null
material/4 = null
material/5 = null
material/6 = null
material/7 = null
material/8 = null
material/9 = null
material/10 = null
material/11 = null
material/12 = null
material/13 = null
material/14 = null
material/15 = null
material/16 = null
material/17 = null
material/18 = null
material/19 = null
material/20 = null
material/21 = null
material/22 = null
material/23 = null
material/24 = null
material/25 = null
material/26 = null
material/27 = null
material/28 = null
material/29 = null
material/30 = null
material/31 = null
material/32 = null
[node name="Camera" type="Camera" parent="."] [node name="Camera" type="Camera" parent="."]
transform = Transform( 0.819152, 0.196175, -0.538986, 0, 0.939693, 0.34202, 0.573577, -0.280167, 0.769751, -4.75121, 4.16099, 6.166 ) transform = Transform( 0.766044, 0.219846, -0.604023, 0, 0.939693, 0.34202, 0.642788, -0.262003, 0.719846, -5.82918, 4.84503, 7.7055 )
[node name="World" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="DirectionalLight" type="DirectionalLight" parent="World"]
transform = Transform( 0.258819, 0.25, -0.933013, 0.25, 0.915675, 0.314705, 0.933013, -0.314705, 0.174494, -14, 3, 5 )
shadow_enabled = true
[node name="RedLight" type="OmniLight" parent="World"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.888972, 2.04766, -3.3905 )
light_color = Color( 0.972549, 0.0431373, 0.0235294, 1 )
light_energy = 10.22
light_indirect_energy = 1.04
light_specular = 0.31
omni_range = 20.0
omni_attenuation = 1.1487
[node name="main" parent="." instance=ExtResource( 3 )]
[connection signal="pressed" from="Main Menu/PanelM/TestButton" to="Main Menu" method="_on_TestButton_pressed"] [connection signal="pressed" from="Main Menu/PanelM/TestButton" to="Main Menu" method="_on_TestButton_pressed"]
[connection signal="pressed" from="Main Menu/PanelM/ExitButton" to="Main Menu" method="_on_ExitButton_pressed"] [connection signal="pressed" from="Main Menu/PanelM/ExitButton" to="Main Menu" method="_on_ExitButton_pressed"]
[connection signal="pressed" from="Main Menu/PanelM/SuperButton" to="Main Menu" method="_on_SuperButton_pressed"] [connection signal="pressed" from="Main Menu/PanelM/SuperButton" to="Main Menu" method="_on_SuperButton_pressed"]
+22
View File
@@ -0,0 +1,22 @@
extends Spatial
var _timer = null
var _thisloop = true
func _ready():
_timer = Timer.new()
add_child(_timer)
_timer.connect("timeout", self, "_on_Timer_timeout")
_timer.set_wait_time(1)
_timer.set_one_shot(false) # Make sure it loops
_timer.start()
func _on_Timer_timeout():
if _thisloop:
get_node("World/RedLight").light_energy = 0
_thisloop = false
else:
get_node("World/RedLight").light_energy = 10
_thisloop = true
Binary file not shown.
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
albedo_color = Color( 0.552941, 0.552941, 0.552941, 1 )
metallic = 1.0
metallic_specular = 0.59
BIN
View File
Binary file not shown.
+1062
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
albedo_color = Color( 0.490196, 0.501961, 0.2, 1 )
+74
View File
@@ -0,0 +1,74 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Menu/main.glb" type="PackedScene" id=1]
[ext_resource path="res://Menu/Material_001.material" type="Material" id=2]
[ext_resource path="res://Menu/Material.material" type="Material" id=3]
[ext_resource path="res://Menu/iron.tres" type="Material" id=4]
[ext_resource path="res://Menu/tube.tres" type="Material" id=5]
[sub_resource type="SpatialMaterial" id=1]
flags_transparent = true
albedo_color = Color( 0.0627451, 0.972549, 0.0117647, 0.592157 )
[sub_resource type="SpatialMaterial" id=5]
flags_transparent = true
albedo_color = Color( 0.988235, 0.027451, 0.027451, 0.682353 )
[node name="main" instance=ExtResource( 1 )]
[node name="Machine" parent="." index="1"]
material/0 = ExtResource( 4 )
[node name="Walltubes" parent="." index="3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.19377, 8.39874, -4.23934 )
material/0 = ExtResource( 5 )
[node name="Floortube" parent="." index="5"]
material/0 = ExtResource( 5 )
[node name="Dials" parent="." index="7"]
material/0 = ExtResource( 2 )
[node name="Tubeholderfloor1" parent="." index="12"]
material/0 = ExtResource( 4 )
[node name="Tubeholderfloor2" parent="." index="13"]
material/0 = ExtResource( 4 )
[node name="Tubeholderwall2" parent="." index="14"]
material/0 = ExtResource( 4 )
[node name="Tubeholderwall1" parent="." index="15"]
material/0 = ExtResource( 4 )
[node name="crank" parent="." index="16"]
material/0 = ExtResource( 4 )
[node name="beugel" parent="." index="20"]
material/0 = ExtResource( 4 )
[node name="beugel2" parent="." index="21"]
material/0 = ExtResource( 4 )
[node name="Vatcyl" parent="." index="30"]
transform = Transform( 1.03092, 0, 0, 0, 1.03092, 0, 0, 0, 1.03092, 2.6816, 3.47915, -2.70452 )
material/0 = SubResource( 1 )
[node name="Vattop" parent="." index="31"]
material/0 = ExtResource( 4 )
[node name="Vatbot" parent="." index="32"]
material/0 = ExtResource( 4 )
[node name="rightwall" parent="." index="33"]
material/0 = ExtResource( 3 )
[node name="leftwall" parent="." index="34"]
material/0 = ExtResource( 3 )
[node name="floor" parent="." index="35"]
material/0 = ExtResource( 3 )
[node name="Sphere" parent="." index="36"]
transform = Transform( 0.602712, 0, 0, 0, 0.426364, -0.426, 0, 0.426, 0.426364, -0.872948, 1.8994, -3.53651 )
material/0 = SubResource( 5 )