FADE SYSTEM :3
This commit is contained in:
parent
4cd2018b2c
commit
d27d9d8b83
8 changed files with 169 additions and 1 deletions
61
control.tscn
61
control.tscn
|
@ -6,6 +6,9 @@
|
|||
[ext_resource path="res://scripts/crt.gdshader" type="Shader" id=4]
|
||||
[ext_resource path="res://scripts/2ndpuberty_no_dropshadow.tres" type="Theme" id=5]
|
||||
[ext_resource path="res://scripts/2ndpuberty_outline.tres" type="Material" id=6]
|
||||
[ext_resource path="res://graphics/fade_patterns/diamonds.png" type="Texture" id=7]
|
||||
[ext_resource path="res://scripts/fade.gd" type="Script" id=8]
|
||||
[ext_resource path="res://scripts/fade.gdshader" type="Shader" id=9]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
shader = ExtResource( 4 )
|
||||
|
@ -15,6 +18,43 @@ shader_param/curvature = Vector2( 6, 6 )
|
|||
shader_param/scanline_opacity = Vector2( 0.4, 0.05 )
|
||||
shader_param/brightness = 1.25
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=6]
|
||||
shader = ExtResource( 9 )
|
||||
shader_param/color = Color( 0, 0, 0, 1 )
|
||||
shader_param/smooth_mode = false
|
||||
shader_param/reverse = false
|
||||
shader_param/opacity = 0.0
|
||||
|
||||
[sub_resource type="Animation" id=7]
|
||||
resource_name = "FadeIn"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("TextureRect:material:shader_param/opacity")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 1 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ 1.0, 0.0 ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=8]
|
||||
resource_name = "FadeOut"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("TextureRect:material:shader_param/opacity")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 1 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ 0.0, 1.0 ]
|
||||
}
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
pause_mode = 2
|
||||
anchor_right = 1.0
|
||||
|
@ -52,7 +92,7 @@ render_target_update_mode = 3
|
|||
[node name="LevelSelect" parent="ViewportContainer/Viewport" instance=ExtResource( 3 )]
|
||||
|
||||
[node name="CheatLayer" type="CanvasLayer" parent="ViewportContainer/Viewport"]
|
||||
layer = 127
|
||||
layer = 120
|
||||
|
||||
[node name="CheatLabel" type="Label" parent="ViewportContainer/Viewport/CheatLayer"]
|
||||
material = ExtResource( 6 )
|
||||
|
@ -63,3 +103,22 @@ margin_bottom = -5.0
|
|||
theme = ExtResource( 5 )
|
||||
align = 2
|
||||
valign = 2
|
||||
|
||||
[node name="FadeLayer" type="CanvasLayer" parent="ViewportContainer/Viewport"]
|
||||
pause_mode = 2
|
||||
layer = 128
|
||||
script = ExtResource( 8 )
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="ViewportContainer/Viewport/FadeLayer"]
|
||||
material = SubResource( 6 )
|
||||
margin_right = 255.994
|
||||
margin_bottom = 192.0
|
||||
texture = ExtResource( 7 )
|
||||
expand = true
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="ViewportContainer/Viewport/FadeLayer"]
|
||||
anims/FadeIn = SubResource( 7 )
|
||||
anims/FadeOut = SubResource( 8 )
|
||||
|
||||
[connection signal="animation_finished" from="ViewportContainer/Viewport/FadeLayer/AnimationPlayer" to="ViewportContainer/Viewport/FadeLayer" method="_fade_finished"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue