Forum

> > CS2D > Scripts > [REQ]How do i change the HUDImage?[TIBIA]
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

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

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

Runnin
User Off Offline

Zitieren
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!

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

EngiN33R
Moderator Off Offline

Zitieren
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.

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

Yates
Reviewer Off Offline

Zitieren
user EngiN33R hat geschrieben
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht