forked from team-sg/hero-mark-2
outline text in its own theme
This commit is contained in:
parent
809b6510c4
commit
4cd2018b2c
5 changed files with 29 additions and 28 deletions
18
control.tscn
18
control.tscn
|
@ -1,11 +1,11 @@
|
|||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/scaling.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/borders/prideborder.png" type="Texture" id=2]
|
||||
[ext_resource path="res://maps/level_select.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scripts/crt.gdshader" type="Shader" id=4]
|
||||
[ext_resource path="res://fonts/2ndpuberty_no_dropshadow.fnt" type="BitmapFont" id=5]
|
||||
[ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=6]
|
||||
[ext_resource path="res://scripts/2ndpuberty_no_dropshadow.tres" type="Theme" id=5]
|
||||
[ext_resource path="res://scripts/2ndpuberty_outline.tres" type="Material" id=6]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
shader = ExtResource( 4 )
|
||||
|
@ -15,14 +15,6 @@ shader_param/curvature = Vector2( 6, 6 )
|
|||
shader_param/scanline_opacity = Vector2( 0.4, 0.05 )
|
||||
shader_param/brightness = 1.25
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=2]
|
||||
shader = ExtResource( 6 )
|
||||
shader_param/border_color = Color( 0.219608, 0.219608, 0.219608, 1 )
|
||||
shader_param/border_corners = true
|
||||
|
||||
[sub_resource type="Theme" id=3]
|
||||
default_font = ExtResource( 5 )
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
pause_mode = 2
|
||||
anchor_right = 1.0
|
||||
|
@ -63,11 +55,11 @@ render_target_update_mode = 3
|
|||
layer = 127
|
||||
|
||||
[node name="CheatLabel" type="Label" parent="ViewportContainer/Viewport/CheatLayer"]
|
||||
material = SubResource( 2 )
|
||||
material = ExtResource( 6 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_right = -1.0
|
||||
margin_bottom = -5.0
|
||||
theme = SubResource( 3 )
|
||||
theme = ExtResource( 5 )
|
||||
align = 2
|
||||
valign = 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue