dhewm3/neo/ui
Daniel Gibson c0e8e20628 Nasty hack to show more default resolutions in menu
the resolutions are really hardcoded in an ugly combination of the
values r_mode supports, a string in strings/*.lang ("#str_04222")
describing the resolutions r_mode supports
("640x480;800x600;1024x768;1152x864;1280x1024;1600x1200")
and a string in mainmenu.gui with the corresponding r_mode values
("3;4;5;6;7;8").. as neither the strings nor mainmenu.gui are GPL'ed
I can't really redistribute a changed version of them.

So I added lots of resolutions to r_vidModes and wrote two functions
that generate the resolutions list string and r_mode value
string for the GUI.
Then I added a hack in the code that detects when the "window" for the
system options ("choiceDef OS2Primary") is created and overwrites the
hardcoded strings with custom ones from my new functions.

This is tested with both the main game and the official d3xp
(Resurrection of Evil) Addon.
No idea if it works with other mods, depends on whether they just copied
that part of the menu or wrote their own.
2015-09-28 16:01:18 +02:00
..
BindWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
BindWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ChoiceWindow.cpp Nasty hack to show more default resolutions in menu 2015-09-28 16:01:18 +02:00
ChoiceWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeviceContext.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeviceContext.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EditWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EditWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
FieldWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
FieldWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBearShootWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBearShootWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBustOutWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBustOutWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameSSDWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameSSDWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GuiScript.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GuiScript.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListGUI.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListGUI.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListGUILocal.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListWindow.cpp Fix out of bounds access for buggy UIs 2012-01-12 19:05:51 +01:00
ListWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MarkerWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MarkerWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Rectangle.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RegExp.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RegExp.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
RegExp_old.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
RenderWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RenderWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SimpleWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SimpleWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SliderWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SliderWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
UserInterface.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
UserInterface.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
UserInterfaceLocal.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Window.cpp Fix some compiler warnings (wrong types, superfluous checks, printf-fuckup) 2015-09-27 18:12:16 +02:00
Window.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Winvar.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Winvar.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00