- fixed size setup for most menus.

All of Raze's menus scale to 320x200 and to get proper mouse coordinates the definitions must reflect that as well.
Fixes #271
This commit is contained in:
Christoph Oelckers 2021-03-01 13:08:10 +01:00
parent 80404558f6
commit 2f2d0443f2
3 changed files with 5 additions and 1 deletions

View file

@ -86,6 +86,7 @@ int Printf (int printlevel, const char *format, ...) ATTRIBUTE((format(printf,2,
int Printf (const char *format, ...) ATTRIBUTE((format(printf,1,2))); int Printf (const char *format, ...) ATTRIBUTE((format(printf,1,2)));
int DPrintf (int level, const char *format, ...) ATTRIBUTE((format(printf,2,3))); int DPrintf (int level, const char *format, ...) ATTRIBUTE((format(printf,2,3)));
void I_DebugPrint(const char* cp);
void debugprintf(const char* f, ...); // Prints to the debugger's log. void debugprintf(const char* f, ...); // Prints to the debugger's log.
// flag to silence non-error output // flag to silence non-error output

View file

@ -82,6 +82,7 @@ LISTMENU "MainMenu"
LISTMENU "IngameMenu" LISTMENU "IngameMenu"
{ {
Size 320, 200
ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides) ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides)
{ {
position 160, 55 position 160, 55
@ -152,6 +153,7 @@ LISTMENU "IngameMenu"
LISTMENU "EpisodeMenu" LISTMENU "EpisodeMenu"
{ {
Size 320, 200
ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides) ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides)
{ {
position 160, 48 position 160, 48
@ -176,6 +178,7 @@ LISTMENU "EpisodeMenu"
LISTMENU "SkillMenu" LISTMENU "SkillMenu"
{ {
Size 320, 200
ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides) ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides)
{ {
position 160, 48 position 160, 48
@ -1719,6 +1722,7 @@ OptionValue "os_isanyof_values"
/* /*
LISTMENU "MultiMenu" LISTMENU "MultiMenu"
{ {
Size 320, 200
ifgame(Duke, Nam, WW2GI) ifgame(Duke, Nam, WW2GI)
{ {
position 160, 55, 135 position 160, 55, 135

View file

@ -246,7 +246,6 @@ class ListMenu : Menu
y = int((y - fy) * h / fh); y = int((y - fy) * h / fh);
} }
if (mFocusControl != NULL) if (mFocusControl != NULL)
{ {
mFocusControl.MouseEvent(type, x, y); mFocusControl.MouseEvent(type, x, y);