Jump to content
Alloder.pro  about Allods with love 😱
Search In
  • More options...
Find results that contain...
Find results in...

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Digest April

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

multiple colors in one textview?


Guest Carnifex
 Share

Recommended Posts

Guest Carnifex

it is possible to use multiple colors in one textview? (because ingame tooltips use it)

If yes, why is this not working:

Code:
<header alignx = "center" fontsize="13"><rs class="CLASS0"><tip_golden>TEXT1</tip_golden></rs>

<rs class="CLASS1"><tip_golden><r name="DATA"/></tip_golden></rs>

<rs class="CLASS0"><tip_golden>TEXT2</tip_golden></tip_golden></rs></header>

Link to comment
Share on other sites

Yep, it is possible.

Code:
<header alignx="center" fontsize="15" outline="1">

<rs class="class"><p fontsize="17"><r name="name"/></p><br />

<tip_golden><r name="RN"/>: <r name="rank"/><br /></tip_golden>

<tip_white><r name="LN"/>: <r name="level"/><br />

<r name="EN"/>: <r name="Exp"/>/<r name="LExp"/><br /></tip_white>

<tip_green><r name="DHN"/>: <r name="Bonus"/>x<br />

<r name="SN"/>: <r name="Stat"/><br /></tip_green>

<tip_blue><r name="TN"/> <r name="Time"/><br /></tip_blue>

</rs></header>

That's the Text for my PatronTT. Mine is called on with <multiline>true</multiline>.

You have too many /tip_goldens.

Link to comment
Share on other sites

Guest Carnifex

you mean:

Code:
<header alignx = "center" fontsize="13">

<p color="COLOR1">TEXT1</p>

<p color="COLOR2"><r name="DATA"/></p>

<p color="COLOR3">TEXT2</p></header>

and then how to change the color, there is no widget:SetColoVal("COLOR1","tip_green")

Link to comment
Share on other sites

Oh no, I meant <p color="0xFFFFFFFF">. And why do you still have that extra /tip_golden?

What is your ultimate goal with this text view? A single line variabled multi-color text view where the text can have multiple different colors called on by the LUA?

Link to comment
Share on other sites

Guest Carnifex
Quote:
Oh no, I meant <p color="0xFFFFFFFF">.

but i can't change this at runtime

Quote:
And why do you still have that extra /tip_golden?

oh, i've forgotten to remove this

Quote:
A single line variabled multi-color text view where the text can have multiple different colors called on by the LUA?

exactly this^^
Link to comment
Share on other sites

Your previous code worked fine with the removal of the extra </tip_golden>.

Example of functional code:

Code:
<header alignx="center" fontsize="14" outline="1"><rs class="class"><r name="value"/></rs><rs class="class1">Blah</rs></header>
Link to comment
Share on other sites

Guest Carnifex

yes it works as you see on my recent update, but now idea why deflaut Color doen't work with multiple formats

btw: silly german autocorrection^^

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use