Page View
book table
- project folder > Solar2D > App

Solar2D/main.lua is loaded with editing true, it will show book/page tables.

You can add book foldes to be ignored in App/bookstore.lua
local M = {
bookignored = {"book1", "mybook", "kwikTheCat"}
}
icons




Page lock

you can click lock icon on the top of page table. When the simulator is reloaded, it will navigate to the locked page for editing.
not locked
locked
Setting
Actually this is a book setting. Name and Orientation are viewed.


Add Page

Input page name
App/book/index.lua has the list of page table
local scenes = { "page1", "page2", "page3", "page4", "myNewPage", } return scenes
Trash

current page will be removed.
Context Menu
if you right-click a page in page table, it will show the context menu

New
adds a new page
Rename
renames the current page
Edit
(TODO) edit the page properties
In vscode
index.lua is show.
Copy
copies the current page
Paste
creates page_copied. Please use Rename to change the name
Delete
deletes the page
In vscode
index.lua is opened in visual studio code. You can use vs code alt + arrow up/down to change the order of layers by moving up/down layer’s line.
App/book/components/index.lua
local sceneName = ... -- local scene = require("controller.scene").new( sceneName, { --name = "landscape", components = { layers = { { background = { class = {} } }, { bg = { class = {} } }, { copyright = { class = {} } }, { GroupA = { class = {} } }, { star = { class = {} } }, { hello = { class = {} } } }, audios = {}, groups = {}, timers = {}, variables = {}, joints = {}, page = {} }, commands = {}, onInit = function(scene) --print("onInit") end } ) -- return scene