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 


Compact Mode (alternative)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sat Jun 18, 2022 12:18 pm    Post subject: Compact Mode (alternative) This post has 2 review(s) Reply with quote

An uglily alternative compact mode, but keep some useful button accessible.
Save this to a *.lua in ce's autorun directory.
Code:
--
do
  local mf,pvh = MainForm
  local now, stats = 2,{' Mini  ','Restore','Compact',}
  local function compactxxMode()
     local p5, so = mf.panel5, mf.gbScanOptions
     local pc = p5.Constraints
     if now == 1 then
       so.Visible, p5.Height, pc.MinHeight, pvh = true, pvh,1
     elseif now == 2 then
       so.Visible, pvh, p5.Height, pc.MinHeight = false,
         p5.Height, so.Top, 1
     else
       local fc = mf.foundCountLabel
       p5.Height = fc.Top + fc.Height+mf.btnMemoryView.Height
     end
  end

  if not miCompactXX then
    local root = getMainForm().Menu.Items
    local mi = createMenuItem(root)
    root.add(mi)
    mi.Caption = 'Compact'
    mi.OnClick = function(me)
      pcall(compactxxMode)
      now = (now + 1)% #stats
      me.Caption = stats[now+1]
    end
    miCompactXX = mi
  end
 
end

This code modified from LeFiXER's code https://forum.cheatengine.org/viewtopic.php?t=619665#5779687
mgr.inz.Player's original(?) : https://forum.cheatengine.org/viewtopic.php?t=570055

_________________
- Retarded.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Jun 19, 2022 7:25 am    Post subject: Reply with quote

It's like multiple options, one response to different requests.
good work. +1

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions 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