ZScript Menu

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
Post Reply
Soosisya
Posts: 73
Joined: Sat Oct 31, 2020 9:26 am

ZScript Menu

Post by Soosisya »

I've decided to convert my MENUDEF into ZScript menu. But I have no idea how's it done and where to start from. Do you know any mods where I can find custom ZScript menus? Maybe someone can just show me an example code of the menu?
User avatar
m8f
 
 
Posts: 1467
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)
Contact:

Re: ZScript Menu

Post by m8f »

Doom Delta has ZScript menus.

It doesn't launch because of an error:

Code: Select all

Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
but you can work around it by commenting out the line 460 in zscript/delta/hud_base.zsc. Doesn't seem to break anything.
Soosisya
Posts: 73
Joined: Sat Oct 31, 2020 9:26 am

Re: ZScript Menu

Post by Soosisya »

m8f wrote:Doom Delta has ZScript menus.

It doesn't launch because of an error:

Code: Select all

Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
but you can work around it by commenting out the line 460 in zscript/delta/hud_base.zsc. Doesn't seem to break anything.
I've looked inside this mod... OMG! I still don't know where to start from. Maybe you know something more simple?
User avatar
m8f
 
 
Posts: 1467
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)
Contact:

Re: ZScript Menu

Post by m8f »

My script library Lazy Points has a ZScript menu that contains top score points list. The menu is filled dynamically.
Menu-related files:
- menudef;
- zc_Top.zs: menu definition code.

I don't know if that library is relevant to you because I don't know what in particular you want to achieve with ZScript menus.
Post Reply

Return to “Scripting”