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 


background image

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
___obmib___
How do I cheat?
Reputation: 0

Joined: 03 Aug 2015
Posts: 5
Location: qatar

PostPosted: Tue Aug 04, 2015 2:16 pm    Post subject: background image Reply with quote

hello everyone need some help to insert a background image on this trainer.ive been searching for some thread and trying to follow some tutorials but still i cant insert an image....thanks in advance


ac.jpg
 Description:
 Filesize:  36.15 KB
 Viewed:  4185 Time(s)

ac.jpg


Back to top
View user's profile Send private message
JirkaCZS
How do I cheat?
Reputation: 0

Joined: 18 Jul 2015
Posts: 8

PostPosted: Wed Aug 05, 2015 12:33 pm    Post subject: Reply with quote

If you want background image you can add in form designer image and add buttons or something on it. If you want do it with lua, then idk how.
Back to top
View user's profile Send private message
3kokocam
Newbie cheater
Reputation: 0

Joined: 22 Dec 2014
Posts: 22
Location: 127.0.0.1

PostPosted: Thu Sep 03, 2015 8:30 am    Post subject: Reply with quote

Put This In The Starting Of Your Trainer
Code:
Code:
function attachBackground(wc,tblFile)
  local p = createPicture()
  p.loadFromStream(findTableFile(tblFile).Stream)
  wc.OnPaint = function(sender)
    local c = sender.getCanvas()
    local bitmap = p.getBitmap()
    c.draw(0,0,bitmap)
  end
end



And Put This In The Properties

Code:
Code:
setProperty(MainGUI[1] , "color", Background)
attachBackground(MainGUI[1],[[your pic name.jpg]])


Quote:
@JirkaCZS
If you want background image you can add in form designer image and add buttons or something on it. If you want do it with lua, then idk how.

This Trainer is made of ready LUA script and can't be designed in form designer
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