Get map title from level number or name

Moderator: GZDoom Developers

Post Reply
User avatar
Marisa the Magician
Banned User
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Get map title from level number or name

Post by Marisa the Magician »

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 the Magician
Banned User
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Get map title from level number or name

Post by Marisa the Magician »

This should be closed as added, didn't even know I've been requesting this for so long.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”