outline text in its own theme

This commit is contained in:
pennyrigate 2023-02-21 12:04:33 -05:00
parent 809b6510c4
commit 4cd2018b2c
5 changed files with 29 additions and 28 deletions

View file

@ -1,9 +1,9 @@
[gd_scene load_steps=10 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://objects/environment/barrier/barrier.gd" type="Script" id=1]
[ext_resource path="res://graphics/barrier/barrier_2px.png" type="Texture" id=2]
[ext_resource path="res://fonts/2ndpuberty_no_dropshadow.fnt" type="BitmapFont" id=3]
[ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=4]
[ext_resource path="res://scripts/2ndpuberty_no_dropshadow.tres" type="Theme" id=3]
[ext_resource path="res://scripts/2ndpuberty_outline.tres" type="Material" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 2, 0.5 )
@ -88,14 +88,6 @@ tracks/2/keys = {
"values": [ Vector2( 1, 1 ), Vector2( 1, 0 ) ]
}
[sub_resource type="ShaderMaterial" id=5]
shader = ExtResource( 4 )
shader_param/border_color = Color( 0.219608, 0.219608, 0.219608, 1 )
shader_param/border_corners = true
[sub_resource type="Theme" id=6]
default_font = ExtResource( 3 )
[node name="Barrier" type="Node2D"]
script = ExtResource( 1 )
@ -117,12 +109,12 @@ anims/open = SubResource( 3 )
[node name="Label" type="Label" parent="."]
visible = false
material = SubResource( 5 )
material = ExtResource( 4 )
margin_left = -18.0
margin_top = -15.0
margin_right = 22.0
margin_bottom = 5.0
theme = SubResource( 6 )
theme = ExtResource( 3 )
text = "00"
align = 1