Why HUDMSG_FADEIN dont exist?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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.

Why HUDMSG_FADEIN dont exist?

Postby GGianpy » Sun Oct 18, 2020 7:26 am

good afternoon,
i am creating a function where you can enter some text as strings and show them on screen.
I want to make the strings have a fade in animation and stay on screen forever.

But if I put 0 on the hudmessage time with the HUDMSG_FADEINOUT flag it disappears instantly.
I saw on the wiki but why does a HUDMSG_FADEIN flag not exist? it would be really useful!

Code: Select allExpand view
function bool Gui_Dialog(str dialogname, str dialogtext)


SetFont(ChoiceDialog_NameFont); // Dialog Name
HudMessage(l:dialogname; HUDMSG_PLAIN | HUDMSG_ALPHA , Gui_Dialog_TextID + 1, CR_UNTRANSLATED, 320.4, getcvar("Gui_DialogYPos") + 0.2, 0, getcvar("Gui_DialogAlpa"));
SetFont(ChoiceDialog_TextFont); // Dialog Text
HudMessage(l:dialogtext; HUDMSG_PLAIN | HUDMSG_ALPHA , Gui_Dialog_TextID + 2, CR_UNTRANSLATED, 320.4, getcvar("Gui_DialogYPos") + 8.1, 0, getcvar("Gui_DialogAlpa"));


Return True;

i tried to create a separate acs script which keeps the writing on the screen but functions cannot pass strings to scripts.
User avatar
Joined: 11 Mar 2020
Location: Italy
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Not Listed

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests