Hey Destinate, At the top of CE. When in CE, hit Cntrl+Alt+L to open Table Lua.
If you put the following code block in there and click execute. It will put two tabs up top for your future tables. Get Table Update which when clicked, send them to this thread so ppl don't have to bookmark or find it. And a Full/Compact view button.
It also includes at the top to auto attach the process of Sins2.exe so ppl don't have to find it in the list. Highly recommend to use this in your table.
I did add the background color, I mean I use it on all personal tables. Can remove that bit if you want to, but it does give it a nice "Premium" flare IMO xD
Code: Select all
if not syntaxcheck then
getAutoAttachList().add("sins2.exe")
end
GetAddressList().Control[0].BackgroundColor=0x403d3d
function pushUpdate( sender, force )
local state = not( updatemenuitem.Caption == 'Get Table Update' )
if force ~= nil then
state = not force
end
updatemenuitem.Caption = state and 'Get Table Update' or 'Get Table Update'
if force == nil then
shellExecute('https://fearlessrevolution.com/viewtopic.php?f=4&t=30835')
end
end
function addUpdateButton()
if updatemenualreadyexists then return end
local parent = getMainForm().Menu.Items
updatemenuitem = createMenuItem( parent )
parent.add( updatemenuitem )
updatemenuitem.Caption = 'Get Table Update'
updatemenuitem.OnClick = pushUpdate
updatemenualreadyexists = 'yes'
end
addUpdateButton()
pushUpdate( nil, true )
function cycleFullCompact( sender, force )
local state = not( compactmenuitem.Caption == 'Compact View Mode' )
if force ~= nil then
state = not force
end
compactmenuitem.Caption = state and 'Compact View Mode' or 'Full View Mode'
getMainForm().Splitter1.Visible = state
getMainForm().Panel4.Visible = state
getMainForm().Panel5.Visible = state
end
function addCompactMenu()
if compactmenualreadyexists then return end
local parent = getMainForm().Menu.Items
compactmenuitem = createMenuItem( parent )
parent.add( compactmenuitem )
compactmenuitem.Caption = 'Compact View Mode'
compactmenuitem.OnClick = cycleFullCompact
compactmenualreadyexists = 'yes'
end
addCompactMenu()
cycleFullCompact( nil, true )