aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UIni.pas
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-22 13:03:35 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-22 13:03:35 +0000
commita93c26232ea1b01259cd045cc11eb43eb40a0273 (patch)
tree2b833a624f4d205bca1cbd54598be25da087bde8 /Game/Code/Classes/UIni.pas
parent0c9e08b24bea976fd0bb1fa537d16ad7c224172a (diff)
downloadusdx-a93c26232ea1b01259cd045cc11eb43eb40a0273.tar.gz
usdx-a93c26232ea1b01259cd045cc11eb43eb40a0273.tar.xz
usdx-a93c26232ea1b01259cd045cc11eb43eb40a0273.zip
added duel-ratio-option (normal, 10%-90%) for challenge mode. the plugins are nice but in challenge mode the normal duel-mode is more important.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2394 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/UIni.pas')
-rw-r--r--Game/Code/Classes/UIni.pas11
1 files changed, 11 insertions, 0 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas
index 5228d870..0cfea5ce 100644
--- a/Game/Code/Classes/UIni.pas
+++ b/Game/Code/Classes/UIni.pas
@@ -82,6 +82,7 @@ type
LineBonus: integer;
PartyPopup: integer;
SumPlayers: integer;
+ DuelRatio: integer;
// Controller
Joypad: integer;
@@ -181,6 +182,7 @@ const
ILineBonus: array[0..2] of string = ('Off', 'At Score', 'At Notes');
IPartyPopup: array[0..1] of string = ('Off', 'On');
ISumPlayers: array[0..2] of string = ('Never', 'Dynamic', 'Always');
+ IDuelRatio: array[0..9] of string = ('normal', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%');
IJoypad: array[0..1] of string = ('Off', 'On');
ILPT: array[0..2] of string = ('Off', 'LCD', 'Lights');
@@ -610,6 +612,11 @@ begin
for Pet := 0 to High(ISumPlayers) do
if Tekst = ISumPlayers[Pet] then Ini.SumPlayers := Pet;
+ // DuelRatio
+ Tekst := IniFile.ReadString('Advanced', 'DuelRatio', IDuelRatio[0]);
+ for Pet := 0 to High(IDuelRatio) do
+ if Tekst = IDuelRatio[Pet] then Ini.DuelRatio := Pet;
+
// Joypad
Tekst := IniFile.ReadString('Controller', 'Joypad', IJoypad[0]);
for Pet := 0 to High(IJoypad) do
@@ -844,6 +851,10 @@ begin
Tekst := ISumPlayers[Ini.SumPlayers];
IniFile.WriteString('Advanced', 'SumPlayers', Tekst);
+ //DuelRatio
+ Tekst := IDuelRatio[Ini.DuelRatio];
+ IniFile.WriteString('Advanced', 'DuelRatio', Tekst);
+
// Joypad
Tekst := IJoypad[Ini.Joypad];
IniFile.WriteString('Controller', 'Joypad', Tekst);