From 0de8a21522ef2d6e333392fe5e287cbdfb09dfc1 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 15 Apr 2006 04:06:50 +0000 Subject: [PATCH] New menu (#230) for video settings git-svn-id: https://svn.eduke32.com/eduke32@14 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/menus.c | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index c0060eda5..2cd0dec8d 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -1914,6 +1914,72 @@ cheat_for_port_credits: menutext(c,70+19+19,SHX(-4),PHX(-4),skill_names[2]); menutext(c,70+19+19+19,SHX(-5),PHX(-5),skill_names[3]); break; + case 230: + + rotatesprite(320<<15,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1); + menutext(320>>1,24,0,0,"OMFG LOL VIDEO S3TT1NGZ"); + + c = (320>>1)-120; + + { + int io, ii, yy, d=c+160+40, enabled; + char *opts[] = { + "Ratio correction", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "-", + "Boobs", + NULL + }; + + yy = 34; + for (ii=io=0; opts[ii]; ii++) { + if (opts[ii][0] == '-' && !opts[ii][1]) { + if (io <= probey) yy += 4; + continue; + } + if (io < probey) yy += 8; + io++; + } + + onbar = (probey == 0); + x = probesm(c,yy+5,0,io); + + if (x == -1) { cmenu(202); break; } + + yy = 34; + for (ii=io=0; opts[ii]; ii++) { + if (opts[ii][0] == '-' && !opts[ii][1]) { + yy += 4; + continue; + } + enabled = 1; + switch (io) { + case 0: + barsm(d+8,yy+7, (short *)&glratiocorrection,1,x==io,SHX(-5),PHX(-5)); + break; + default: break; + } + gametextpal(c,yy, opts[ii], enabled?5:15, 2); + io++; + yy += 8; + } + } + break; case 200: