Updated UI

This commit is contained in:
Segey Lapin
2019-08-08 03:33:29 +03:00
parent aa3acca100
commit 9a7c40bf7b
10 changed files with 226 additions and 21 deletions

View File

@@ -21,7 +21,8 @@ bg_color = Color( 0.6, 0.6, 0.6, 0 )
[sub_resource type="AtlasTexture" id=6]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 8, 945, 92, 80 )
region = Rect2( 15, 0, 48, 50 )
margin = Rect2( 0, 0, 0, 4 )
[node name="act_talk" type="Button"]
margin_right = 96.0

View File

@@ -0,0 +1,8 @@
[gd_resource type="AtlasTexture" load_steps=2 format=2]
[ext_resource path="res://ui/icons.png" type="Texture" id=1]
[resource]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 111, 0, 32, 60 )

View File

@@ -0,0 +1,8 @@
[gd_resource type="AtlasTexture" load_steps=2 format=2]
[ext_resource path="res://ui/icons.png" type="Texture" id=1]
[resource]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 79, 0, 32, 60 )

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -1,6 +1,8 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://ui/interaction.gd" type="Script" id=1]
[ext_resource path="res://ui/hire_team_icon.tres" type="Texture" id=2]
[ext_resource path="res://ui/hire_cheer_icon.tres" type="Texture" id=3]
[node name="interaction" type="Control"]
anchor_right = 1.0
@@ -24,18 +26,19 @@ __meta__ = {
margin_right = 64.0
margin_bottom = 64.0
rect_min_size = Vector2( 64, 64 )
[node name="Polygon2D" type="Polygon2D" parent="h/hire_team"]
polygon = PoolVector2Array( 11.513, 35.9185, 25.1051, 23.7134, 38.1424, 35.0864 )
texture_normal = ExtResource( 2 )
texture_pressed = ExtResource( 2 )
texture_hover = ExtResource( 2 )
[node name="hire_cheer_team" type="TextureButton" parent="h"]
margin_left = 68.0
margin_right = 132.0
margin_bottom = 64.0
rect_min_size = Vector2( 64, 64 )
texture_normal = ExtResource( 3 )
texture_pressed = ExtResource( 3 )
texture_hover = ExtResource( 3 )
texture_focused = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Polygon2D2" type="Polygon2D" parent="h/hire_cheer_team"]
polygon = PoolVector2Array( 11.513, 35.9185, 25.1051, 23.7134, 38.1424, 35.0864 )