SBARINFO Image Too Large

Discuss all aspects related to modding Zandronum here.
Post Reply
false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

SBARINFO Image Too Large

#1

Post by false_chicken » Sat Dec 27, 2014 3:16 pm

I am trying to use DrawSwitchableImage in SBARINFO to conditionally draw a .png on the screen but the image looks about six times larger than the actual size of the image. I was looking at the ZDoom wiki and it appears that there is no option to scale an image when using DrawSwitchableImage only DrawImage. Is there any solution to this?

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: SBARINFO Image Too Large

#2

Post by Ænima » Sat Dec 27, 2014 9:38 pm

Make a copy of the image. Then scale it down until it's appropriate size and make your SBARINFO use that one. Then remap the original image to it via TEXTURES, HIRESTEX, or the "HiRes" folder in your PK3.
Last edited by Ænima on Sat Dec 27, 2014 9:39 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

RE: SBARINFO Image Too Large

#3

Post by false_chicken » Sat Dec 27, 2014 9:42 pm

I seem to have fixed it. I had to scale the image to a really small quite crappy looking size at first to make it fit. Afterwords I found that I needed to add the higher res version into HIRESTEX.
Ænima wrote: Make a copy of the image. Then scale it down until it's appropriate size and make your SBARINFO use that one. Then remap the original image to it via TEXTURES, HIRESTEX, or the "HiRes" folder in your PK3.
Thanks! That's basically what I seem to have independently figured out lol.
Last edited by false_chicken on Sat Dec 27, 2014 10:01 pm, edited 1 time in total.

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: SBARINFO Image Too Large

#4

Post by Ænima » Sat Dec 27, 2014 10:04 pm

Ah well. You're welcome anyways. :p
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

RE: SBARINFO Image Too Large

#5

Post by false_chicken » Sat Dec 27, 2014 10:33 pm

The help is definitely greatly appreciated. :)

Post Reply