for the menudef

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Darklord328
Posts: 59
Joined: Mon Sep 17, 2012 6:11 pm
Preferred Pronouns: He/Him

for the menudef

Post by Darklord328 »

i am wondering if there is a way to put in a custom message in menudef, as in for an ex: "You can set the difficulty from medium to hard" <- EX:

if there is any possible way to do this, then its greatly appreciated.
Jarewill
 
 
Posts: 1644
Joined: Sun Jul 21, 2019 8:54 am

Re: for the menudef

Post by Jarewill »

In MENUDEF you can do it using the StaticText command:

Code: Select all

StaticText "Text", (Optional color code)
StaticText "Difficulty setting here", 1
Darklord328
Posts: 59
Joined: Mon Sep 17, 2012 6:11 pm
Preferred Pronouns: He/Him

Re: for the menudef

Post by Darklord328 »

to actually confirm it, if you know what it is. like if i were to put in an option, and it'll confirm saying the custom message ***Do you really want to do this*** and its yes or no,

i would like to change that instead from that to one of the custom ones. if you know.
Jarewill
 
 
Posts: 1644
Joined: Sun Jul 21, 2019 8:54 am

Re: for the menudef

Post by Jarewill »

For that you will want to use SafeCommand:
Wiki wrote:SafeCommand "<label>", "<command>" [, "<prompt>"]
Calls a console command with an additional confirmation. Optionally, a custom prompt can be specified.
I recommend looking through the wiki page for MENUDEF for more information.
Darklord328
Posts: 59
Joined: Mon Sep 17, 2012 6:11 pm
Preferred Pronouns: He/Him

Re: for the menudef

Post by Darklord328 »

man, everytime something good happens, it always fails lol, and im using zandronum to test out the mod of mine. im guessing some of the codings are missing from gzdoom to zandronum. its alright.

Return to “General”