SBARINFO: FullscreenOffsets doesn't work?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

SBARINFO: FullscreenOffsets doesn't work?

Post by wildweasel »

I'm making a simple SBARINFO here that displays the health bar at the bottom-left corner of the screen. This code is what I'm using:

Code: Select all

Height 1;

StatusBar Fullscreen, Fullscreenoffsets
{
	DrawBar "HELTHBAR", "", Health, Horizontal, 0, -24;
}
But no amount of coordinate tweaking will display the healthbar image on screen. At all. Am I doing something wrong, or is this not in a development version yet? I'm using ZDoom SVN R1209 as downloaded from the DRDTeam SVN page.
Blzut3
 
 
Posts: 3204
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: SBARINFO: FullscreenOffsets doesn't work?

Post by Blzut3 »

This is what my bar looks like.

Code: Select all

statusbar fullscreen, fullscreenoffsets
{
	//health
	drawimage "MEDIA0", 20, -2, centerbottom;
	drawnumber 3, HUDFONT_DOOM, untranslated, health, drawshadow, 82, -20;

	//armor
	drawimage armoricon, 20, -24, centerbottom;
	drawnumber 3, HUDFONT_DOOM, untranslated, armor, drawshadow, whennotzero, 82, -39;

	//ammo
	drawimage ammoicon1, -14, -4, centerbottom;
	drawnumber 3, HUDFONT_DOOM, untranslated, ammo1, drawshadow, -25, -20;

	//secondary ammo and inventory
	usessecondaryammo
	{
		drawimage ammoicon2, -14, -26, centerbottom;
		drawnumber 3, HUDFONT_DOOM, untranslated, ammo2, drawshadow, -25, -39;
	}
	//no secondary ammo
	usessecondaryammo not
	{
	}

	gamemode deathmatch
	{
		drawnumber 2, HUDFONT_DOOM, untranslated, frags, drawshadow, -3, 1;
	}
	gamemode singleplayer, cooperative, teamgame
	{
		drawkeybar 6, vertical, reverserows, auto, -10, 2, 0, 3, auto;
	}
}
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: SBARINFO: FullscreenOffsets doesn't work?

Post by wildweasel »

I think I've pinpointed the issue here: DrawBar does not work with FullscreenOffsets. Your code works fine, but attempting to add a DrawBar causes the bar to never appear on screen, no matter what coordinates are used.
Locked

Return to “Editing (Archive)”