Yoko
http://forum.yoko.com.ua/

How get color of text in journal?
http://forum.yoko.com.ua/viewtopic.php?f=3&t=15807
Page 1 of 1

Author:  mord [ 2010-07-14 22:31:30 ]
Post subject:  How get color of text in journal?

Hello, please tell me how i can get color of text in journal.

Author:  Mirage [ 2010-07-15 13:21:34 ]
Post subject:  Re: How get color of text in journal?

color = uo.GetColor(uo.JournalSerial(uo.InJournal("")-1)) ;последняя фраза

color = uo.GetColor(uo.JournalSerial(uo.InJournal("какаято фраза")))

Author:  mord [ 2010-07-15 16:58:21 ]
Post subject:  Re: How get color of text in journal?

Thank you.

Author:  mord [ 2010-07-15 21:38:57 ]
Post subject:  Re: How get color of text in journal?

It returns color of object which generated the text instead of color of text :cry:

Author:  Mirage [ 2010-07-15 23:18:48 ]
Post subject:  Re: How get color of text in journal?

Code:
sub zzzzzzzz()
var i
uo.textclear()
for i=10 to 0 step -1
uo.textprint(uo.JournalSerial(i)+"| "+uo.JournalColor(i)+"| "+uo.Journal(i))
next
uo.textopen()
end sub
:mrgreen:

Author:  mord [ 2010-07-16 02:07:29 ]
Post subject:  Re: How get color of text in journal?

Uo.JournalColor() is exactly i looked for. Thank You :)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/