1
0
Fork 0

(svn r54) -Add: PF_MULTISTRING in Patch menu to select between things instead of numbers (Celestar)

release/0.4.5
truelight 2004-08-14 19:55:36 +00:00
parent bd8513897f
commit de1ffca437
1 changed files with 7 additions and 2 deletions

View File

@ -680,6 +680,7 @@ enum {
PF_0ISDIS = 1, PF_0ISDIS = 1,
PF_NOCOMMA = 2, PF_NOCOMMA = 2,
PF_MULTISTRING = 4,
}; };
static const PatchEntry _patches_ui[] = { static const PatchEntry _patches_ui[] = {
@ -889,10 +890,14 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e)
SET_DPARAM32(1, val); SET_DPARAM32(1, val);
if (pe->type == PE_CURRENCY) if (pe->type == PE_CURRENCY)
SET_DPARAM16(0, STR_CONFIG_PATCHES_CURRENCY); SET_DPARAM16(0, STR_CONFIG_PATCHES_CURRENCY);
else {
if (pe->flags & PF_MULTISTRING)
SET_DPARAM16(0, pe->str + val + 1);
else else
SET_DPARAM16(0, pe->flags & PF_NOCOMMA ? STR_CONFIG_PATCHES_INT32 : STR_7024); SET_DPARAM16(0, pe->flags & PF_NOCOMMA ? STR_CONFIG_PATCHES_INT32 : STR_7024);
} }
} }
}
DrawString(30, y+1, (pe->str)+disabled, 0); DrawString(30, y+1, (pe->str)+disabled, 0);
y += 11; y += 11;
} }