diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-12-21 17:39:16 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-12-21 17:39:16 +0000 |
commit | e32e65d0272f98e47dbbb7c5a0a33566d791e5d4 (patch) | |
tree | 01ce3727132cdcebab5e8962733d88374115926a /Game/Code | |
parent | d28987c15a69c7b0c7b26d0243dcbd840cc366a4 (diff) | |
download | usdx-e32e65d0272f98e47dbbb7c5a0a33566d791e5d4.tar.gz usdx-e32e65d0272f98e47dbbb7c5a0a33566d791e5d4.tar.xz usdx-e32e65d0272f98e47dbbb7c5a0a33566d791e5d4.zip |
save playernames in party mode
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2764 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r-- | Game/Code/Screens/UScreenPartyPlayer.pas | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Game/Code/Screens/UScreenPartyPlayer.pas b/Game/Code/Screens/UScreenPartyPlayer.pas index 0bf76615..e6d0c924 100644 --- a/Game/Code/Screens/UScreenPartyPlayer.pas +++ b/Game/Code/Screens/UScreenPartyPlayer.pas @@ -367,6 +367,19 @@ begin SDLK_ESCAPE :
begin
+ for I := 1 to 4 do
+ Ini.Name[I-1] := Button[I].Text[0].Text;
+
+ for I := 6 to 9 do
+ Ini.Name[I-2] := Button[I].Text[0].Text;
+
+ for I := 11 to 14 do
+ Ini.Name[I-3] := Button[I].Text[0].Text;
+
+ Ini.NameTeam[0] := Button[0].Text[0].Text;
+ Ini.NameTeam[1] := Button[5].Text[0].Text;
+ Ini.NameTeam[2] := Button[10].Text[0].Text;
+
Ini.SaveNames;
Music.PlayBack;
FadeTo(@ScreenPartyOptions);
@@ -374,6 +387,19 @@ begin SDLK_RETURN:
begin
+ for I := 1 to 4 do
+ Ini.Name[I-1] := Button[I].Text[0].Text;
+
+ for I := 6 to 9 do
+ Ini.Name[I-2] := Button[I].Text[0].Text;
+
+ for I := 11 to 14 do
+ Ini.Name[I-3] := Button[I].Text[0].Text;
+
+ Ini.NameTeam[0] := Button[0].Text[0].Text;
+ Ini.NameTeam[1] := Button[5].Text[0].Text;
+ Ini.NameTeam[2] := Button[10].Text[0].Text;
+
Ini.SaveNames;
//Save PlayerNames
for I := 0 to PartySession.Teams.NumTeams-1 do
|