[Added] Get map title from level number or name

Moderator: GZDoom Developers

Get map title from level number or name

Postby Marisa Kirisame » Thu Feb 06, 2020 7:32 pm

Basically need this for pretty-printing where exit lines take the player in a gameplay mod. Precisely what I require is the ability to fetch the full title of the map it's taking you to, whether it's an Exit_Normal/Exit_Secret line, for which you can only get the map names (not titles) from Level, or it's a Teleport_NewMap line that just gives you a levelnum, and there's nothing you can get from that.

If possible, having access to FindLevelInfo()/FindLevelByNum() would be fine too, if there's a way to ensure that the returned struct is read-only.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Get map title from level number or name

Postby Marisa Kirisame » Thu May 20, 2021 7:51 am

This should be closed as added, didn't even know I've been requesting this for so long.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests