I recently switched from Sbarinfo to zscript but i am having several problems:
how do i use fullscreenOffsets?
I want to have the player's life amount drawn on the top left of the screen, but if I switch from 4:3 to 16:9 the number is not on the top left.
with sbarinfo this is easier, why with zscript it is a complex thing?
Code: Select all
override void Draw(int state, double TicFrac)
{
Super.Draw (state, TicFrac);
if (state == HUD_Fullscreen)
{
Draw_Ammo();
}
}
//////////////////////////////////////////////////////////////////////////////////////// HUD
void Draw_Ammo()
{
DrawString(Font_Small, FormatNumber(CPlayer.health, 3), (pos, 0), DI_TEXT_ALIGN_LEFT|DI_NOSHADOW);
}