Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
manups4e opened this issue Jul 9, 2019 · 3 comments
Closed

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

manups4e opened this issue Jul 9, 2019 · 3 comments

Comments

@manups4e
Copy link

manups4e commented Jul 9, 2019

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
Copy link
Owner

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
Copy link
Author

manups4e commented Jul 9, 2019

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

@TomGrobbe
Copy link
Owner

All good. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants