-
Notifications
You must be signed in to change notification settings - Fork 5
/
m_menu.pas
6730 lines (6040 loc) · 188 KB
/
m_menu.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//------------------------------------------------------------------------------
//
// FPCDoom - Port of Doom to Free Pascal Compiler
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 2004-2007 by Jim Valavanis
// Copyright (C) 2017-2022 by Jim Valavanis
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
// DESCRIPTION:
// Menu widget stuff, episode selection and such.
//
//------------------------------------------------------------------------------
// E-Mail: jimmyvalavanis@yahoo.gr
// Site : https://sourceforge.net/projects/fpcdoom/
//------------------------------------------------------------------------------
{$I FPCDoom.inc}
unit m_menu;
interface
uses
d_event;
//
// MENUS
//
{ Called by main loop, }
{ saves config file and calls I_Quit when user exits. }
{ Even when the menu is not displayed, }
{ this can resize the view and change game parameters. }
{ Does all the real work of the menu interaction. }
//==============================================================================
//
// M_Responder
//
//==============================================================================
function M_Responder(ev: Pevent_t): boolean;
{ Called by main loop, }
{ only used for menu (skull cursor) animation. }
//==============================================================================
//
// M_Ticker
//
//==============================================================================
procedure M_Ticker;
{ Called by main loop, }
{ draws the menus directly into the screen buffer. }
//==============================================================================
//
// M_Drawer
//
//==============================================================================
procedure M_Drawer;
{ Called by D_DoomMain, }
{ loads the config file. }
//==============================================================================
//
// M_Init
//
//==============================================================================
procedure M_Init;
//==============================================================================
//
// M_ShutDown
//
//==============================================================================
procedure M_ShutDown;
{ Called by intro code to force menu up upon a keypress, }
{ does nothing if menu is already up. }
//==============================================================================
//
// M_StartControlPanel
//
//==============================================================================
procedure M_StartControlPanel;
var
//
// defaulted values
//
mouseSensitivity: integer; // has default
mouseSensitivityX: integer;
mouseSensitivityY: integer;
// Show messages has default, 0 = off, 1 = on
showMessages: integer;
shademenubackground: integer;
keepsavegamename: boolean;
menuactive: boolean;
inhelpscreens: boolean;
menubackgroundflat: string = 'FLOOR4_6';
menukeyescfunc: integer = 0;
const
DEFMENUBACKGROUNDFLAT = 'FLOOR4_6';
//==============================================================================
//
// M_InitMenus
//
//==============================================================================
procedure M_InitMenus;
//==============================================================================
//
// M_SetKeyboardMode
//
//==============================================================================
procedure M_SetKeyboardMode(const mode: integer);
implementation
uses
d_fpc,
doomdef,
am_map,
c_cmds,
d_english,
d_main,
d_player,
g_game,
m_argv,
m_misc,
i_system,
i_sound,
e_endoom,
f_wipe,
i_video,
p_mobj_h,
p_terrain,
p_telept,
p_enemy,
p_pspr,
p_saveg,
r_aspect,
r_data,
r_draw,
r_draw_column,
r_draw_span,
r_main,
r_hires,
r_intrpl,
r_lightmap,
r_mirror,
r_grayscale,
r_colorsubsampling,
r_render,
r_sky,
t_main,
v_intermission,
v_video,
w_wad,
hu_stuff,
st_stuff,
s_sound,
doomstat,
// Data.
sounds,
z_memory;
var
// temp for screenblocks (0-9)
m_screensize: integer;
// -1 = no quicksave slot picked!
quickSaveSlot: integer;
// 1 = message to be printed
messageToPrint: integer;
// ...and here is the message string!
messageString: string;
messageLastMenuActive: boolean;
// timed message = no input from user
messageNeedsInput: boolean;
type
PmessageRoutine = function(i: integer): pointer;
var
messageRoutine: PmessageRoutine;
const
SAVESTRINGSIZE = 24;
var
gammamsg: array[0..GAMMASIZE - 1] of string;
// we are going to be entering a savegame string
saveStringEnter: boolean;
saveSlot: integer; // which slot to save in
saveCharIndex: integer; // which char we're editing
// old save description before edit
saveOldString: string;
const
SKULLXOFF = -32;
SKULLYOFF = -5;
ARROWXOFF = -8;
LINEHEIGHT = 16;
LINEHEIGHT2 = 8;
var
savegamestrings: array[0..9] of string;
endstring: string;
const
MIM_TRANSDOTSONLY = 1;
MIM_ANIMATEDOTS = 2;
type
menuitem_t = record
// 0 = no cursor here, 1 = ok, 2 = arrows ok
status: smallint;
name: string;
cmd: string;
// choice = menu item #.
// if status = 2,
// choice=0:leftarrow,1:rightarrow
routine: PmessageRoutine;
// Yes/No location
pBoolVal: PBoolean;
// hotkey in menu
alphaKey: char;
// Translation
transtbl: string[8];
// Mode
itemflags: LongWord;
end;
Pmenuitem_t = ^menuitem_t;
menuitem_tArray = packed array[0..$FFFF] of menuitem_t;
Pmenuitem_tArray = ^menuitem_tArray;
Pmenu_t = ^menu_t;
menu_t = record
title: string[20];
numitems: smallint; // # of menu items
prevMenu: Pmenu_t; // previous menu
leftMenu: Pmenu_t; // left menu
rightMenu: Pmenu_t; // right menu
menuitems: Pmenuitem_tArray;// menu items
drawproc: PProcedure; // draw routine
x: smallint;
y: smallint; // x,y of menu
lastOn: smallint; // last item user was on in menu
itemheight: integer;
texturebk: boolean;
end;
var
itemOn: smallint; // menu item skull is on
skullAnimCounter: smallint; // skull animation counter
whichSkull: smallint; // which skull to draw
// graphic name of skulls
// warning: initializer-string for array of chars is too long
skullName: array[0..1] of string;
// current menudef
currentMenu: Pmenu_t;
//==============================================================================
// M_DrawThermo
//
// Menu Functions
//
//==============================================================================
procedure M_DrawThermo(x, y, thermWidth, thermDot: integer); overload;
var
xx: integer;
i: integer;
begin
xx := x;
V_DrawPatch(xx, y, SCN_TMP, 'M_THERML', false);
xx := xx + 8;
for i := 0 to thermWidth - 1 do
begin
V_DrawPatch(xx, y, SCN_TMP, 'M_THERMM', false);
xx := xx + 8;
end;
V_DrawPatch(xx, y, SCN_TMP, 'M_THERMR', false);
V_DrawPatch((x + 8) + thermDot * 8, y, SCN_TMP,
'M_THERMO', false);
end;
//==============================================================================
//
// M_DrawThermo
//
//==============================================================================
procedure M_DrawThermo(x, y, thermWidth, thermDot, numdots: integer); overload;
var
xx: integer;
i: integer;
begin
xx := x;
V_DrawPatch(xx, y, SCN_TMP, 'M_THERML', false);
xx := xx + 8;
for i := 0 to thermWidth - 1 do
begin
V_DrawPatch(xx, y, SCN_TMP, 'M_THERMM', false);
xx := xx + 8;
end;
V_DrawPatch(xx, y, SCN_TMP, 'M_THERMR', false);
V_DrawPatch((x + 8) + (thermDot * 8 * thermWidth) div numdots, y, SCN_TMP,
'M_THERMO', false);
end;
//==============================================================================
//
// M_DrawEmptyCell
//
//==============================================================================
procedure M_DrawEmptyCell(menu: Pmenu_t; item: integer);
begin
V_DrawPatch(menu.x - 10, menu.y + item * menu.itemheight - 1, SCN_TMP,
'M_CELL1', false);
end;
//==============================================================================
//
// M_DrawSelCell
//
//==============================================================================
procedure M_DrawSelCell(menu: Pmenu_t; item: integer);
begin
V_DrawPatch(menu.x - 10, menu.y + item * menu.itemheight - 1, SCN_TMP,
'M_CELL2', false);
end;
//==============================================================================
//
// M_StartMessage
//
//==============================================================================
procedure M_StartMessage(const str: string; routine: PmessageRoutine; const input: boolean);
begin
messageLastMenuActive := menuactive;
messageToPrint := 1;
messageString := str;
if Assigned(routine) then
@messageRoutine := @routine
else
messageRoutine := nil;
messageNeedsInput := input;
menuactive := true;
end;
//==============================================================================
//
// M_StopMessage
//
//==============================================================================
procedure M_StopMessage;
begin
menuactive := messageLastMenuActive;
messageToPrint := 0;
end;
//==============================================================================
// M_StringWidth
//
// Find string width from hu_font chars
//
//==============================================================================
function M_StringWidth(const str: string): integer;
var
i: integer;
c: integer;
begin
result := 0;
for i := 1 to Length(str) do
begin
c := Ord(toupper(str[i])) - Ord(HU_FONTSTART);
if (c < 0) or (c >= HU_FONTSIZE) then
result := result + 4
else
result := result + hu_font[c].width;
end;
end;
//==============================================================================
// M_StringHeight
//
// Find string height from hu_font chars
//
//==============================================================================
function M_StringHeight(const str: string): integer;
var
i: integer;
height: integer;
begin
height := hu_font[0].height;
result := height;
for i := 1 to Length(str) do
if str[i] = #13 then
result := result + height;
end;
type
menupos_t = record
x, y: integer;
end;
//==============================================================================
// M_WriteText
//
// Write a string using the hu_font
//
//==============================================================================
function M_WriteText(x, y: integer; const str: string): menupos_t;
var
w: integer;
ch: integer;
c: integer;
cx: integer;
cy: integer;
len: integer;
begin
len := Length(str);
if len = 0 then
begin
result.x := x;
result.y := y;
exit;
end;
ch := 1;
cx := x;
cy := y;
while true do
begin
if ch > len then
break;
c := Ord(str[ch]);
inc(ch);
if c = 0 then
break;
if c = 10 then
begin
cx := x;
continue;
end;
if c = 13 then
begin
cy := cy + 12;
continue;
end;
c := Ord(toupper(Chr(c))) - Ord(HU_FONTSTART);
if (c < 0) or (c >= HU_FONTSIZE) then
begin
cx := cx + 4;
continue;
end;
w := hu_font[c].width;
if (cx + w) > 320 then
break;
V_DrawPatch(cx, cy, SCN_TMP, hu_font[c], false);
cx := cx + w;
end;
result.x := cx;
result.y := cy;
end;
//==============================================================================
//
// M_WriteColorText
//
//==============================================================================
function M_WriteColorText(x, y: integer; const str: string; const clmap: string): menupos_t;
var
w: integer;
ch: integer;
c: integer;
cx: integer;
cy: integer;
len: integer;
oldtranslation: PByteArray;
begin
if clmap = '' then
begin
result := M_WriteText(x, y, str);
exit;
end;
len := Length(str);
if len = 0 then
begin
result.x := x;
result.y := y;
exit;
end;
ch := 1;
cx := x;
cy := y;
oldtranslation := v_translation;
v_translation := W_CacheLumpName(clmap, PU_STATIC);
while true do
begin
if ch > len then
break;
c := Ord(str[ch]);
inc(ch);
if c = 0 then
break;
if c = 10 then
begin
cx := x;
continue;
end;
if c = 13 then
begin
cy := cy + 12;
continue;
end;
c := Ord(toupper(Chr(c))) - Ord(HU_FONTSTART);
if (c < 0) or (c >= HU_FONTSIZE) then
begin
cx := cx + 4;
continue;
end;
w := hu_font[c].width;
if (cx + w) > 320 then
break;
V_DrawPatch(cx, cy, SCN_TMP, hu_font[c], false);
cx := cx + w;
end;
Z_ChangeTag(v_translation, PU_CACHE);
v_translation := oldtranslation;
result.x := cx;
result.y := cy;
end;
var
menubasetic: integer = 0;
//==============================================================================
//
// M_WriteAnimDotsText
//
//==============================================================================
function M_WriteAnimDotsText(x, y: integer; const str: string; const clmap: string; const flags: LongWord): menupos_t;
var
s1, s2, s3: string;
num: integer;
dotrans1, dotrans2, dotrans3: boolean;
begin
s1 := str;
while length(s1) > 0 do
begin
if s1[length(s1)] = '.' then
SetLength(s1, length(s1) - 1)
else
break;
end;
if flags and MIM_ANIMATEDOTS <> 0 then
begin
num := ((gametic - menubasetic) div 12) mod 4;
case num of
1: begin s2 := '.'; s3 := '..'; end;
2: begin s1 := s1 + '.'; s2 := '.'; s3 := '.'; end;
3: begin s1 := s1 + '..'; s2 := '.'; s3 := ''; end;
else
s1 := s1 + '...';
s2 := '';
s3 := '';
end;
end
else
begin
s1 := s1 + '...';
s2 := '';
s3 := '';
end;
if clmap = '' then
begin
dotrans1 := false;
dotrans2 := false;
dotrans3 := false;
end
else
begin
if flags and MIM_TRANSDOTSONLY <> 0 then
begin
dotrans1 := false;
dotrans2 := true;
dotrans3 := false;
end
else
begin
dotrans1 := true;
dotrans2 := true;
dotrans3 := true;
end;
end;
if dotrans1 then
result := M_WriteColorText(x, y, s1, clmap)
else
result := M_WriteText(x, y, s1);
if s2 <> '' then
begin
if dotrans2 then
result := M_WriteColorText(result.x, result.y, s2, clmap)
else
result := M_WriteText(result.x, result.y, s2);
end;
if s3 <> '' then
begin
if dotrans3 then
result := M_WriteColorText(result.x, result.y, s3, clmap)
else
result := M_WriteText(result.x, result.y, s3);
end;
end;
//==============================================================================
//
// M_ClearMenus
//
//==============================================================================
procedure M_ClearMenus;
begin
menuactive := false;
end;
//==============================================================================
//
// M_SetupNextMenu
//
//==============================================================================
procedure M_SetupNextMenu(menudef: Pmenu_t);
begin
menubasetic := gametic;
currentMenu := menudef;
itemOn := currentMenu.lastOn;
end;
//
// MENU DEFINITIONS
//
type
//
// DOOM MENU
//
main_e = (
mm_newgame,
mm_options,
mm_loadgame,
mm_savegame,
mm_readthis,
mm_quitdoom,
main_end
);
var
MainMenu: array[0..Ord(main_end) - 1] of menuitem_t;
MainDef: menu_t;
type
//
// EPISODE SELECT
//
episodes_e = (
ep1,
ep2,
ep3,
ep4,
ep_end
);
var
EpisodeMenu: array[0..Ord(ep_end) - 1] of menuitem_t;
EpiDef: menu_t;
type
//
// NEW GAME
//
newgame_e = (
killthings,
toorough,
hurtme,
violence,
nightmare,
newg_end
);
var
NewGameMenu: array[0..Ord(newg_end) - 1] of menuitem_t;
NewDef: menu_t;
type
//
// OPTIONS MENU
//
options_e = (
opt_general,
opt_display,
opt_sound,
opt_compatibility,
opt_controls,
opt_system,
opt_end
);
var
OptionsMenu: array[0..Ord(opt_end) - 1] of menuitem_t;
OptionsDef: menu_t;
// GENERAL MENU
type
optionsgeneral_e = (
endgame,
messages,
scrnsize,
option_empty1,
optgen_end
);
var
OptionsGeneralMenu: array[0..Ord(optgen_end) - 1] of menuitem_t;
OptionsGeneralDef: menu_t;
// DISPLAY MENU
type
optionsdisplay_e = (
od_detail,
od_automap,
od_appearance,
od_advanced,
od_colors,
od_lightmap,
od_32bitsetup,
optdisp_end
);
var
OptionsDisplayMenu: array[0..Ord(optdisp_end) - 1] of menuitem_t;
OptionsDisplayDef: menu_t;
// DISPLAY DETAIL MENU
type
optionsdisplaydetail_e = (
odd_detaillevel,
odd_columnrenderingquality,
odd_spanrenderingquality,
odd_fullscreen,
odd_fullscreenexclusive,
odd_screensize,
odd_filler1,
odd_filler2,
odd_setvideomode,
optdispdetail_end
);
var
OptionsDisplayDetailMenu: array[0..Ord(optdispdetail_end) - 1] of menuitem_t;
OptionsDisplayDetailDef: menu_t;
// DISPLAY APPEARANCE MENU
type
optionsdisplayappearance_e = (
od_hud,
od_drawfps,
od_shademenubackground,
od_displaydiskbusyicon,
od_wipestyle,
od_displayendscreen,
optdispappearance_end
);
var
OptionsDisplayAppearanceMenu: array[0..Ord(optdispappearance_end) - 1] of menuitem_t;
OptionsDisplayAppearanceDef: menu_t;
// DISPLAY HUD MENU
type
optionsdisplayhud_e = (
od_statusbarsize,
od_custom_fullscreenhud,
od_custom_fullscreenhud_size,
od_custom_helthpos,
od_custom_armorpos,
od_custom_ammopos,
od_custom_keyspos,
optdisphud_end
);
var
OptionsDisplayHudMenu: array[0..Ord(optdisphud_end) - 1] of menuitem_t;
OptionsDisplayHudDef: menu_t;
// DISPLAY AUTOMAP MENU
type
optionsdisplayautomap_e = (
od_automapoverlay,
od_automaprotate,
od_automapgrid,
optdispautomap_end
);
var
OptionsDisplayAutomapMenu: array[0..Ord(optdispautomap_end) - 1] of menuitem_t;
OptionsDisplayAutomapDef: menu_t;
// DISPLAY ADVANCED MENU
type
optionsdisplayadvanced_e = (
od_aspect,
od_camera,
od_mirror,
od_usetransparentsprites,
od_interpolate,
od_fixstallhack,
od_numrenderingthreads,
optdispadvanced_end
);
var
OptionsDisplayAdvancedMenu: array[0..Ord(optdispadvanced_end) - 1] of menuitem_t;
OptionsDisplayAdvancedDef: menu_t;
// DISPLAY MIRROR MENU
type
optionsdisplaymirror_e = (
odm_enviroment,
odm_weapon,
odm_sky,
optdispmirror_end
);
var
OptionsDisplayMirrorMenu: array[0..Ord(optdispmirror_end) - 1] of menuitem_t;
OptionsDisplayMirrorDef: menu_t;
// DISPLAY ASPECT RATIO MENU
type
optionsdisplayaspectratio_e = (
oda_widescreensupport,
oda_excludewidescreenplayersprites,
oda_forceaspectratio,
oda_intermissionaspect,
oda_pillarbox_pct,
oda_filler1,
oda_filler2,
oda_letterbox_pct,
oda_filler3,
oda_filler4,
optdispaspect_end
);
var
OptionsDisplayAspectRatioMenu: array[0..Ord(optdispaspect_end) - 1] of menuitem_t;
OptionsDisplayAspectRatioDef: menu_t;
//
// DISPLAY CAMERA MENU
type
optionsdisplaycamera_e = (
odc_zaxisshift,
odc_skystretchpct,
odc_filler1,
odc_filler2,
odc_billboardsky,
odc_chasecamera,
odc_chasecameraxy,
odc_filler3,
odc_filler4,
odc_chasecameraz,
odc_filler5,
odc_filler6,
optdispcamera_end
);
var
OptionsDisplayCameraMenu: array[0..Ord(optdispcamera_end) - 1] of menuitem_t;
OptionsDisplayCameraDef: menu_t;
// COLORS MENU
type
optionsdisplaycolors_e = (
oc_grayscale,
oc_colorsubsubling,
oc_gammacorrection,
optdispcolors_end
);
var
OptionsDisplayColorsMenu: array[0..Ord(optdispcolors_end) - 1] of menuitem_t;
OptionsDisplayColorsDef: menu_t;
// LIGHTMAP OPTIONS
type
optionslightmap_e = (
ol_uselightmaps,
ol_accuracy,
ol_colorintensity,
ol_filler1,
ol_filler2,
ol_lightwidthfactor,
ol_filler3,
ol_filler4,
od_resettodefaults,
ol_lightmap_end
);
var
OptionsLightmapMenu: array[0..Ord(ol_lightmap_end) - 1] of menuitem_t;
OptionsLightmapDef: menu_t;
// DISPLAY 32 BIT RENDERING MENU
type
optionsdisplay32bit_e = (
od_forcecolormaps,
od_32bittexturepaletteeffects,
od_use32bitfuzzeffect,
od_useexternaltextures,
od_preferetexturesnamesingamedirectory,
od_flatfiltering,
od_smoothskies,
optdisp32bit_end
);
var
OptionsDisplay32bitMenu: array[0..Ord(optdisp32bit_end) - 1] of menuitem_t;
OptionsDisplay32bitDef: menu_t;
type
//
// Read This! MENU 1 & 2
//
read_e = (
rdthsempty1,
read1_end
);
var
ReadMenu1: array[0..Ord(read1_end) - 1] of menuitem_t;