-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeta_node.tscn
68 lines (55 loc) · 2.1 KB
/
meta_node.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[gd_scene load_steps=8 format=3 uid="uid://bv4h4a2us0yne"]
[ext_resource type="Script" path="res://MetaNode.gd" id="1_dit08"]
[ext_resource type="Script" path="res://Animation.gd" id="2_wfrnp"]
[ext_resource type="FontFile" uid="uid://daia8ao3j3s85" path="res://fonts/TT2020StyleF-Regular.ttf" id="3_fjn8v"]
[sub_resource type="Shader" id="Shader_a7rav"]
code = "shader_type canvas_item;
uniform vec3 uAddColor = vec3(0, 0, 0);
uniform float uAlpha = 1;
uniform bool uSelected = false;
void fragment() {
// Note: here, COLOR already contains the texture multiplied by the modulation colour
COLOR.rgb += uAddColor;
COLOR.a *= uAlpha;
//if (uSelected) {
//if (COLOR.a < 0.2) COLOR.rgb = vec3(1);
//}
}
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lhcii"]
resource_local_to_scene = true
shader = SubResource("Shader_a7rav")
shader_parameter/uAddColor = Vector3(0, 0, 0)
shader_parameter/uAlpha = 1.0
shader_parameter/uSelected = false
[sub_resource type="SpriteFrames" id="SpriteFrames_g6lqa"]
[sub_resource type="Theme" id="Theme_2spbi"]
default_font = ExtResource("3_fjn8v")
default_font_size = 64
Label/colors/font_color = Color(0, 0, 0, 1)
[node name="MetaNode" type="CharacterBody2D"]
script = ExtResource("1_dit08")
[node name="Animation" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_lhcii")
sprite_frames = SubResource("SpriteFrames_g6lqa")
script = ExtResource("2_wfrnp")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[node name="RichTextLabel" type="RichTextLabel" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 0
size_flags_horizontal = 4
size_flags_vertical = 4
theme = SubResource("Theme_2spbi")
bbcode_enabled = true
fit_content = true
scroll_active = false
autowrap_mode = 0
shortcut_keys_enabled = false
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
[connection signal="animation_changed" from="Animation" to="Animation" method="_on_animation_changed"]
[connection signal="frame_changed" from="Animation" to="Animation" method="_on_frame_changed"]