View previous topic :: View next topic |
Author |
Message |
chrare How do I cheat? Reputation: 0
Joined: 30 Mar 2013 Posts: 1
|
Posted: Sat Mar 30, 2013 11:06 pm Post subject: Creating an addresslist group |
|
|
Is there a method for creating a group/header record in the main address list with LUA?
Alternatively, I can add a fake record like this (but it is not very neat at all):
Code: | local al = getAddressList()
local record = addresslist_createMemoryRecord(al)
memoryrecord_appendToEntry(record, parent) |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sun Mar 31, 2013 10:59 am Post subject: |
|
|
hmm, not in 6.2. (i've just added it to 6.2+ though)
What you could do is saveTable(tempfilename) , add the GroupHeader specification to the file, and then loadTable(tempfilename) to load it back.
but honestly, I doubt this is worth the time and effort
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Rhagic Advanced Cheater Reputation: 4
Joined: 23 Aug 2011 Posts: 94
|
Posted: Tue May 17, 2016 4:05 am Post subject: |
|
|
Dark Byte wrote: | hmm, not in 6.2. (i've just added it to 6.2+ though) |
Did you add LUA method for creating Group Headers? I've been looking through the documentation and the metatable for addresslist and I've not found one.
Is is an argument to createMemoryRecord? I'm having trouble making sense of the .pas file.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue May 17, 2016 4:39 am Post subject: |
|
|
record.IsGroupHeader=true
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Rhagic Advanced Cheater Reputation: 4
Joined: 23 Aug 2011 Posts: 94
|
Posted: Tue May 17, 2016 5:05 am Post subject: |
|
|
Dark Byte wrote: | record.IsGroupHeader=true |
Awesome, thanks!
Is it possible to set 'moHideChildren' on a record's options from LUA? I've tried a couple things but no success yet.
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue May 17, 2016 7:26 am Post subject: |
|
|
Not documented in main.lua
Code: | record.Options = "[moHideChildren]" |
_________________
Last edited by mgr.inz.Player on Tue May 17, 2016 7:32 am; edited 2 times in total |
|
Back to top |
|
|
Rhagic Advanced Cheater Reputation: 4
Joined: 23 Aug 2011 Posts: 94
|
Posted: Tue May 17, 2016 7:29 am Post subject: |
|
|
mgr.inz.Player wrote: | Code: | record.Options = "[moHideChildren]" |
|
That works. Thank you!
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue May 17, 2016 7:32 am Post subject: |
|
|
Options property is a set.
Available options:
Code: | moHideChildren
moActivateChildrenAsWell
moDeactivateChildrenAsWell
moRecursiveSetValue
moAllowManualCollapseAndExpand
moManualExpandCollapse |
You can use two options or more, just use semicolon:
Code: | record.Options = "[moHideChildren, moDeactivateChildrenAsWell]" |
_________________
|
|
Back to top |
|
|
|