Page 1 of 1

Hudmessage exported to Zscript

PostPosted: Wed Dec 26, 2018 11:22 am
by Collegia Titanica
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

Re: Hudmessage exported to Zscript

PostPosted: Thu Dec 27, 2018 7:36 pm
by Marisa Kirisame
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.

Re: Hudmessage exported to Zscript

PostPosted: Fri Dec 28, 2018 3:00 am
by Graf Zahl
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.