A Bookshelf Structure
A Bookshelf project loads the lua files and it downloads the image assets from BookServer
BookServer
each image assets.zip is packed from each book project
- hokkaido
- Spring
- thumbnail image
- Springen
- assets.zip from SpringEn
- Springjp
- assets.zip from SpringJp
- Summer
- Summeren
- Summmerjp
- Spring
- hokkaido
BookShelfEmbedded_v
XXXen and XXXjp use the same codes from XXXEn project
- App
- TOC
- copied from IsoboForest
- TOC
- Springen
- copied from SpringEn
- Springjp
- copied from SpringEn
- Summeren
- Summerjp
- App
Projects
You can set animations or buttons in Kwik panel. These components generate the lua codes. A page context means an expected behavior of a page at the runtime defined by the lua codes.
- IsoboForest
- 001-start
- 002-tocEn
- opens infoEn
- opens en book if downloaded
- 003-tocJp
- uses 002 context
- opens infoJP
- opens jp book if downloaded
- 004-infoEn
- downloads XXXen assets.zip
- 005-infoJp
- downloads XXXjp assets.zip
- 006-notification
- message text
- 007-onesignal
- Register
- Subscribe
- Clear
- Close
- 008-readme
- setLang to layer to switch En/Jp
model
components/store/model.lua
function M:initPages(lang)
if lang == "en" then
self.TOC_PAGE = "views.page0".."2".."Scene"
self.INFO_PAGE = "views.page0".."4".."Scene"
elseif lang == "jp" then
self.TOC_PAGE = "views.page0".."3".."Scene"
self.INFO_PAGE = "views.page0".."5".."Scene"
end
end
M.episodes = {
Spring ={name = "Spring", dir = "Spring", numOfPages = 10, info = "",
versions ={ "en", "jp" }, isFree=true, isOnlineImg=false },
Summer ={name = "Summer", dir = "Summer", numOfPages = 10, info = "",
versions ={ "en", "jp" }, isFree=false, isOnlineImg=false },
}
Making components of Kwik
003-tocJp page uses 002-tocEn context. When 003-tocJp is loaded, it uses 002-tocEN codes with the images of 003-tocJp. 004-infoEn, 005-infoJp pages are automatically configured at the runtime with the store function of Kwik.
- IsoboForest
- 001-start
- 002-tocEn
003-tocJp004-infoEn005-infoJp- 006-notification
- 007-onesignal
- 008-readme
You implement each XXXEn project only. Bookshelf project loads XXXEn context(lua codes) with the images of selected language. So you don’t need to duplicate the work of XXXEn to XXXJp project.
- SpringEn
SpringJp- SummerEn
SummerJp
.psd files of XXXEn and XXXJp should have same layer names
IsoboForest - TOC
001-start
002-tocEN
003-tocJp
004-infoEn
005-infoJp
006-notification
007-oneSignal
008-readme
TBI
SpringEn
see book_project.md
001-toc
002-M1
- storyboard_show.lua
- storyboard_hide.lua
- overlay_show.lua
- M1_play_video.lua
003-M2 to 010-M09
011-viewer
- storyboard_init.lua
- storyboard_setup.lua
- storyboard_button_back.lua
- storyboard_dispose.lua
012-overlay
- overlay_button_next.lua
- overlay_button_prev.lua
- storyboard_play.lua