diff --git a/godot_ship/dark_theme.tres b/godot_ship/dark_theme.tres new file mode 100644 index 0000000..0071838 --- /dev/null +++ b/godot_ship/dark_theme.tres @@ -0,0 +1,24 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[sub_resource type="StyleBoxFlat" id=1] +bg_color = Color( 0.239216, 0.227451, 0.270588, 1 ) +corner_radius_top_left = 2 +corner_radius_top_right = 2 +corner_radius_bottom_right = 2 +corner_radius_bottom_left = 2 + +[sub_resource type="DynamicFont" id=2] + +[resource] +default_font = SubResource( 2 ) +Button/colors/font_color = Color( 1, 1, 1, 1 ) +Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) +Button/colors/font_color_hover = Color( 1, 1, 1, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/constants/hseparation = 2 +Button/fonts/font = null +Button/styles/disabled = null +Button/styles/focus = null +Button/styles/hover = null +Button/styles/normal = SubResource( 1 ) +Button/styles/pressed = null diff --git a/godot_ship/scenes/Title Screen.tscn b/godot_ship/scenes/Title Screen.tscn index 9cc581c..906c914 100644 --- a/godot_ship/scenes/Title Screen.tscn +++ b/godot_ship/scenes/Title Screen.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] +[ext_resource path="res://dark_theme.tres" type="Theme" id=1] [ext_resource path="res://script/title screen/Title Screen.gd" type="Script" id=2] [ext_resource path="res://assets/font/Minecraft.ttf" type="DynamicFontData" id=3] @@ -12,6 +13,7 @@ font_data = ExtResource( 3 ) [node name="Title Node" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 +theme = ExtResource( 1 ) script = ExtResource( 2 ) __meta__ = { "_edit_use_anchors_": false @@ -32,26 +34,26 @@ __meta__ = { [node name="Singleplayer" type="Button" parent="VBoxContainer"] margin_right = 136.0 -margin_bottom = 20.0 +margin_bottom = 1.0 focus_neighbour_top = NodePath("../Quit") text = "Single Player" [node name="Multiplayer" type="Button" parent="VBoxContainer"] -margin_top = 24.0 +margin_top = 5.0 margin_right = 136.0 -margin_bottom = 44.0 +margin_bottom = 6.0 text = "Multiplayer" [node name="Options" type="Button" parent="VBoxContainer"] -margin_top = 48.0 +margin_top = 10.0 margin_right = 136.0 -margin_bottom = 68.0 +margin_bottom = 11.0 text = "Options" [node name="Quit" type="Button" parent="VBoxContainer"] -margin_top = 72.0 +margin_top = 15.0 margin_right = 136.0 -margin_bottom = 92.0 +margin_bottom = 16.0 focus_neighbour_bottom = NodePath("../Singleplayer") text = "Quit"