Replicating HudMessage in ZScript
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!)
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!)
-
- Posts: 2274
- Joined: Tue Jun 30, 2009 1:31 pm
Replicating HudMessage in ZScript
How would I go about replicating [wiki]HudMessage[/wiki] in ZScript? I want to be able to cleanly print, scale and possibly move around text/graphics with similar flexibility to ACS. Additive rendering/opacity would be a nice bonus, too.
-
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Re: Replicating HudMessage in ZScript
Sorry for bumping without an answer, but I really want to know this too.
Right now the following are prohibitively difficult in ZS as far as I've seen, that are fairly straightforward in ACS:
1. Drawing stuff on an arbitrary player's screen at an arbitrary time, without replacing the player or the statusbar or constantly polling for the presence of the thing in question
2. Drawing stuff for a certain amount of time (a lot less problematic than #1 since you can just create a counter, but throw in some effects like typing text onto the screen and things get exponentially complex)
3. Stretching, placing and moving stuff around in a way that scales in a sane manner for varying aspect ratios
4. Centering something on the screen that isn't a statusbar element
Right now the following are prohibitively difficult in ZS as far as I've seen, that are fairly straightforward in ACS:
1. Drawing stuff on an arbitrary player's screen at an arbitrary time, without replacing the player or the statusbar or constantly polling for the presence of the thing in question
2. Drawing stuff for a certain amount of time (a lot less problematic than #1 since you can just create a counter, but throw in some effects like typing text onto the screen and things get exponentially complex)
3. Stretching, placing and moving stuff around in a way that scales in a sane manner for varying aspect ratios
4. Centering something on the screen that isn't a statusbar element