mlpcardgame/Scenes/BoardUI.tscn

189 lines
4.8 KiB
Text
Raw Permalink Normal View History

[gd_scene load_steps=10 format=2]
2019-05-04 21:42:07 +00:00
2019-05-04 22:01:00 +00:00
[ext_resource path="res://Scenes/Scripts/BoardUI.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Board/UI/PhaseIcon.tscn" type="PackedScene" id=2]
2019-05-27 23:14:57 +00:00
[ext_resource path="res://MLPAssets/Placeholders/unknowncard.jpg" type="Texture" id=3]
2019-05-04 21:42:07 +00:00
[sub_resource type="Shader" id=2]
code = "shader_type canvas_item;
render_mode unshaded;
uniform vec4 fillColor: hint_color;
uniform vec4 baseColor: hint_color;
uniform float fillRatio: hint_range(0.0, 1.0);
void fragment() {
vec4 col = texture(TEXTURE, UV);
vec3 mask = col.xyz * -1.0 + 1.0;
if (UV.y > 1.0 - fillRatio) {
mask *= fillColor.xyz;
col.xyz += mask.xyz;
} else {
col.xyz += baseColor.xyz;
}
COLOR = col;
}"
[sub_resource type="ShaderMaterial" id=3]
shader = SubResource( 2 )
shader_param/fillColor = Color( 1, 0.298039, 0.137255, 1 )
shader_param/baseColor = Color( 0, 0, 0, 1 )
shader_param/fillRatio = 0.0
[sub_resource type="ShaderMaterial" id=4]
shader = SubResource( 2 )
shader_param/fillColor = Color( 1, 0.298039, 0.137255, 1 )
shader_param/baseColor = Color( 0, 0, 0, 1 )
shader_param/fillRatio = 0.0
[sub_resource type="ShaderMaterial" id=5]
shader = SubResource( 2 )
shader_param/fillColor = Color( 1, 0.298039, 0.137255, 1 )
shader_param/baseColor = Color( 0, 0, 0, 1 )
shader_param/fillRatio = 0.0
[sub_resource type="ShaderMaterial" id=6]
shader = SubResource( 2 )
shader_param/fillColor = Color( 1, 0.298039, 0.137255, 1 )
shader_param/baseColor = Color( 0, 0, 0, 1 )
shader_param/fillRatio = 0.0
2019-05-04 21:42:07 +00:00
[sub_resource type="Animation" id=1]
resource_name = "fade ui card"
length = 0.1
step = 0.01
tracks/0/type = "value"
tracks/0/path = NodePath("CardZoom:visible")
2019-05-04 21:42:07 +00:00
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.01 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ false, true ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("CardZoom:modulate")
2019-05-04 21:42:07 +00:00
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.01, 0.1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("CardZoom:margin_top")
2019-05-04 21:42:07 +00:00
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
2019-05-27 22:58:39 +00:00
"values": [ 20, 60 ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("CardZoom:rect_size")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0, 0.1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 344, 500 ), Vector2( 344, 500 ) ]
2019-05-04 21:42:07 +00:00
}
[node name="BoardUI" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
2019-05-04 22:01:00 +00:00
mouse_filter = 2
script = ExtResource( 1 )
2019-05-04 21:42:07 +00:00
2019-05-27 22:58:39 +00:00
[node name="Panel" type="Panel" parent="."]
anchor_right = 1.0
margin_bottom = 40.0
2019-05-31 22:58:19 +00:00
rect_pivot_offset = Vector2( -60, -230 )
2019-05-31 22:44:21 +00:00
mouse_filter = 2
2019-05-27 23:14:57 +00:00
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="Panel"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -640.0
margin_top = 10.0
margin_right = 1330.0
margin_bottom = 90.0
rect_scale = Vector2( 0.65, 0.65 )
2019-05-31 22:44:21 +00:00
mouse_filter = 2
2019-05-27 23:14:57 +00:00
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="ReadyPhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
material = SubResource( 3 )
2019-05-27 23:14:57 +00:00
margin_left = 819.0
margin_top = 0.0
margin_right = 899.0
margin_bottom = 80.0
rect_scale = Vector2( 1, 1 )
2019-05-31 22:44:21 +00:00
mouse_filter = 2
2019-05-27 23:14:57 +00:00
2019-05-31 23:01:45 +00:00
[node name="TroublePhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
material = SubResource( 4 )
2019-05-27 23:14:57 +00:00
margin_left = 903.0
margin_top = 0.0
margin_right = 983.0
margin_bottom = 80.0
rect_scale = Vector2( 1, 1 )
2019-05-31 22:44:21 +00:00
mouse_filter = 2
2019-05-31 23:01:45 +00:00
phaseID = 1
2019-05-27 23:14:57 +00:00
[node name="MainPhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
material = SubResource( 5 )
2019-05-27 23:14:57 +00:00
margin_left = 987.0
margin_top = 0.0
margin_right = 1067.0
margin_bottom = 80.0
rect_scale = Vector2( 1, 1 )
2019-05-31 22:44:21 +00:00
mouse_filter = 2
2019-05-27 23:14:57 +00:00
phaseID = 2
2019-05-31 23:01:45 +00:00
[node name="ScorePhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
material = SubResource( 6 )
2019-05-27 23:14:57 +00:00
margin_left = 1071.0
margin_top = 0.0
margin_right = 1151.0
margin_bottom = 80.0
rect_scale = Vector2( 1, 1 )
2019-05-31 22:44:21 +00:00
mouse_filter = 2
2019-05-31 23:01:45 +00:00
phaseID = 3
2019-05-27 22:58:39 +00:00
[node name="CardZoom" type="TextureRect" parent="."]
2019-05-04 22:01:00 +00:00
visible = false
2019-05-27 22:58:39 +00:00
anchor_bottom = 1.0
2019-05-04 21:42:07 +00:00
margin_left = 40.0
2019-05-27 22:58:39 +00:00
margin_top = 20.0
2019-05-04 21:42:07 +00:00
margin_right = 384.0
2019-05-27 22:58:39 +00:00
margin_bottom = -280.0
2019-05-04 21:42:07 +00:00
rect_scale = Vector2( 0.8, 0.8 )
2019-05-05 19:19:39 +00:00
mouse_filter = 2
2019-05-27 22:58:39 +00:00
size_flags_horizontal = 3
size_flags_vertical = 3
2019-05-27 23:14:57 +00:00
texture = ExtResource( 3 )
2019-05-27 22:58:39 +00:00
expand = true
2019-05-04 21:42:07 +00:00
stretch_mode = 5
[node name="PhaseAnimations" type="AnimationPlayer" parent="."]
[node name="CardAnimations" type="AnimationPlayer" parent="."]
2019-05-04 21:42:07 +00:00
"anims/fade ui card" = SubResource( 1 )