-- Version check
if getCEVersion == nil or tonumber(getCEVersion()) < 6.7 then
messageDialog('It is recommended to use at least Cheat Engine 6.7! (Your Version: '..getCEVersion()..')', mtError, mbOK)
end
-- Global settings
errorOnLookupFailure(false)
setGlobalDelayBetweenHotkeyActivation(200)
-- Auto-attach process
DefaultProcessName = "wwzRetail.exe"
strings_add(getAutoAttachList(), DefaultProcessName)
-- Toggle compact/full view
function cycleFullCompact(sender, force)
local state = not (compactMenuItem.Caption == 'Compact Mode')
if force ~= nil then state = not force end
compactMenuItem.Caption = state and 'Compact Mode' or 'Full Mode'
getMainForm().Splitter1.Visible = state
getMainForm().Panel4.Visible = state
getMainForm().Panel5.Visible = state
end
-- Add compact mode menu item
function addCompactMenu()
if compactMenuAlreadyExists then return end
local parent = getMainForm().Menu.Items
compactMenuItem = createMenuItem(parent)
parent.add(compactMenuItem)
compactMenuItem.Caption = 'Compact Mode'
compactMenuItem.OnClick = cycleFullCompact
compactMenuAlreadyExists = true
end
-- Initialize
addCompactMenu()
cycleFullCompact(nil, true) |