First, video
For naming conventions, you will have to use this script in Global, and then put 'archive' in the card descriptions for your rules pages. This will clone a copy back to the bag it is drawn from when you load the rules.
Code:
function onObjectLeaveContainer(container, object)
local desc = object.getDescription()
if string.find(desc, 'archive') then
if container then
local params = {}
local destination = {}
destination = container.getPosition()
destination.y = destination.y + 2
params.position = destination
local clone = object.clone(params)
desc = string.gsub(desc, 'archive', 'copy')
object.setDescription(desc)
end
end
end
Label your rules pages however you like. I used "Page 1", "Page 2", etc.
Then there are 2 boards that have the code on them. Here is the pastebin link as it is rather long.
[url]https://pastebin.com/1MVLpV7D[/url]
The buttons are made invisible by setting
Code:
color = {1,1,1,0}, font_color = {0,0,0,100}
This allows me to design my own style of labels for the buttons. After you have designed your table of contents, you can use the awesome Button Visualizer tool GiantDwarf01 to line up where the positions for the buttons should be.
Hope you like it
I am still new at scripting so it is very likely there is a much shorter solution to doing this.