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 


How to make brush_setColor panel color?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sun Jun 23, 2013 7:51 pm    Post subject: How to make brush_setColor panel color? Reply with quote

Hey,
How can I make the brush_setColor as much my panel color?
doing this:
Code:
brush_setColor(brush, x00F1F1F0)

Makes it go black, although if you try to change the panel color it'll won't change much. (almost the same).

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jun 24, 2013 4:22 am    Post subject: Reply with quote

brush_setColor doesn't affect panel color at all for me
Or are you drawing to it with the canvas ? (more code would help)

Code:

f=createForm(true)
p=createPanel(f)
pc=customControl_getCanvas(p)
brush=canvas_getBrush(pc)



anyhow, brush_setColor(brush, x00F1F1F0) sets the color of brush to 0, because x00F1F1F0 is an undefined variable (nil)
use 0x00f1f1f0 instead


Also, if you just wish to change the color do:
Code:

setProperty(p, "Color", 0x00ff00ff)


or in 6.3:
Code:

p.Color=0x00ff00ff


tip: To get rid of the borders, use panel_setBevelOuter(p, 0)

_________________
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
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Jun 24, 2013 2:53 pm    Post subject: Reply with quote

Oh yeah, how did I forgot the 0.
Thanks!

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
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