48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Node2D.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="Shader" id=1]
|
|
code = "shader_type canvas_item;
|
|
//uniform usampler2D tex;
|
|
uniform sampler2D palette;
|
|
|
|
void fragment() {
|
|
//uint color_idx = textureLod(tex, UV, 0.0).r;
|
|
uint color_idx = uint(textureLod(TEXTURE, UV, 0.0).r * 256.0);
|
|
COLOR = texelFetch(palette, ivec2(int(color_idx), 0), 0);
|
|
if (color_idx == uint(0))
|
|
COLOR.a = 0.0;
|
|
}
|
|
"
|
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
|
shader = SubResource( 1 )
|
|
|
|
[node name="Control" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
material = SubResource( 2 )
|
|
position = Vector2( 16, 16 )
|
|
scale = Vector2( 2, 2 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="OptionButton" type="OptionButton" parent="Node2D"]
|
|
anchor_bottom = 0.67
|
|
margin_top = 180.0
|
|
margin_right = 100.0
|
|
margin_bottom = 170.0
|
|
rect_scale = Vector2( 0.5, 0.5 )
|
|
text = "Stand"
|
|
items = [ "Stand", null, false, 0, null, "Guard", null, false, 1, null, "Walk", null, false, 2, null, "Down", null, false, 3, null, "R_Swing", null, false, 4, null, "L_Swing", null, false, 5, null, "Cheer", null, false, 6, null, "Recoil", null, false, 7, null, "Chant", null, false, 8, null ]
|
|
selected = 0
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
visible = false
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[connection signal="item_selected" from="Node2D/OptionButton" to="Node2D" method="_on_OptionButton_item_selected"]
|