|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Oct 19, 2019 11:57 pm Post subject: About the change of iconfont color |
|
|
bmp,jpg,png,tif,gif,pcx,tga,exif,fpx,svg,psd,cdr,pcd,dxf,ufo,eps,ai,raw,WMF,webp
What formats of images can the cheating engine modify in color?
Do you have a color code to change the color of the icon or image format above
Description: |
|
Filesize: |
22.13 KB |
Viewed: |
3728 Time(s) |
|
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1247
|
Posted: Sun Oct 20, 2019 5:47 pm Post subject: |
|
|
Although it does not reflect exactly what it tells;
Superficial and simple coding available.
You can develop this idea for yourself.
Code: | function RGBToHex(red, green, blue)
if(red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) then
return nil
end
return string.format("0x%.2X%.2X%.2X", red,green,blue)
end
function test()
local color = getPixel(getMousePos())
UDF1.CEPanel1.Color = color
if UDF1.CEPanel1.Color==color then
c = UDF1.CEPanel1.Color
local r,g,b = c & 0xff, c >> 8 & 0xff, c >> 16 & 0xff
rgbstr = tostring(r)..','..tostring(g)..','..tostring(b)
rgbhex = tostring(RGBToHex(r,g,b))
local color = getPixel(getMousePos())
end
end
function text()
UDF1.CEPanel2.Color = (c)
UDF1.CEEdit1.Text = (c)
UDF1.CEEdit2.Text = rgbhex
end
UDF1.CEImage1.onMouseDown = text
UDF1.CEImage1.onMouseMove = test
--------------------------------
UDF1.CEComboBox1.caption=""
UDF1.CEComboBox1.clear()
UDF1.CEComboBox1.Items.Add("180")
UDF1.CEComboBox1.Items.Add('200')
UDF1.CEComboBox1.Items.Add('220')
UDF1.CEComboBox1.Items.Add('150')
UDF1.CEComboBox1.Items.Add('100')
UDF1.CEComboBox1.Items.Add('75')
UDF1.CEComboBox1.Items.Add('50')
UDF1.CEComboBox1.Items.Add("25")
UDF1.CEComboBox1.ItemIndex="0"
function CEComboBox1Change(sender)
local index = UDF1.CEComboBox1.Text
if index then
control_setSize(UDF1.CEPanel2, index,index)
control_setSize(UDF1.CEImage2, index,index)
end
end
function CEButton1Click(sender)
if UDF1.CEEdit2.Text=="" then
showMessage("Please enter a valid color code ..!")
else
UDF1.CEPanel3.color = UDF1.CEEdit3.Text
end
end |
And for color coding, a detailed work: by @Corroder.
Color Sniff / Palette Tool (CRDR)
Description: |
|
Filesize: |
35.57 KB |
Viewed: |
3692 Time(s) |
|
_________________
|
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Mon Oct 21, 2019 12:07 am Post subject: |
|
|
Aylin wrote: | And for color coding, a detailed work: by @Corroder. | I don't want to get the color of the image, but to change the color of the image.
Description: |
|
Filesize: |
28.36 KB |
Viewed: |
3678 Time(s) |
|
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1247
|
Posted: Mon Oct 21, 2019 5:00 am Post subject: |
|
|
What does the above code do.
Here's a video: Watch
_________________
|
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Mon Oct 21, 2019 6:57 am Post subject: |
|
|
Aylin wrote: | What does the above code do.
Here's a video: Watch | The above code takes the color of the image and displays it on the panel, but my goal is to change the color of the image
|
|
Back to top |
|
|
|
|
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
|
|