summaryrefslogtreecommitdiff
path: root/components/button.tscn
diff options
context:
space:
mode:
authorJonas Bernard <public.jbernard@web.de>2021-04-24 22:11:35 +0200
committerJonas Bernard <public.jbernard@web.de>2021-04-24 22:11:35 +0200
commit3a22d5f9a6e539deb1fee5209af3557ae2b598fa (patch)
tree4a37961b37a37a36da211c47f0702e233f9cffd8 /components/button.tscn
parenta6d55f5145d1aa05c4b05fc4e9f980643dfbeefd (diff)
downloadldjam48-3a22d5f9a6e539deb1fee5209af3557ae2b598fa.tar.gz
ldjam48-3a22d5f9a6e539deb1fee5209af3557ae2b598fa.tar.bz2
ldjam48-3a22d5f9a6e539deb1fee5209af3557ae2b598fa.zip
Push
Diffstat (limited to 'components/button.tscn')
-rw-r--r--components/button.tscn44
1 files changed, 44 insertions, 0 deletions
diff --git a/components/button.tscn b/components/button.tscn
new file mode 100644
index 0000000..9519475
--- /dev/null
+++ b/components/button.tscn
@@ -0,0 +1,44 @@
+[gd_scene load_steps=8 format=2]
+
+[ext_resource path="res://textures/components/button/middle.png" type="Texture" id=1]
+[ext_resource path="res://textures/components/button/right.png" type="Texture" id=2]
+[ext_resource path="res://fonts/Fipps-Regular.otf" type="DynamicFontData" id=3]
+[ext_resource path="res://textures/components/button/left.png" type="Texture" id=4]
+[ext_resource path="res://components/button.gd" type="Script" id=5]
+
+[sub_resource type="DynamicFont" id=1]
+outline_color = Color( 0, 0, 0, 1 )
+font_data = ExtResource( 3 )
+
+[sub_resource type="Theme" id=2]
+default_font = SubResource( 1 )
+
+[node name="ButtonTest" type="Node2D"]
+script = ExtResource( 5 )
+
+[node name="Left" type="Sprite" parent="."]
+position = Vector2( -100, 0 )
+scale = Vector2( 4, 4 )
+texture = ExtResource( 4 )
+
+[node name="Right" type="Sprite" parent="."]
+position = Vector2( 100, 0 )
+scale = Vector2( 4, 4 )
+texture = ExtResource( 2 )
+
+[node name="Middle" type="Sprite" parent="."]
+position = Vector2( -0.5, 0 )
+scale = Vector2( 30.321, 4 )
+texture = ExtResource( 1 )
+
+[node name="FontSource" type="RichTextLabel" parent="."]
+grow_horizontal = 2
+grow_vertical = 2
+rect_clip_content = false
+size_flags_horizontal = 3
+theme = SubResource( 2 )
+text = "Menu"
+scroll_active = false
+__meta__ = {
+"_edit_use_anchors_": false
+}