crabs-game/scenes/dialogue.tscn

197 lines
5.1 KiB
Plaintext

[gd_scene load_steps=9 format=2]
[ext_resource path="res://images/ui/dialogue_bg.png" type="Texture" id=1]
[ext_resource path="res://fonts/dialog_default_font.tres" type="DynamicFont" id=2]
[ext_resource path="res://scripts/DialogueBox.gd" type="Script" id=3]
[sub_resource type="VisualShaderNodeColorConstant" id=1]
constant = Color( 0, 0, 0, 0.803922 )
[sub_resource type="VisualShaderNodeInput" id=2]
input_name = "texture"
[sub_resource type="VisualShaderNodeTexture" id=3]
source = 2
[sub_resource type="VisualShader" id=4]
code = "shader_type canvas_item;
void vertex() {
// Output:0
}
void fragment() {
// Input:4
// Texture:6
vec3 n_out6p0;
float n_out6p1;
{
vec4 _tex_read = texture(TEXTURE , UV.xy);
n_out6p0 = _tex_read.rgb;
n_out6p1 = _tex_read.a;
}
// Color:3
vec3 n_out3p0 = vec3(0.000000, 0.000000, 0.000000);
float n_out3p1 = 0.803922;
// Output:0
COLOR.rgb = n_out6p0;
COLOR.a = n_out3p1;
}
void light() {
// Output:0
}
"
custom_defines = ""
graph_offset = Vector2( 261, 117 )
mode = 1
flags/light_only = false
nodes/vertex/0/position = Vector2( 400, 160 )
nodes/fragment/0/position = Vector2( 1040, 260 )
nodes/fragment/3/node = SubResource( 1 )
nodes/fragment/3/position = Vector2( 600, 420 )
nodes/fragment/4/node = SubResource( 2 )
nodes/fragment/4/position = Vector2( 460, 300 )
nodes/fragment/6/node = SubResource( 3 )
nodes/fragment/6/position = Vector2( 740, 200 )
nodes/fragment/connections = PoolIntArray( 3, 1, 0, 1, 4, 0, 6, 2, 6, 0, 0, 0 )
[sub_resource type="ShaderMaterial" id=5]
render_priority = -1
shader = SubResource( 4 )
[node name="Dialog" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
title_path = NodePath("MarginContainer/VBoxContainer/MarginContainer/MarginContainer/CharacterName")
text_path = NodePath("MarginContainer/VBoxContainer/MarginContainer2/MarginContainer/DialogText")
[node name="MarginContainer" type="MarginContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 4
custom_constants/margin_left = 4
custom_constants/margin_bottom = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
margin_left = 4.0
margin_right = 188.0
margin_bottom = 108.0
custom_constants/separation = 0
alignment = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
margin_top = 61.0
margin_right = 184.0
margin_bottom = 74.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.2
custom_constants/margin_right = 4
custom_constants/margin_left = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DialogBackground" type="NinePatchRect" parent="MarginContainer/VBoxContainer/MarginContainer"]
show_behind_parent = true
material = SubResource( 5 )
margin_left = 4.0
margin_right = 180.0
margin_bottom = 13.0
texture = ExtResource( 1 )
patch_margin_left = 1
patch_margin_top = 1
patch_margin_right = 1
patch_margin_bottom = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/MarginContainer"]
margin_left = 4.0
margin_right = 180.0
margin_bottom = 13.0
custom_constants/margin_left = 4
custom_constants/margin_bottom = -2
[node name="CharacterName" type="RichTextLabel" parent="MarginContainer/VBoxContainer/MarginContainer/MarginContainer"]
margin_left = 4.0
margin_right = 176.0
margin_bottom = 15.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.25
custom_fonts/normal_font = ExtResource( 2 )
text = "Elie"
fit_content_height = true
scroll_active = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
margin_top = 74.0
margin_right = 184.0
margin_bottom = 108.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DialogBackground2" type="NinePatchRect" parent="MarginContainer/VBoxContainer/MarginContainer2"]
show_behind_parent = true
material = SubResource( 5 )
margin_right = 184.0
margin_bottom = 34.0
texture = ExtResource( 1 )
patch_margin_left = 10
patch_margin_top = 10
patch_margin_right = 10
patch_margin_bottom = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/MarginContainer2"]
margin_right = 184.0
margin_bottom = 34.0
custom_constants/margin_right = 6
custom_constants/margin_top = 2
custom_constants/margin_left = 6
custom_constants/margin_bottom = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DialogText" type="RichTextLabel" parent="MarginContainer/VBoxContainer/MarginContainer2/MarginContainer"]
margin_left = 6.0
margin_top = 2.0
margin_right = 178.0
margin_bottom = 32.0
rect_clip_content = false
size_flags_horizontal = 3
custom_fonts/normal_font = ExtResource( 2 )
bbcode_enabled = true
bbcode_text = "[center]Wtf is going on, where am I and where did you hide the cheese?![/center]"
text = "Wtf is going on, where am I and where did you hide the cheese?!"
fit_content_height = true
__meta__ = {
"_edit_use_anchors_": false
}