Skip to content

Commit b3b8704

Browse files
Godot update, new extensions, restored original black setup style, bug fixes and cleanup (#186)
* tech: Rename SetCollisionLayer SetCollisionMask * tech: More extension methods + extension cleanup * tech: Add Area3D Extensions * Update UI styles and upgrade Godot SDK to 4.5.1 Enhanced SetupUI.tscn with new style resources, color overrides, and an encouraging label. Updated project and .csproj files to use Godot 4.5.1. Improved game name preview formatting in SetupUtils.cs. Removed obsolete Game.cs.uid file and updated GodotUtils submodule with many many commits. * Remove Visualize namespace. Removed Visualize namespace to avoid the conflict with the class named Visualize. * Remove project configuration from solution file Deleted build and configuration entries for project {70113130-16E0-470F-97B2-5711F5F21EBD} and removed the NestedProjects section from Template.sln. This cleans up the solution file by eliminating references to a project that is no longer present or needed.
1 parent 23b7805 commit b3b8704

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed

Framework/Game.cs.uid

Lines changed: 0 additions & 1 deletion
This file was deleted.

Framework/GodotUtils

Submodule GodotUtils updated 178 files

Setup/SetupUI.tscn

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
[gd_scene load_steps=6 format=3 uid="uid://dnmu3cujgayk2"]
1+
[gd_scene load_steps=8 format=3 uid="uid://dnmu3cujgayk2"]
22

33
[ext_resource type="Script" uid="uid://dosqetacy3knn" path="res://Setup/SetupUI.cs" id="1_m5u8t"]
44
[ext_resource type="Script" uid="uid://blxj0cebqkjo2" path="res://Setup/CheckDotNetVersion.cs" id="2_ut11q"]
55

6+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cov1j"]
7+
bg_color = Color(0, 0, 0, 1)
8+
69
[sub_resource type="SystemFont" id="SystemFont_gx0is"]
710
font_names = PackedStringArray("Segoe UI")
811
font_weight = 600
912
subpixel_positioning = 0
1013
multichannel_signed_distance_field = true
1114

15+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c1tok"]
16+
content_margin_left = 10.0
17+
content_margin_right = 10.0
18+
bg_color = Color(0.051970907, 0.05197099, 0.051970936, 1)
19+
border_width_bottom = 5
20+
border_color = Color(0.043039158, 0.04303915, 0.04303915, 1)
21+
corner_radius_top_left = 10
22+
corner_radius_top_right = 10
23+
corner_radius_bottom_right = 10
24+
corner_radius_bottom_left = 10
25+
1226
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mv57m"]
1327
bg_color = Color(0.6, 0, 0.0470588, 1)
1428

@@ -21,6 +35,7 @@ anchor_right = 1.0
2135
anchor_bottom = 1.0
2236
grow_horizontal = 2
2337
grow_vertical = 2
38+
theme_override_styles/panel = SubResource("StyleBoxFlat_cov1j")
2439
script = ExtResource("1_m5u8t")
2540
metadata/_edit_lock_ = true
2641

@@ -69,6 +84,7 @@ theme_override_constants/separation = 10
6984

7085
[node name="Label2" type="Label" parent="SubViewportContainer/SubViewport/CenterContainer/VBoxContainer/HBoxContainer/Name"]
7186
layout_mode = 2
87+
theme_override_colors/font_color = Color(0.8132577, 0.8132577, 0.81325763, 1)
7288
text = "What is the name of your game?"
7389
horizontal_alignment = 1
7490

@@ -83,9 +99,17 @@ max_length = 30
8399
custom_minimum_size = Vector2(250, 75)
84100
layout_mode = 2
85101
size_flags_horizontal = 4
102+
theme_override_colors/font_color = Color(1, 0.84000003, 0.96, 1)
86103
theme_override_font_sizes/font_size = 28
104+
theme_override_styles/normal = SubResource("StyleBoxFlat_c1tok")
87105
text = "Apply Changes"
88106

107+
[node name="Label" type="Label" parent="SubViewportContainer/SubViewport/CenterContainer/VBoxContainer"]
108+
layout_mode = 2
109+
theme_override_colors/font_color = Color(0.04, 0.04, 0.04, 1)
110+
text = "Hang in there. You got this. You can make a game. ^>.<^"
111+
horizontal_alignment = 1
112+
89113
[node name="NodePopupPanel" type="PopupPanel" parent="SubViewportContainer/SubViewport"]
90114
unique_name_in_owner = true
91115
size = Vector2i(732, 130)

Setup/SetupUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ public static void DisplayGameNamePreview(string inputName, RichTextLabel gameNa
143143
{
144144
string name = FormatGameName(inputName);
145145

146-
string text = $"The name of the project will be {Highlight(name)}. " +
146+
string text = $"[color=gray]The name of the project will be {Highlight(name)}. " +
147147
$"The root namespace for all scripts will be {Highlight(name)}. " +
148-
$"Please ensure the name is in PascalFormat.";
148+
$"Please ensure the name is in PascalFormat.[/color]";
149149

150150
gameNamePreview.Text = text;
151151
}

Template.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Godot.NET.Sdk/4.4.1">
1+
<Project Sdk="Godot.NET.Sdk/4.5.1">
22
<!-- Project Settings -->
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>

Template.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@ Global
1414
{87041398-62C1-8D78-B512-37DE781C5205}.Debug|Any CPU.Build.0 = Debug|Any CPU
1515
{87041398-62C1-8D78-B512-37DE781C5205}.Release|Any CPU.ActiveCfg = Release|Any CPU
1616
{87041398-62C1-8D78-B512-37DE781C5205}.Release|Any CPU.Build.0 = Release|Any CPU
17-
{70113130-16E0-470F-97B2-5711F5F21EBD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18-
{70113130-16E0-470F-97B2-5711F5F21EBD}.Debug|Any CPU.Build.0 = Debug|Any CPU
19-
{70113130-16E0-470F-97B2-5711F5F21EBD}.Release|Any CPU.ActiveCfg = Release|Any CPU
20-
{70113130-16E0-470F-97B2-5711F5F21EBD}.Release|Any CPU.Build.0 = Release|Any CPU
2117
EndGlobalSection
2218
GlobalSection(SolutionProperties) = preSolution
2319
HideSolutionNode = FALSE
2420
EndGlobalSection
25-
GlobalSection(NestedProjects) = preSolution
26-
EndGlobalSection
2721
GlobalSection(ExtensibilityGlobals) = postSolution
2822
SolutionGuid = {E6313EBD-3921-4BBD-82BF-B3AF80D6765E}
2923
EndGlobalSection

project.godot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ config_version=5
1212

1313
config/name="Template"
1414
run/main_scene="uid://dnmu3cujgayk2"
15-
config/features=PackedStringArray("4.4", "C#", "Forward Plus")
15+
config/features=PackedStringArray("4.5", "C#", "Forward Plus")
1616
boot_splash/show_image=false
1717
config/icon="res://Framework/Icon.svg"
1818

0 commit comments

Comments
 (0)