Proper support for size property in SkillMenu

Fri Jun 18, 2021 12:47 pm

Currently SkillMenu in MENUDEF, regardless of the properties and values you use, will invariably fall back to the text-only SMALLFONT version if anything in your SkillMenu exceeds the 320x200 box.

This restriction makes no sense when the size property is used. Currently you CAN set size to a large value (like 1920, 1080), but if try to use a hi-res font and place that font in the middle of the screen—which requires setting both Position and LineSpacing to high values than 320x200—it'll fall back to the text-only version.

For example, this definition is perfectly valid:
Code:
DEFAULTLISTMENU
{
   Font "TimesMenu", "Untranslated", "DarkRed" //a relatively hi-res Times font
   Selector "", 0,0
}

ListMenu "SkillMenu" {
   Font "TimesMenu", "Untranslated", "DarkRed"
   size 1920, 1080
   StaticPatchCentered 960, 0, "P_MENU"
}

In this example the menu uses a 1920x1080 image (P_MENU), and that image is correctly drawn and scaled. But as soon as I try adding LineSpacing 92—which is required for the font I'm using—the menu switches back to a text-only version.

This text-only fallback should respect the size value.

Re: Proper support for size property in SkillMenu

Sat Jun 19, 2021 6:07 am

What happens if you put a
Code:
 Size Clean
at the end of ListMenu ?

Re: Proper support for size property in SkillMenu

Mon Jun 28, 2021 9:22 am

vsonnier wrote:What happens if you put a
Code:
 Size Clean
at the end of ListMenu ?


Nothing changes. It still switches to text-only menu if there are any objects that don't fit in the 320x200 box.