[ZScript] Tips for menus
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Tips for menus
Can you PM me your mod so I can take a look at what's wrong?
-
-
- Posts: 26539
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: [ZScript] Tips for menus
Sorry for the bumpage.
I'm trying to adjust this so that the tips appear in the centre-bottom of the screen (and centre justified) rather than being right-bottom aligned. However, my attempts have failed.
Is it possible? If so, can someone show me how?
I'm trying to adjust this so that the tips appear in the centre-bottom of the screen (and centre justified) rather than being right-bottom aligned. However, my attempts have failed.
Is it possible? If so, can someone show me how?
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Tips for menus
In tp_tips.zs file, class tp_ListMenuNote, function Drawer, inside the for loop, change the line
to
Code: Select all
double x = Screen.GetWidth() - MARGIN - lines.StringWidth(i) * CleanXFac_1;
Code: Select all
double x = (Screen.GetWidth() - lines.StringWidth(i) * CleanXFac_1) / 2;
-
-
- Posts: 26539
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: [ZScript] Tips for menus
Perfect! Thank you kindly.
-
- Posts: 197
- Joined: Fri Sep 11, 2020 8:09 pm
- Location: United States
Re: [ZScript] Tips for menus
So when using two mods that utilize Tips for menus, GZdoom crashes, giving the message "Cvarinfo line X: cvar 'tip_show_notes' already exist". Is there a way to fix this?
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
-
- Posts: 197
- Joined: Fri Sep 11, 2020 8:09 pm
- Location: United States
Re: [ZScript] Tips for menus
Ok. Cool. Fixed it. Thank you.One or both of the mods didn't do this.