Forum

> > CS2D > Scripts > [REQ]How do i change the HUDImage?[TIBIA]
Forums overviewCS2D overview Scripts overviewLog in to reply

English [REQ]How do i change the HUDImage?[TIBIA]

4 replies
To the start Previous 1 Next To the start

old [REQ]How do i change the HUDImage?[TIBIA]

Runnin
User Off Offline

Quote
Hello member,

I'm wondering how to change the HUDImage of my tibia server.
The current HUDImage is the 1x1.png image by Weiwen.
Image of it: IMG:https://i.imgur.com/6T5uz.png


The code of the hudimage is:
1
2
3
HUDImage = image('gfx/weiwen/1x1.png', 565, 407+#CONFIG.STATS*CONFIG.PIXELS/2, 2)
imagescale(HUDImage, 130,CONFIG.PIXELS+#CONFIG.STATS*CONFIG.PIXELS)
imagealpha(HUDImage, 0.5)

I want to change the transparant background(the 1x1 image) to this background:
IMG:https://i.imgur.com/NCRDy.png

I tried to change the path:
gfx/weiwen/1x1.png to gfx/hud.png
but it is not showing up.
Please help me.

PS: I'm also wondering if i can move the bullets/mags left(righthand corner) and the money amount, so it doesnt be underneath the HUDImage.

Thanks in advance!

old Re: [REQ]How do i change the HUDImage?[TIBIA]

EngiN33R
Moderator Off Offline

Quote
Well, because the image in weiwen's code is 1x1 pixels, it is scaled, as can be seen on line 2 of your code. So, you should remove that line and then change the path to 1x1.png to your image.

old Re: [REQ]How do i change the HUDImage?[TIBIA]

Yates
Reviewer Off Offline

Quote
user EngiN33R has written
Well, because the image in weiwen's code is 1x1 pixels, it is scaled, as can be seen on line 2 of your code. So, you should remove that line and then change the path to your image.

Don't make me quote it again.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview