Last Modified: 2023-09-14

Assets

TBI

https://www.kwiksher.com/doc/kwik_tutorial/interactions/drag_kwikcatpuzzle/


model

  UI.editor.assets = {
    audios = {
      {
        name = "click.mp3",
        path = "audios/short",
        links = {{page = "page1"}}
      }
    },
    videos = {
      {
      name = "videoA.mp4",
      path = "videos",
      links = {{page= "page01", layers = {"layerOne"}}}
      },
      {
        name = "videoB.mp4",
        path = "videos",
        links = {{page= "page01", layers = {"layerTwo"}}}
        }
    },
    sprites = {}

  }

UI

TBI

Create a new layer with a selected media

  1. select filename

    preview video?

  2. select the icon on the top of asset table swith component view.

    Please select a layer for replacement or hold + key to add a new layer

    TODO if assetTable is open, don’t show layer props Table

    save button will add a layer as same as the filename w/o extension

    renaming a layer needs to update layerName_class.lua, models and the entry in layers table in index.lua. Use layer properties for renaming

  3. edit cotnrol props

    TODO hide the icons of assset table

    TODO update video props

  4. save button

    TODO


REST API

editor asset selectors.tree new, modiy, delete (hide filter for selectbox) show (doGet) > assetsTable

/book/assets
/book/assets/audios
/book/assets/audios/short
/book/assets/audios/long
/book/assets/audios/sync
/book/assets/images
/book/assets/sprites
/book/assets/videos

editor > assets


BinaryArchive

https://github.com/siudesu/BinaryArchive

Bookstore tool

Use BookServer/compress_assets/main.lua