ZScript Menu
					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!)
	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!)
ZScript Menu
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?
			
			
									
						
										
						- m8f
-   
- Posts: 1467
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Location: Siberia (UTC+7)
- Contact:
Re: ZScript Menu
Doom Delta has ZScript menus.
It doesn't launch because of an error:
but you can work around it by commenting out the line 460 in zscript/delta/hud_base.zsc. Doesn't seem to break anything.
			
			
									
						
										
						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'Re: ZScript Menu
I've looked inside this mod... OMG! I still don't know where to start from. Maybe you know something more simple?m8f wrote:Doom Delta has ZScript menus.
It doesn't launch because of an error:but you can work around it by commenting out the line 460 in zscript/delta/hud_base.zsc. Doesn't seem to break anything.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'
- m8f
-   
- Posts: 1467
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Location: Siberia (UTC+7)
- Contact:
Re: ZScript Menu
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.
			
			
									
						
										
						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.
