Spoiler:However, when I start it up, I get the following error:
"Can't play function DrawHealthBar from ui context"
"Can't call ui function DrawImage from play context (not readable)"
Moderator: GZDoom Developers
Spoiler:However, when I start it up, I get the following error:
Here's all the coderamon.dexter wrote: ↑Sat May 27, 2023 3:19 am Show your whole statusbar code. It's hard to decide anything from these snippets.
Spoiler:
It's really working, thanksJarewill wrote: ↑Sat May 27, 2023 5:52 am That error appears because you didn't specify a ZScript version.
To fix it, add this line to the beginning of your ZScript file: version "4.0", replacing 4.0 with your target GZDoom version.
Also if you aren't planning on making another class inheriting from your HUD and overriding your functions, you don't need to make DrawHealthBar a virtual function.