diff options
author | truelight <truelight@openttd.org> | 2006-08-19 09:31:22 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-19 09:31:22 +0000 |
commit | d3f2180438830f8fefc1e319276d33a914fee767 (patch) | |
tree | 99ae4703fae7e532aba0086cf644ec2230755e2e /train_gui.c | |
parent | 9b18c11413655ef3bc1871cf84fe1a0e95a166c3 (diff) | |
download | openttd-d3f2180438830f8fefc1e319276d33a914fee767.tar.xz |
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
allow certain patterns (like numbers only)
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c index cc0128aa1..3ffed34de 100644 --- a/train_gui.c +++ b/train_gui.c @@ -277,7 +277,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e) if (sel_eng != INVALID_ENGINE) { WP(w,buildtrain_d).rename_engine = sel_eng; ShowQueryString(GetCustomEngineName(sel_eng), - STR_886A_RENAME_TRAIN_VEHICLE_TYPE, 31, 160, w->window_class, w->window_number); + STR_886A_RENAME_TRAIN_VEHICLE_TYPE, 31, 160, w->window_class, w->window_number, CS_ALPHANUMERAL); } } break; } @@ -1269,7 +1269,7 @@ static void TrainDetailsWndProc(Window *w, WindowEvent *e) case 2: /* name train */ v = GetVehicle(w->window_number); SetDParam(0, v->unitnumber); - ShowQueryString(v->string_id, STR_8865_NAME_TRAIN, 31, 150, w->window_class, w->window_number); + ShowQueryString(v->string_id, STR_8865_NAME_TRAIN, 31, 150, w->window_class, w->window_number, CS_ALPHANUMERAL); break; case 6: /* inc serv interval */ mod = _ctrl_pressed? 5 : 10; |