Problems whi ZScript Status Bar

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
GGianpy
Posts: 57
Joined: Wed Mar 11, 2020 3:09 pm
Graphics Processor: Not Listed
Location: Italy

Problems whi ZScript Status Bar

Post by GGianpy »

Good afternoon,
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);
	}
Also why I can't ask this question in the topic "ZScript: Status Bar Questions", why it's blocked?.
GGianpy
Posts: 57
Joined: Wed Mar 11, 2020 3:09 pm
Graphics Processor: Not Listed
Location: Italy

Re: Problems whi ZScript Status Bar

Post by GGianpy »

I solved.
can someone still answer why I can't write in some topics?
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Problems whi ZScript Status Bar

Post by Blue Shadow »

GGianpy wrote:can someone still answer why I can't write in some topics?
If a topic is locked then obviously you can't post in it.

As for why that topic you mentioned in your post above is locked, see here.
GGianpy
Posts: 57
Joined: Wed Mar 11, 2020 3:09 pm
Graphics Processor: Not Listed
Location: Italy

Re: Problems whi ZScript Status Bar

Post by GGianpy »

ok,
thank you.
Post Reply

Return to “Scripting”