aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-17 18:16:33 +0200
committerLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-17 18:16:33 +0200
commit1234f970eeb95e56fcb480fe3e8c7903606291ed (patch)
tree1cf91cd15a30bdc37cf74d958fb170245e47fd5e
parent7ded947ef4bd9b4dc15201fc6c1cb8ab4ed4e80e (diff)
download2022-1234f970eeb95e56fcb480fe3e8c7903606291ed.tar.gz
2022-1234f970eeb95e56fcb480fe3e8c7903606291ed.tar.bz2
2022-1234f970eeb95e56fcb480fe3e8c7903606291ed.zip
added logo to main menu
-rw-r--r--godot/scenes/Menu.tscn68
-rw-r--r--godot/scenes/levels/MainMenu.tscn10
2 files changed, 27 insertions, 51 deletions
diff --git a/godot/scenes/Menu.tscn b/godot/scenes/Menu.tscn
index 32fd74a..e53e358 100644
--- a/godot/scenes/Menu.tscn
+++ b/godot/scenes/Menu.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=23 format=2]
+[gd_scene load_steps=22 format=2]
[ext_resource path="res://assets/theme.tres" type="Theme" id=1]
[ext_resource path="res://scenes/Menu.gd" type="Script" id=2]
@@ -10,6 +10,7 @@
[ext_resource path="res://assets/fonts/theme_smalltext.tres" type="Theme" id=8]
[ext_resource path="res://assets/fonts/theme_middletext.tres" type="Theme" id=9]
[ext_resource path="res://assets/fonts/theme_bigtext.tres" type="Theme" id=10]
+[ext_resource path="res://assets/Images/Logo.png" type="Texture" id=11]
[sub_resource type="DynamicFont" id=1]
size = 55
@@ -41,23 +42,6 @@ content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
-[sub_resource type="DynamicFont" id=11]
-size = 137
-font_data = ExtResource( 7 )
-
-[sub_resource type="StyleBoxFlat" id=7]
-bg_color = Color( 0.160784, 0.133333, 0.133333, 1 )
-
-[sub_resource type="Theme" id=12]
-Button/fonts/font = SubResource( 1 )
-Button/styles/disabled = SubResource( 2 )
-Button/styles/focus = SubResource( 3 )
-Button/styles/hover = SubResource( 4 )
-Button/styles/normal = SubResource( 5 )
-Button/styles/pressed = SubResource( 6 )
-Label/fonts/font = SubResource( 11 )
-Panel/styles/panel = SubResource( 7 )
-
[sub_resource type="DynamicFontData" id=8]
font_path = "res://assets/fonts/Roboto-Medium.ttf"
@@ -65,6 +49,9 @@ font_path = "res://assets/fonts/Roboto-Medium.ttf"
size = 23
font_data = SubResource( 8 )
+[sub_resource type="StyleBoxFlat" id=7]
+bg_color = Color( 0.160784, 0.133333, 0.133333, 1 )
+
[sub_resource type="Theme" id=10]
Button/fonts/font = SubResource( 1 )
Button/styles/disabled = SubResource( 2 )
@@ -110,16 +97,6 @@ margin_bottom = 251.0
focus_neighbour_bottom = NodePath("../StartButton")
text = "Quit"
-[node name="Label" type="Label" parent="."]
-margin_left = 2.0
-margin_top = 28.0
-margin_right = 1917.0
-margin_bottom = 166.0
-theme = SubResource( 12 )
-text = "Golf with your Dice"
-align = 1
-valign = 1
-
[node name="Credits" type="VBoxContainer" parent="."]
anchor_left = 0.8
anchor_top = 0.6
@@ -188,12 +165,12 @@ anchor_left = 0.05
anchor_top = 0.25
anchor_right = 0.3
anchor_bottom = 0.7
-margin_top = 89.0
-margin_right = 108.0
-margin_bottom = 78.0
+margin_left = -116.0
+margin_top = 27.0
+margin_right = -216.0
[node name="Control" type="Control" parent="VBoxContainer2"]
-margin_right = 588.0
+margin_right = 480.0
margin_bottom = 80.0
rect_min_size = Vector2( 480, 80 )
@@ -214,7 +191,7 @@ valign = 1
[node name="Control2" type="Control" parent="VBoxContainer2"]
margin_top = 84.0
-margin_right = 588.0
+margin_right = 480.0
margin_bottom = 164.0
rect_min_size = Vector2( 480, 80 )
@@ -237,7 +214,7 @@ autowrap = true
[node name="Control3" type="Control" parent="VBoxContainer2"]
margin_top = 168.0
-margin_right = 588.0
+margin_right = 480.0
margin_bottom = 248.0
rect_min_size = Vector2( 480, 80 )
@@ -260,13 +237,13 @@ autowrap = true
[node name="Control4" type="Control" parent="VBoxContainer2"]
margin_top = 252.0
-margin_right = 588.0
+margin_right = 480.0
margin_bottom = 277.0
rect_min_size = Vector2( 480, 25 )
[node name="Control5" type="Control" parent="VBoxContainer2"]
margin_top = 281.0
-margin_right = 588.0
+margin_right = 480.0
margin_bottom = 361.0
rect_min_size = Vector2( 480, 80 )
@@ -291,7 +268,7 @@ autowrap = true
[node name="Control6" type="Control" parent="VBoxContainer2"]
margin_top = 365.0
-margin_right = 588.0
+margin_right = 480.0
margin_bottom = 445.0
rect_min_size = Vector2( 480, 80 )
@@ -321,21 +298,16 @@ anchor_left = 0.05
anchor_top = 0.2
anchor_right = 0.3
anchor_bottom = 0.2
-margin_left = 109.0
-margin_top = 44.0
-margin_right = 268.0
-margin_bottom = 138.0
theme = ExtResource( 10 )
text = "HOW TO PLAY"
align = 1
-[node name="VBoxContainer3" type="VBoxContainer" parent="."]
-anchor_left = 0.05
-anchor_top = 0.25
-anchor_right = 0.3
-anchor_bottom = 0.7
-margin_top = 42.0
-margin_bottom = 54.0
+[node name="TextureRect" type="TextureRect" parent="."]
+anchor_left = 0.3
+anchor_right = 0.7
+anchor_bottom = 0.3
+texture = ExtResource( 11 )
+stretch_mode = 6
[connection signal="pressed" from="VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"]
[connection signal="pressed" from="VBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"]
diff --git a/godot/scenes/levels/MainMenu.tscn b/godot/scenes/levels/MainMenu.tscn
index b78bd7f..ac95ef9 100644
--- a/godot/scenes/levels/MainMenu.tscn
+++ b/godot/scenes/levels/MainMenu.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=2]
+[gd_scene load_steps=11 format=2]
[ext_resource path="res://scenes/Menu.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/game_objects/W8.gltf" type="PackedScene" id=2]
@@ -49,11 +49,15 @@ material = SubResource( 4 )
[sub_resource type="Skin" id=5]
+[sub_resource type="SpatialMaterial" id=6]
+albedo_color = Color( 0.745098, 0.74902, 0.713726, 1 )
+
[node name="MainMenu" type="Spatial"]
[node name="Menu" parent="." instance=ExtResource( 1 )]
[node name="W8" parent="." instance=ExtResource( 2 )]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0485578, 0, 1.70908 )
script = ExtResource( 3 )
[node name="Camera" type="Camera" parent="."]
@@ -65,7 +69,7 @@ stream = ExtResource( 4 )
autoplay = true
[node name="Background" type="MeshInstance" parent="."]
-transform = Transform( 100, 0, 0, 0, 1, 0, 0, 0, 100, 0, -3.21632, 0 )
+transform = Transform( 100, 0, 0, 0, 1, 0, 0, 0, 100, 0, -5.52231, 0 )
mesh = SubResource( 1 )
skin = SubResource( 5 )
-material/0 = null
+material/0 = SubResource( 6 )