From 8b0ce964d2aa5dba186b85abf64b70ffc8216c06 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 15 Aug 2022 09:35:35 +0300 Subject: Add UI --- GUI.tscn | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 GUI.tscn (limited to 'GUI.tscn') diff --git a/GUI.tscn b/GUI.tscn new file mode 100644 index 0000000..a69a9b2 --- /dev/null +++ b/GUI.tscn @@ -0,0 +1,21 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://GUI.gd" type="Script" id=1] +[ext_resource path="res://Assets/kenney_pixelplatformer/Tiles/tile_0044.png" type="Texture" id=2] + +[node name="GUI" type="MarginContainer"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = 54.0 +margin_bottom = 18.0 +script = ExtResource( 1 ) + +[node name="HPIndicator" type="TextureRect" parent="."] +margin_right = 54.0 +margin_bottom = 18.0 +rect_min_size = Vector2( 54, 18 ) +size_flags_horizontal = 0 +size_flags_vertical = 0 +texture = ExtResource( 2 ) +expand = true +stretch_mode = 2 -- cgit v1.3