Summary
Summary
| Abstract | Pages | Embedded | Tmplt |
|---|---|---|---|
| Sample Project | BookShelPages | BookShelfEmbedded, BookTOC, Book01, Book02 | BookShelfTmplt, Book01, Book02 |
| == MAKE Shelf == | |||
| project | BookShelfPages | BookTOC | BookSheltTmplt |
| project properties:bookshelf type | pages | embedded | template |
| downloadable | false | ||
| INFO page | each Episode{Num}_Info.psd | INFO.psd as page2 | INFO.psd as page2 |
| Shelf page | layer - Episode{num}Icon | layer - book{Num}Icon | layer - book{Num}Icon |
| action with Buy Product | action with Buy Product | action with Buy Product | |
| page properties | isTmplt enabled for template pages | ||
| == Book{Num} Project == | |||
| project properties:bookshelf type | embedded | template | |
| downloadable | true | true | |
| p{Num} prefixed files of sync audio mp3 and audacity txt | |||
| == PUBLISH == | |||
| edit build4/model.json | |||
| == BookServer == | |||
| edit&run bat or command | edit&run bat or command | edit&run bat or command | edit&run bat or command |
| deploy to server folders | Episode01/assets.zip, Episode02/assets.zip | book01/assets.zip, book02/assets.zip | book01/assets.zip, book02/assets.zip |
| Episode01/bg.png, Episode02/bg.png | book01/bg.png, book02/bg.png | book01/bg.png, book02/bg.png | |
| == Book Shelf Embedded == | |||
| edit&run bat or command | |||
| main.lua KwikShelf.plugin | |||
| ==Device Build == | |||
| components/store/IAP.lua | debug false | debug false | debug false |
| components/store/model.lua | product IDs | product IDs | product IDs |
Available functions for external code
local UI = require(“components.store.UI)
-- pages, embedded, tmplt
UI.gotoTOC()
-- only pages
UI.gotoPage(3)
UI.gotoNextPage(curPage)
UI.gotoPreviousPage(curPage)
-- tmplt
UI.gotoNextScene() -- scene is a page in book
UI.gotoPreviousScene()
UI.gotoTmpltScene(tmpltNum, pageNum)
-- tmplt, embedded
UI.gotoSceneBook("book01", 3, "en")
UI.gotoSceneNextBook("en")
UI.gotoScenePreviousBook("en")