SBARINFO plus HIRESTEX issues

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 plus HIRESTEX issues

Post by wildweasel »

Alright, I'm working on the fullscreen HUD for wwhc-diaz and I'm noticing some inconsistency in the way the HUD handles HIRESTEX-defined images.

I'm defining a high-res ammo icon like so, in HIRESTEX:

Code: Select all

define ISMGAMMO 16 6
And displaying it in SBARINFO thusly:

Code: Select all

IsSelected "SMG37"
	{
		drawbar "BSMGFULL", "BSMGEMPT", SMGClip, horizontal, reverse, 208, 184;
		drawimage "ISMGAMMO", 312, 180;
		drawnumber 2, STATUSFONT, black, ammo2, 307, 175;
		drawnumber 2, STATUSFONT, white, ammo2, 306, 174;
	}
This particular setup seems to completely ignore the HIRESTEX lump and displays the clip image at normal size, i.e. friggin' huge. BUT, if I change it to this instead:

Code: Select all

IsSelected "SMG37"
	{
		drawbar "BSMGFULL", "BSMGEMPT", SMGClip, horizontal, reverse, 208, 184;
		drawimage ammoicon2, 312, 180;
		drawnumber 2, STATUSFONT, black, ammo2, 307, 175;
		drawnumber 2, STATUSFONT, white, ammo2, 306, 174;
	}
The clip displays at its proper scaled size. Is this a bug, or something I'm overlooking? For the record, I'm using GZDoom SVN r101M.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: SBARINFO plus HIRESTEX issues

Post by Graf Zahl »

The HIRESTEX 'define' keyword is somewhat broken and needs some rewriting to make it work again. Currently it just inserts the scaled texture but if there's already something defined by the same graphics lump it should just change its scaling info.

I'll try to address this ASAP.
Locked

Return to “Editing (Archive)”