Welcome,
Guest
. Please
login
or
register
.
March 27, 2025, 09:22:37 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
Other Packages
»
HUDText : Is that able to classify int by color?
« previous
next »
Print
Pages: [
1
]
Author
Topic: HUDText : Is that able to classify int by color? (Read 3790 times)
alexlange
Newbie
Thank You
-Given: 5
-Receive: 0
Posts: 34
HUDText : Is that able to classify int by color?
«
on:
January 23, 2013, 05:07:13 AM »
Hi
I'm using HUDText.Add() and want it shows physical damage as red text and skill damage as yellow text
So I code like this
//int damage
if
(
physical
)
HUDText
.
Add
(
damage, color
.
red
,0f
)
;
else
//skill
HUDText
.
ADD
(
damage,color
.
yellow
,0f
)
And I find if there's a red text still on screen, next skill damage will just add on it, but not create a yellow text.
Do I have to convert damage from int to string to avoid this?
Thank you!
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: HUDText : Is that able to classify int by color?
«
Reply #1 on:
January 23, 2013, 08:35:10 AM »
Sure, you can change it to be like that. As I recall I made a distinction with positive and negative damage types (damage and healing), but nothing is stopping you from creating other distinctions.
Logged
alexlange
Newbie
Thank You
-Given: 5
-Receive: 0
Posts: 34
Re: HUDText : Is that able to classify int by color?
«
Reply #2 on:
January 25, 2013, 09:12:21 PM »
Thank You
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
Other Packages
»
HUDText : Is that able to classify int by color?