diff options
| author | Jonas Bernard <public.jbernard@web.de> | 2021-04-24 21:14:41 +0200 |
|---|---|---|
| committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-24 21:14:41 +0200 |
| commit | bcbbc97af8a9c1d3620c45df8e8d26aa4223524b (patch) | |
| tree | 21aab1047d4fd0e1fc41930a35291fe097ebffa2 /components | |
| parent | e7aad173ab49d57213df245bb6788baad6b07760 (diff) | |
| download | ldjam48-bcbbc97af8a9c1d3620c45df8e8d26aa4223524b.tar.gz ldjam48-bcbbc97af8a9c1d3620c45df8e8d26aa4223524b.tar.bz2 ldjam48-bcbbc97af8a9c1d3620c45df8e8d26aa4223524b.zip | |
Simple Buton
an menu
Diffstat (limited to 'components')
| -rw-r--r-- | components/Logo.tscn | 3 | ||||
| -rw-r--r-- | components/buttontest.tscn | 46 |
2 files changed, 47 insertions, 2 deletions
diff --git a/components/Logo.tscn b/components/Logo.tscn index 7ab131f..9d024e2 100644 --- a/components/Logo.tscn +++ b/components/Logo.tscn @@ -28,8 +28,7 @@ frame_7/delay_sec = 1.66 [node name="Node2D" type="Node2D"] [node name="Sprite" type="Sprite" parent="."] -position = Vector2( 100, 100 ) -scale = Vector2( 3, 3 ) +scale = Vector2( 5, 5 ) texture = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="Sprite"] diff --git a/components/buttontest.tscn b/components/buttontest.tscn new file mode 100644 index 0000000..d0d4e6b --- /dev/null +++ b/components/buttontest.tscn @@ -0,0 +1,46 @@ +[gd_scene load_steps=7 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] + +[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="Node2D" type="Node2D"] + +[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="."] +scale = Vector2( 30.321, 4 ) +texture = ExtResource( 1 ) + +[node name="RichTextLabel" type="RichTextLabel" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -31.9373 +margin_top = -19.027 +margin_right = 76.0627 +margin_bottom = 27.973 +grow_horizontal = 2 +grow_vertical = 2 +theme = SubResource( 2 ) +text = "Menu" +__meta__ = { +"_edit_use_anchors_": false +} |
