(svn r54) -Add: PF_MULTISTRING in Patch menu to select between things instead of numbers (Celestar)
authortruelight
Sat, 14 Aug 2004 19:55:36 +0000
changeset 53 1e32a44e2e52
parent 52 6fa04c184146
child 54 a26c36eae24a
(svn r54) -Add: PF_MULTISTRING in Patch menu to select between things instead of numbers (Celestar)
settings_gui.c
--- a/settings_gui.c	Sat Aug 14 11:07:31 2004 +0000
+++ b/settings_gui.c	Sat Aug 14 19:55:36 2004 +0000
@@ -680,6 +680,7 @@
 
 	PF_0ISDIS = 1,
 	PF_NOCOMMA = 2,
+	PF_MULTISTRING = 4,
 };
 
 static const PatchEntry _patches_ui[] = {
@@ -889,8 +890,12 @@
 					SET_DPARAM32(1, val);
 					if (pe->type == PE_CURRENCY)
 						SET_DPARAM16(0, STR_CONFIG_PATCHES_CURRENCY);
-					else
-						SET_DPARAM16(0, pe->flags & PF_NOCOMMA ? STR_CONFIG_PATCHES_INT32 : STR_7024);
+					else {
+						if (pe->flags & PF_MULTISTRING)
+							SET_DPARAM16(0, pe->str + val + 1);
+						else
+							SET_DPARAM16(0, pe->flags & PF_NOCOMMA ? STR_CONFIG_PATCHES_INT32 : STR_7024);
+					}
 				}
 			}
 			DrawString(30, y+1, (pe->str)+disabled, 0);