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 


Moving Buttons Around

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Sep 22, 2024 8:54 am    Post subject: Moving Buttons Around Reply with quote

Could you help me put the buttons on top of each other starting from the bottom of FoundList3?

I couldn't do more than I did in the example.

Whenever I increase the bottom border spacing it lifts the FoundList3's bottom

Using the source code it was done by only changing the left anchor to FoundList3 and increasing the bottom border spacing for both buttons

Code:
local button = getMainForm().SpeedButton2
button.AnchorSideLeft.Control = getMainForm().FoundList3
button.AnchorSideLeft.Side = asrBottom



Buttons Goal.jpg
 Description:
Goal
 Filesize:  20.01 KB
 Viewed:  2747 Time(s)

Buttons Goal.jpg



Buttons.jpg
 Description:
Current State
 Filesize:  9.33 KB
 Viewed:  2747 Time(s)

Buttons.jpg


Back to top
View user's profile Send private message Visit poster's website
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sun Sep 22, 2024 10:27 am    Post subject: Reply with quote

Code:
local btnDeleteAddresses = MainForm.SpeedButton2
local btnCopyToAddrList = MainForm.SpeedButton3

MainForm.Foundlist3.AnchorSideBottom.Control = MainForm.btnMemoryView

btnDeleteAddresses.Anchors = '[akLeft,akBottom]'
btnDeleteAddresses.AnchorSideLeft.Control = MainForm.Foundlist3
btnDeleteAddresses.AnchorSideLeft.Side = asrRight
btnDeleteAddresses.AnchorSideBottom.Control = MainForm.Foundlist3
btnDeleteAddresses.AnchorSideBottom.Side = asrBottom

btnCopyToAddrList.Anchors = '[akLeft,akBottom]'
btnCopyToAddrList.AnchorSideLeft.Control = MainForm.Foundlist3
btnCopyToAddrList.AnchorSideLeft.Side = asrRight
btnCopyToAddrList.AnchorSideBottom.Control = btnDeleteAddresses
btnCopyToAddrList.AnchorSideBottom.Side = asrTop

MainForm.Foundlist3.AnchorSideBottom.Control = MainForm.btnMemoryView

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Sep 22, 2024 11:39 am    Post subject: Reply with quote

Thank you

...
The UI doesn't update to the provided commands at launch so adding

Code:
createTimer(10, function() getMainForm().Foundlist3.AnchorSideBottom.Control = getMainForm().btnMemoryView end)


At the end, would fix it. And would drop the need for the third line
Code:
MainForm.Foundlist3.AnchorSideBottom.Control = MainForm.btnMemoryView
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