dhewm3/neo/ui
Daniel Gibson cd0a11f974 Allow scaling non-menu WIN_DESKTOP GUIs to 4:3
WIN_DESKTOP means that this can currently only be set for the top-level
window in a .gui (all its subwindows/widgets will be scaled implicitly)

There are two ways to make a GUI use this:
1. in the .gui add a window variable "scaleto43 1", like
    windowDef Desktop {
	rect	0 ,0 ,640 ,480
	nocursor	1
	float	talk 	0

	scaleto43 1

	// .. etc rest of windowDef

2. When creating the GUI from C++ code, you can afterwards make the
   UserInterface scale to 4:3 like this:
    idUserInterface* ui = Whatever(); // create it
    ui->SetStateBool("scaleto43", true);
    ui->StateChanged(gameLocal.time);
   Both lines are important!

As you can see in my changes to Player.cpp, my primary usecase for this
is the cursor/crosshair GUI.
2018-11-05 04:33:57 +01: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 Allow injecting video mode list into Mod menus 2018-10-21 23:56:38 +02:00
ChoiceWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeviceContext.cpp Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +01:00
DeviceContext.h Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +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 Some spelling error fixes found during Debian build 2018-06-30 00:08:45 -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 Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +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 Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +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 Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +01:00
Window.h Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +01:00
Winvar.cpp Fix new[]/delete missmatches and memory leaks found by clang's ASAN 2015-12-17 18:11:03 +01:00
Winvar.h Fix new[]/delete missmatches and memory leaks found by clang's ASAN 2015-12-17 18:11:03 +01:00