Skip to content

Commit 5a2a868

Browse files
authored
Merge pull request #838 from C7-Game/WildWeazel-patch-2
new title & icon graphics
2 parents 46f677b + 6b00d6d commit 5a2a868

File tree

8 files changed

+69
-21
lines changed

8 files changed

+69
-21
lines changed

C7/UIElements/MainMenu/MainMenu.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,19 @@ private void DisplayTitleScreen() {
5050
if (ButtonContainer.NewGame == null) {
5151
ButtonContainer.CreateButtons();
5252
}
53+
// TODO: enable buttons are features are implemented
5354
ButtonContainer.NewGame.Pressed += GoToWorldSetup;
54-
ButtonContainer.QuickStart.Pressed += GoToWorldSetup;
55+
ButtonContainer.QuickStart.Pressed += StartGame;
5556
ButtonContainer.Tutorial.Pressed += StartGame;
57+
ButtonContainer.Tutorial.Visible = false;
5658
ButtonContainer.LoadGame.Pressed += LoadGame;
5759
ButtonContainer.LoadScenario.Pressed += LoadScenario;
5860
ButtonContainer.HallOfFame.Pressed += HallOfFame;
61+
ButtonContainer.HallOfFame.Visible = false;
5962
ButtonContainer.Preferences.Pressed += Preferences;
63+
ButtonContainer.Preferences.Visible = false;
6064
ButtonContainer.AudioPreferences.Pressed += Preferences;
65+
ButtonContainer.AudioPreferences.Visible = false;
6166
ButtonContainer.Credits.Pressed += showCredits;
6267
ButtonContainer.Exit.Pressed += _on_Exit_pressed;
6368

C7/UIElements/MainMenu/main_menu.tscn

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
[gd_scene load_steps=10 format=3 uid="uid://gnt0y3og7nk6"]
1+
[gd_scene load_steps=11 format=3 uid="uid://gnt0y3og7nk6"]
22

33
[ext_resource type="Script" uid="uid://dgpuse88jc2hc" path="res://UIElements/MainMenu/MainMenu.cs" id="1_akneh"]
44
[ext_resource type="Texture2D" uid="uid://s55xvcaini8h" path="res://title-screen.png" id="2_erxyj"]
55
[ext_resource type="Script" uid="uid://ca14gkdccjfcg" path="res://UIElements/MainMenu/MenuButtonContainer.cs" id="3_t1nuq"]
66
[ext_resource type="FontFile" uid="uid://b1xkj8g82jbx5" path="res://Fonts/NotoSans-BoldItalic.ttf" id="3_x68dx"]
7+
[ext_resource type="Texture2D" uid="uid://ovwv08a53d7k" path="res://title.png" id="4_brea7"]
78
[ext_resource type="Script" uid="uid://dauceqein40wj" path="res://UIElements/MainMenu/MainMenuMusicPlayer.cs" id="4_tqr50"]
89
[ext_resource type="PackedScene" uid="uid://bvncm1bgcii5e" path="res://UIElements/civ3_file_dialog.tscn" id="5_rw2g7"]
910

@@ -49,37 +50,43 @@ stretch_mode = 4
4950

5051
[node name="RichTextLabel" type="RichTextLabel" parent="Control/Background"]
5152
layout_mode = 0
52-
offset_left = 20.0
53-
offset_top = 5.0
54-
offset_right = 660.0
55-
offset_bottom = 65.0
53+
offset_left = 226.0
54+
offset_top = 98.0
55+
offset_right = 828.0
56+
offset_bottom = 158.0
5657
theme_override_colors/default_color = Color(1, 0.25098, 0, 1)
5758
theme_override_fonts/normal_font = ExtResource("3_x68dx")
58-
theme_override_font_sizes/normal_font_size = 36
59-
text = "OpenCiv3 v0.3 Dutch Preview 1"
59+
theme_override_font_sizes/normal_font_size = 18
60+
text = "v0.3 Dutch Preview 1"
6061
deselect_on_focus_loss_enabled = false
6162
drag_and_drop_selection_enabled = false
6263

64+
[node name="Title" type="Sprite2D" parent="Control/Background"]
65+
position = Vector2(249.669, 72)
66+
scale = Vector2(0.757862, 0.757862)
67+
texture = ExtResource("4_brea7")
68+
6369
[node name="MainMenuContainer" type="VBoxContainer" parent="Control"]
6470
layout_mode = 1
6571
anchors_preset = -1
6672
anchor_left = 0.3
6773
anchor_top = 0.1
6874
anchor_right = 0.5
6975
anchor_bottom = 0.2
70-
offset_left = -79.0
71-
offset_right = 79.0
72-
offset_bottom = 370.0
76+
offset_left = -85.6
77+
offset_top = 135.2
78+
offset_right = 72.4
79+
offset_bottom = 505.2
7380
grow_horizontal = 2
7481
theme_override_constants/separation = 15
7582
script = ExtResource("3_t1nuq")
7683

7784
[node name="NoCiv3Options" type="VBoxContainer" parent="Control"]
7885
layout_mode = 0
7986
offset_left = 260.0
80-
offset_top = 100.0
87+
offset_top = 200.0
8188
offset_right = 580.0
82-
offset_bottom = 400.0
89+
offset_bottom = 500.0
8390
theme_override_constants/separation = 15
8491

8592
[node name="NoCiv3Prompt" type="Label" parent="Control/NoCiv3Options"]

C7/UIElements/Popups/GameMenu.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ public override void _Ready() {
1616

1717
AddHeader("Main Menu", 10);
1818

19+
// TODO: enable buttons as the features are implemented
1920
AddButton("Map", 60, map);
20-
AddButton("Load Game (Ctrl-L)", 85, load);
21-
AddButton("New Game (Ctrl-Shift-Q)", 110, newGame);
22-
AddButton("Preferences (Ctrl-P)", 135, preferences);
23-
AddButton("Retire (Ctrl-Q)", 160, retire);
24-
AddButton("Save Game (Ctrl-S)", 185, save);
25-
AddButton("Quit Game (ESC)", 210, quit);
21+
AddButton("Load Game", 85, load);
22+
//AddButton("New Game (Ctrl-Shift-Q)", 110, newGame);
23+
//AddButton("Preferences (Ctrl-P)", 135, preferences);
24+
AddButton("Retire", 110, retire);
25+
AddButton("Save Game", 135, save);
26+
AddButton("Quit Game (ESC)", 160, quit);
2627

2728
}
2829

C7/icon.png

9.24 KB
Loading

C7/project.godot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ config_version=5
1313
config/name="OpenCiv3"
1414
run/main_scene="res://UIElements/MainMenu/main_menu.tscn"
1515
config/features=PackedStringArray("4.4", "C#")
16-
boot_splash/image="res://icon.png"
16+
boot_splash/fullsize=false
17+
boot_splash/image="uid://ovwv08a53d7k"
1718
config/icon="res://icon.png"
1819

1920
[autoload]

C7/title.png

48.7 KB
Loading

C7/title.png.import

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://ovwv08a53d7k"
6+
path="res://.godot/imported/title.png-50ae1153955eed1e1a910d67a0682202.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://title.png"
14+
dest_files=["res://.godot/imported/title.png-50ae1153955eed1e1a910d67a0682202.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
> [!NOTE]
1212
> OpenCiv3 is not affiliated with civfanatics.com,
13-
> Firaxis Games, Infogrames Interactive,
13+
> Firaxis Games, BreakAway Games, Hasbro Interactive, Infogrames Interactive,
1414
> Atari Interactive, or Take-Two Interactive Software.
1515
> All trademarks are property of their respective owners.
1616

0 commit comments

Comments
 (0)