Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Can CE's LUA output log window display colored text ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
peddroelm
Advanced Cheater
Reputation: 0

Joined: 03 Oct 2014
Posts: 84

PostPosted: Mon May 27, 2019 2:06 pm    Post subject: Can CE's LUA output log window display colored text ? Reply with quote

title
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon May 27, 2019 9:20 pm    Post subject: Reply with quote

Which one you mean 'log window' ?
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
peddroelm
Advanced Cheater
Reputation: 0

Joined: 03 Oct 2014
Posts: 84

PostPosted: Tue May 28, 2019 6:40 am    Post subject: Reply with quote

I'm using CE to add some sort of combat damage logging to various games.
The log output is done in the LUA Engine window (the output section) . See print screen.



I would like to be able color code crits / damage numbers // damage types etc ..
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Tue May 28, 2019 8:56 am    Post subject: This post has 1 review(s) Reply with quote

Try this for example:

Code:
frm = getLuaEngine()
frm.GroupBox1.Caption = 'Hey you..This is you meant as "Window Log"'
log = frm.mOutput
log.Color = '0x000000'
log.Font.Size = 16
log.Font.Color = '1030655'
frm.show()

for x=1,10 do
 print('Hey..I changed Lua engine text output color')
end



Capture12.JPG
 Description:
Lua Engine Output
 Filesize:  50.13 KB
 Viewed:  3446 Time(s)

Capture12.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
peddroelm
Advanced Cheater
Reputation: 0

Joined: 03 Oct 2014
Posts: 84

PostPosted: Tue May 28, 2019 11:26 am    Post subject: Reply with quote

ok that seems like a step in the right direction - but doesn't that changes the color of ALL the text on the window at once ?

I want to be able to use different colors for different 'words' . values.

Normal color Normal color Normal color REDTEXT Normal color Normal color Normal color BLUETEXT ... GREENTEXT Normal color Normal color ... etc
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Tue May 28, 2019 11:36 am    Post subject: Reply with quote

no, ce doesn't have a richedit style editor
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
peddroelm
Advanced Cheater
Reputation: 0

Joined: 03 Oct 2014
Posts: 84

PostPosted: Tue May 28, 2019 12:26 pm    Post subject: Reply with quote

I was thinking something like/maybe using this

https://github.com/randrews/color

off topic - why did you have to name it CHEAT engine ? Smile

"
[9:19 PM] Artist: How do I get your tool?
[9:19 PM] peddroelm: that link has the download link in the first post of the thread
[9:19 PM] peddroelm: its a script for cheat engine
[9:19 PM] peddroelm: if you haven't used cheat engine ..you need to get that first
[9:20 PM] Artist: oh
[9:20 PM] Artist: nope
[9:20 PM] peddroelm: very uninspired naming choice by the creator
[9:21 PM] peddroelm: cheat engine is a an open source peer reviewed memory editor/debugger
[9:22 PM] peddroelm: so as safe as things can be safe on the internet
[9:22 PM] peddroelm: and it doesn't 'Cheat' by itself its up to you what you use it for
...
silence
"
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Tue May 28, 2019 1:19 pm    Post subject: Reply with quote

Quote:

why did you have to name it CHEAT engine ?

because rapist engine , genocide engine and heroine engine didn't sound good

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Tue May 28, 2019 1:23 pm    Post subject: Reply with quote

peddroelm wrote:
I was thinking something like/maybe using this

https://github.com/randrews/color

off topic - why did you have to name it CHEAT engine ? Smile


That color.lua use for Lua terminal (ANSI) or on screen like command prompt.

off topic - why did you ask for? Razz

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites