[No] Hudmessage exported to Zscript

Moderator: GZDoom Developers

Hudmessage exported to Zscript

Postby Collegia Titanica » Wed Dec 26, 2018 11:22 am

Basically what phantom asked in thread below:

Should be rather simple, allowing the display of images on the screen, with fadetime and/or delay/replacement so that something like:

Code: Select allExpand view
SetHudSize(400,250,1);

    delay(1);
    setfont("GBLD1");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD2");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD3");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD4");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD5");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD6");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD7");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD8");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD9");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD10");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    setfont("GBLD11");
    hudmessage(s:"A"; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 73.1, 71.1, 0.3);
    delay(4);
    }



Can easily be displayed
viewtopic.php?f=3&t=58291
Collegia Titanica
 
Joined: 25 Jan 2018
Discord: 2834

Re: Hudmessage exported to Zscript

Postby Marisa Kirisame » Thu Dec 27, 2018 7:36 pm

I would say this deserves the [DIY] tag, considering a barebones HudMessageBase class is available to ZScript, which allows for pretty much anything drawn over/below the hud and whatnot without needing RenderOverlay or a custom status bar.

I've personally even attempted to replicate ACS HudMessage, here. Obviously that convoluted queue system is necessary if one wants to create these messages from play scope.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Hudmessage exported to Zscript

Postby Graf Zahl » Fri Dec 28, 2018 3:00 am

The predefined classes so much depend on the (bad) ACS implementation that they are not suitable for export. And even if they were, the bigger issue would still be that they are on the UI side, requiring some event handler glue.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest