TomGrobbe / MenuAPI

FiveM C# Menu API. Designed specifically as a replacement of NativeUI for vMenu. Full safezone scaling supported, both left and right aligned menus supported.
https://docs.vespura.com/mapi
62 stars 45 forks source link

Setting a menu ("", description) hides HeadTextures #14

Closed manups4e closed 5 years ago

manups4e commented 5 years ago

if i create a menu like

Menu MenuVariable = new Menu("", "this is a description");
MenuVariable.HeaderTexture = new KeyValuePair<string, string>("texture", "texture");

if the title is set to "" (empty) the HeaderTexture is hidden... to show the HeaderTexture i have to use an empty char (space bar key) like " "

TomGrobbe commented 5 years ago

Yeah, this is because by default if you have no title, it will only show the subtitle (if present). To allow you to create similar menus to like the GTA:O apartment entrance options menu.

Like you said, just put an empty character like a space, or something like ~s~ to make an empty title and still have the custom header be visible.

manups4e commented 5 years ago

Ooook i thought it could have been a bug so I preferred to warn you

TomGrobbe commented 5 years ago

All good. :)