Hudmessage exported to Zscript

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Hudmessage exported to Zscript

Re: Hudmessage exported to Zscript

by Graf Zahl » Fri Dec 28, 2018 2: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.

Re: Hudmessage exported to Zscript

by Marisa the Magician » Thu Dec 27, 2018 6: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.

Hudmessage exported to Zscript

by Collegia Titanica » Wed Dec 26, 2018 10: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 all

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

Top