Skip to content

Commit

Permalink
Added themes to counteract to many theme overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
RedstoneMedia committed Jun 29, 2022
1 parent 58f6059 commit 4ebc1a9
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 582 deletions.
47 changes: 18 additions & 29 deletions game/app/pause_menu/pause_menu.tscn
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=5 format=2]

[ext_resource path="res://shared/fonts/roboto/roboto_regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://app/style/theme_game_card.tres" type="Theme" id=1]
[ext_resource path="res://app/shader/blur.shader" type="Shader" id=2]
[ext_resource path="res://app/pause_menu/pause_menu.gd" type="Script" id=4]

[sub_resource type="DynamicFont" id=1]
font_data = ExtResource( 1 )

[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )

[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 2 )
shader_param/amount = 2.0
Expand All @@ -22,10 +16,7 @@ script = ExtResource( 4 )
[node name="Control" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
theme = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
theme = ExtResource( 1 )

[node name="BlurShader" type="ColorRect" parent="Control"]
material = SubResource( 3 )
Expand All @@ -43,38 +34,36 @@ __meta__ = {
[node name="CC" type="CenterContainer" parent="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="VC" type="VBoxContainer" parent="Control/CC"]
margin_left = 438.0
margin_top = 247.0
margin_right = 586.0
margin_bottom = 353.0
margin_left = 432.0
margin_top = 226.0
margin_right = 592.0
margin_bottom = 374.0
custom_constants/separation = 8

[node name="Label" type="Label" parent="Control/CC/VC"]
margin_right = 148.0
margin_right = 160.0
margin_bottom = 19.0
text = "T_PAUSED"
align = 1

[node name="ButtonResume" type="Button" parent="Control/CC/VC"]
margin_top = 23.0
margin_right = 148.0
margin_bottom = 48.0
margin_top = 27.0
margin_right = 160.0
margin_bottom = 62.0
text = "T_RESUME"

[node name="ButtonRestart" type="Button" parent="Control/CC/VC"]
margin_top = 52.0
margin_right = 148.0
margin_bottom = 77.0
margin_top = 70.0
margin_right = 160.0
margin_bottom = 105.0
text = "T_RESTART"

[node name="ButtonMenu" type="Button" parent="Control/CC/VC"]
margin_top = 81.0
margin_right = 148.0
margin_bottom = 106.0
margin_top = 113.0
margin_right = 160.0
margin_bottom = 148.0
text = "T_BACK_TO_MENU"

[connection signal="pressed" from="Control/CC/VC/ButtonResume" to="." method="_on_ButtonResume_pressed"]
Expand Down
Loading

0 comments on commit 4ebc1a9

Please sign in to comment.