diff options
author | rom <romangraef@gmail.com> | 2021-04-24 22:36:31 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-24 22:36:31 +0200 |
commit | 6ac1f6bba0b2607f5293323b26ed5a9230320791 (patch) | |
tree | 46e8dabcc17260078be470aae8c79a0259a7a8a3 /components/HackButton.tscn | |
parent | 3a22d5f9a6e539deb1fee5209af3557ae2b598fa (diff) | |
download | ldjam48-6ac1f6bba0b2607f5293323b26ed5a9230320791.tar.gz ldjam48-6ac1f6bba0b2607f5293323b26ed5a9230320791.tar.bz2 ldjam48-6ac1f6bba0b2607f5293323b26ed5a9230320791.zip |
damn those buttons do be l oo,king fdine
Diffstat (limited to 'components/HackButton.tscn')
-rw-r--r-- | components/HackButton.tscn | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/HackButton.tscn b/components/HackButton.tscn index 2241ac6..dd665f3 100644 --- a/components/HackButton.tscn +++ b/components/HackButton.tscn @@ -3,7 +3,7 @@ [ext_resource path="res://textures/rooot.png" type="Texture" id=1] [ext_resource path="res://components/HackButton.gd" type="Script" id=2] -[sub_resource type="Shader" id=2] +[sub_resource type="Shader" id=1] code = "shader_type canvas_item;
uniform vec4 glow_color : hint_color = vec4(1,1,1,1);
@@ -12,11 +12,11 @@ void fragment() { }
" -[sub_resource type="ShaderMaterial" id=3] -shader = SubResource( 2 ) +[sub_resource type="ShaderMaterial" id=2] +shader = SubResource( 1 ) shader_param/glow_color = Color( 0.254902, 0, 0, 1 ) -[sub_resource type="RectangleShape2D" id=1] +[sub_resource type="RectangleShape2D" id=3] extents = Vector2( 100, 100 ) [node name="HackButton" type="Area2D"] @@ -25,12 +25,12 @@ monitorable = false script = ExtResource( 2 ) [node name="Sprite" type="Sprite" parent="."] -material = SubResource( 3 ) +material = SubResource( 2 ) scale = Vector2( 0.5, 0.5 ) texture = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -shape = SubResource( 1 ) +shape = SubResource( 3 ) [connection signal="input_event" from="." to="." method="_on_HackButton_input_event"] [connection signal="mouse_entered" from="." to="." method="_on_HackButton_mouse_entered"] |