Skip to content

Commit a4bc0c6

Browse files
authored
Merge pull request #752 from C7-Game/twrner/player-selection
Allow selecting the civ to play as and the opponents!
2 parents 89fe5d0 + 00aa0e6 commit a4bc0c6

File tree

12 files changed

+527
-64
lines changed

12 files changed

+527
-64
lines changed

C7/GlobalSingleton.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Godot;
22
using QueryCiv3;
3+
using C7Engine;
34

45
/****
56
Need to pass values from one scene to another, particularly when loading
@@ -25,4 +26,9 @@ public partial class GlobalSingleton : Node {
2526
public void ResetLoadGamePath() {
2627
LoadGamePath = DefaultGamePath;
2728
}
29+
30+
// The characteristics of the world to generate. This exists in the singleton
31+
// to allow the world setup screen to pass the information to the player
32+
// setup screen, which is what actually kicks off the world generation.
33+
public WorldCharacteristics WorldCharacteristics;
2834
}

C7/Text/TextureConfigs/civ3.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ textures.palace = {
340340
}
341341

342342
textures.world_setup = require "civ3.world_setup"
343+
textures.player_setup = require "civ3.player_setup"
343344

344345
textures.diplomacy = {
345346
deal = "Art/Diplomacy/counter.pcx",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
local PLAYER_SETUP = "Art/PlayerSetup/"
2+
3+
local player_setup = {
4+
background = PLAYER_SETUP .. "playerSetup.pcx",
5+
}
6+
7+
return player_setup

C7/Text/c7-static-map-save.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75152,6 +75152,7 @@
7515275152
"leader": "Temujin",
7515375153
"colorIndex": 3,
7515475154
"leaderGender": "male",
75155+
"leaderArtFile": "art\\advisors\\x_temujin advisor.pcx",
7515575156
"cityNames": [
7515675157
"Karakorum",
7515775158
"Ta-Tu",
@@ -75199,6 +75200,7 @@
7519975200
"leader": "Isabella",
7520075201
"colorIndex": 5,
7520175202
"leaderGender": "female",
75203+
"leaderArtFile": "art\\advisors\\x_isabell advisor.pcx",
7520275204
"cityNames": [
7520375205
"Madrid",
7520475206
"Barcelona",
@@ -75247,6 +75249,7 @@
7524775249
"leader": "Ragnar Lodbrok",
7524875250
"colorIndex": 8,
7524975251
"leaderGender": "male",
75252+
"leaderArtFile": "art\\advisors\\x_ragnar advisor.pcx",
7525075253
"cityNames": [
7525175254
"Trondheim",
7525275255
"Bergen",
@@ -75297,6 +75300,7 @@
7529775300
"leader": "Osman",
7529875301
"colorIndex": 2,
7529975302
"leaderGender": "male",
75303+
"leaderArtFile": "art\\advisors\\x_osman advisor.pcx",
7530075304
"cityNames": [
7530175305
"Istanbul",
7530275306
"Edrine",
@@ -75343,6 +75347,7 @@
7534375347
"leader": "Brennus",
7534475348
"colorIndex": 4,
7534575349
"leaderGender": "male",
75350+
"leaderArtFile": "art\\advisors\\x_brennus advisor.pcx",
7534675351
"cityNames": [
7534775352
"Entremont",
7534875353
"Alesia",
@@ -75390,6 +75395,7 @@
7539075395
"leader": "Abu Bakr",
7539175396
"colorIndex": 7,
7539275397
"leaderGender": "male",
75398+
"leaderArtFile": "art\\advisors\\x_abu bakr advisor.pcx",
7539375399
"cityNames": [
7539475400
"Mecca",
7539575401
"Medina",
@@ -75435,6 +75441,7 @@
7543575441
"leader": "Hannibal",
7543675442
"colorIndex": 9,
7543775443
"leaderGender": "male",
75444+
"leaderArtFile": "art\\advisors\\x_Hannibal advisor.pcx",
7543875445
"cityNames": [
7543975446
"Carthage",
7544075447
"Utica",
@@ -75482,6 +75489,7 @@
7548275489
"leader": "Wang Kon",
7548375490
"colorIndex": 6,
7548475491
"leaderGender": "male",
75492+
"leaderArtFile": "art\\advisors\\x_Wang Kon advisor.pcx",
7548575493
"cityNames": [
7548675494
"Seoul",
7548775495
"P\u0027yongyang",
@@ -75876,7 +75884,10 @@
7587675884
"foodNeededToGrowForLevel1Cities": 20,
7587775885
"foodNeededToGrowForLevel2Cities": 40,
7587875886
"foodNeededToGrowForLevel3Cities": 60,
75879-
"buildingDiscountForCivTraits": 0.5
75887+
"buildingDiscountForCivTraits": 0.5,
75888+
"startUnitType1": "Settler",
75889+
"startUnitType2": "Worker",
75890+
"scoutUnitType": "Scout"
7588075891
},
7588175892
"techs": [
7588275893
{

C7/UIElements/MainMenu/Civ3MenuButton.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ private void SetUpLayout() {
125125
if (textPosition == TextPosition.TextAboveIcon || textPosition == TextPosition.TextBelowIcon) {
126126
boxContainer = new VBoxContainer();
127127
} else {
128-
boxContainer = new HBoxContainer();
128+
boxContainer = new HBoxContainer() {
129+
Alignment = (textPosition == TextPosition.TextLeftOfIcon) ? BoxContainer.AlignmentMode.End : BoxContainer.AlignmentMode.Begin,
130+
};
129131
}
130132
boxContainer.SetAnchorsPreset(LayoutPreset.FullRect);
131133
boxContainer.MouseFilter = MouseFilterEnum.Pass;

0 commit comments

Comments
 (0)