• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Health/Mana Bars

Blasphemy

Member
Joined
Jan 5, 2012
Messages
230
Reaction score
19
I'm trying to make my health/mana bars looks like this... anyone can help me?
1610581506427.png
 

Evil Puncker

prolonged absenteeism
TFS Developer
Joined
May 30, 2009
Messages
7,301
Solutions
147
Reaction score
2,917
Extract Tibia.pic images.
Crop health/mana/empty bar as single graphics or how you want it.
Create function that will calculate how to crop image to percentage of current health/mana.
Done.
 
OP
Blasphemy

Blasphemy

Member
Joined
Jan 5, 2012
Messages
230
Reaction score
19
Extract Tibia.pic images.
Crop health/mana/empty bar as single graphics or how you want it.
Create function that will calculate how to crop image to percentage of current health/mana.
Done.
sounds easy, but to me it's like create a new game XD!

have you an example so I can relate functions... I don't even know how to link images with functions..
 

Ascuas Funkeln

Rakkedo Game
Joined
Apr 14, 2013
Messages
443
Solutions
24
Reaction score
199
Location
Poland
GitHub
AscuasFunkeln
I don't even know how to link images with functions..
Then
obtain images from .pic is not a challenge
U wanna challange but making request thread? :D

Study *.lua and *.otui from this mod and you will learn how to put image into game window and resize, crop etc.
Just try find something that have similar mechanic or works similar to what you want to achieve. Then work on it make changes, tests and you will get what is what etc.
Work with this mod i post here, it works the way you want to achieve.
 
OP
Blasphemy

Blasphemy

Member
Joined
Jan 5, 2012
Messages
230
Reaction score
19
I don't even know how to link images with functions..
Then
obtain images from .pic is not a challenge
U wanna challange but making request thread? :D

Study *.lua and *.otui from this mod and you will learn how to put image into game window and resize, crop etc.
Just try find something that have similar mechanic or works similar to what you want to achieve. Then work on it make changes, tests and you will get
its not the same. thanks
 
Top