From 25b93a9f2b5b7368a0c5bff786db1b84515fb099 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 8 Dec 2021 16:51:49 -0600 Subject: [PATCH] Fix panel texture --- assets/theme.tres | 36 +++++++++++++++++++++++++++++++++++- screens/lobby_browser.tscn | 8 ++++---- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/assets/theme.tres b/assets/theme.tres index 17f63f3..42ebfb8 100644 --- a/assets/theme.tres +++ b/assets/theme.tres @@ -1,6 +1,40 @@ -[gd_resource type="Theme" load_steps=2 format=2] +[gd_resource type="Theme" load_steps=7 format=2] [ext_resource path="res://assets/fonts/iosevkalyte/iosevkalyte.tres" type="DynamicFont" id=1] +[ext_resource path="res://assets/img/panel.png" type="Texture" id=2] + +[sub_resource type="Image" id=1] +data = { +"data": PoolByteArray( 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42, 37, 37, 42 ), +"format": "RGB8", +"height": 8, +"mipmaps": false, +"width": 8 +} + +[sub_resource type="ImageTexture" id=2] +flags = 4 +flags = 4 +image = SubResource( 1 ) +size = Vector2( 8, 8 ) + +[sub_resource type="StyleBoxTexture" id=3] +texture = SubResource( 2 ) +region_rect = Rect2( 0, 0, 8, 8 ) + +[sub_resource type="StyleBoxTexture" id=4] +content_margin_left = 7.0 +content_margin_right = 7.0 +content_margin_top = 7.0 +content_margin_bottom = 7.0 +texture = ExtResource( 2 ) +region_rect = Rect2( 0, 0, 64, 64 ) +margin_left = 4.0 +margin_right = 4.0 +margin_top = 4.0 +margin_bottom = 4.0 [resource] default_font = ExtResource( 1 ) +Panel/styles/panel = SubResource( 3 ) +PanelContainer/styles/panel = SubResource( 4 ) diff --git a/screens/lobby_browser.tscn b/screens/lobby_browser.tscn index bd339b3..d5e8bc5 100644 --- a/screens/lobby_browser.tscn +++ b/screens/lobby_browser.tscn @@ -110,10 +110,10 @@ size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Label" type="Label" parent="v/body/p/lobbies/zero_state"] -margin_left = 229.0 -margin_top = 239.0 -margin_right = 740.0 -margin_bottom = 253.0 +margin_left = 177.0 +margin_top = 235.0 +margin_right = 793.0 +margin_bottom = 256.0 size_flags_horizontal = 3 size_flags_vertical = 3 text = "Looks like there are no active lobbies at the moment! Why don't you make one?"