Replace Class Selection Menu

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
JossTheFox
Posts: 26
Joined: Sat Jun 19, 2021 6:35 am
Preferred Pronouns: She/Her

Replace Class Selection Menu

Post by JossTheFox »

Hello! It's been a while since I've posted here, but I need your help again.

As I may have already said, I'm making a mod with several playerclasses in it: nine, in fact.
As you probably already know, when you have under seven classes available, the menu looks like this:

But when you have seven or more classes available, it looks like this:

(The player class names have been changed because I don't wanna publicly reveal what I'm working on yet, and they'd be a dead giveaway.)
I don't really like the second menu, as it just looks worse in my opinion and always has the random option, even though I don't want that.
What I'm wondering is:

Is it possible to change the second menu to resemble the first? Preferably, I'd like it to be the same as the first, except it would have a list that you can scroll through.
I know it's not possible via DECORATE (which sucks, as I'm not familiar with ZScript at all), but is it possible with ZScript? And, if so, could someone give me a guide or example on how to do this?
Thanks in advance! :)

EDIT: I was using the wrong links! Images should now be showing properly.
User avatar
ramon.dexter
Posts: 1558
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Replace Class Selection Menu

Post by ramon.dexter »

I think this is completely possible through Menudef.

https://zdoom.org/wiki/MENUDEF
JossTheFox
Posts: 26
Joined: Sat Jun 19, 2021 6:35 am
Preferred Pronouns: She/Her

Re: Replace Class Selection Menu

Post by JossTheFox »

ramon.dexter wrote: Fri Jun 09, 2023 9:51 am I think this is completely possible through Menudef.
I don't think it is? I've already looked at the Menudef in gzdoom.pk3 and on the wiki and (for the player class menu, at least) most of it appears to be filled in while the game is running. All I could really do in Menudef is change static elements of the menu, like the "choose character" text.

EDIT: I'm wrong, it is possible! You can add "ForceList" to the menu to prevent it from changing. Thank you! :3

Return to “Scripting”