188 lines
4.8 KiB
Text
188 lines
4.8 KiB
Text
[gd_scene load_steps=10 format=2]
|
|
|
|
[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]
|
|
[ext_resource path="res://MLPAssets/Placeholders/unknowncard.jpg" type="Texture" id=3]
|
|
|
|
[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
|
|
|
|
[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")
|
|
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")
|
|
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")
|
|
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,
|
|
"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 ) ]
|
|
}
|
|
|
|
[node name="BoardUI" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
mouse_filter = 2
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
anchor_right = 1.0
|
|
margin_bottom = 40.0
|
|
rect_pivot_offset = Vector2( -60, -230 )
|
|
mouse_filter = 2
|
|
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 )
|
|
mouse_filter = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
alignment = 1
|
|
|
|
[node name="ReadyPhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
|
|
material = SubResource( 3 )
|
|
margin_left = 819.0
|
|
margin_top = 0.0
|
|
margin_right = 899.0
|
|
margin_bottom = 80.0
|
|
rect_scale = Vector2( 1, 1 )
|
|
mouse_filter = 2
|
|
|
|
[node name="TroublePhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
|
|
material = SubResource( 4 )
|
|
margin_left = 903.0
|
|
margin_top = 0.0
|
|
margin_right = 983.0
|
|
margin_bottom = 80.0
|
|
rect_scale = Vector2( 1, 1 )
|
|
mouse_filter = 2
|
|
phaseID = 1
|
|
|
|
[node name="MainPhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
|
|
material = SubResource( 5 )
|
|
margin_left = 987.0
|
|
margin_top = 0.0
|
|
margin_right = 1067.0
|
|
margin_bottom = 80.0
|
|
rect_scale = Vector2( 1, 1 )
|
|
mouse_filter = 2
|
|
phaseID = 2
|
|
|
|
[node name="ScorePhase" parent="Panel/HBoxContainer" instance=ExtResource( 2 )]
|
|
material = SubResource( 6 )
|
|
margin_left = 1071.0
|
|
margin_top = 0.0
|
|
margin_right = 1151.0
|
|
margin_bottom = 80.0
|
|
rect_scale = Vector2( 1, 1 )
|
|
mouse_filter = 2
|
|
phaseID = 3
|
|
|
|
[node name="CardZoom" type="TextureRect" parent="."]
|
|
visible = false
|
|
anchor_bottom = 1.0
|
|
margin_left = 40.0
|
|
margin_top = 20.0
|
|
margin_right = 384.0
|
|
margin_bottom = -280.0
|
|
rect_scale = Vector2( 0.8, 0.8 )
|
|
mouse_filter = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
texture = ExtResource( 3 )
|
|
expand = true
|
|
stretch_mode = 5
|
|
|
|
[node name="PhaseAnimations" type="AnimationPlayer" parent="."]
|
|
|
|
[node name="CardAnimations" type="AnimationPlayer" parent="."]
|
|
"anims/fade ui card" = SubResource( 1 )
|