Last Modified: 2024-04-10

Solar2D Simulator

you have published .psd files in step 1. The images are the code for Solar2D are available in the output folder. Here you will load it to Solar2D simulator. You may build an app for iOS, Android, Desktop(mac or win).

Navigation

Open Simulator

Open main.lua in the output folder - Solar2D project

There is an option to open the simualtor in Publish command in Kwik UXP plugin when publish is completed.

TODO UXP::Publish to include swipe page or A/D keys for navigation ⭐️

kwiconfig.lua

debug = {enable = true, navigation= "swipe/keys"}

Auto open after publish in Kwik UXP plugin


Kwik Visual Code Editor

Linear Animation

Button

Action

Product build

main.lua

if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
  local lldebugger = loadfile(os.getenv("LOCAL_LUA_DEBUGGER_FILEPATH"))()
  lldebugger.start()
end

inspect = require("extlib.inspect")

local common = {
  commands = {"myEvent"},
  components = {
    -- "align",
    "myComponent",
    "thumbnailNavigation",
    "index"              -- this loads editor!
  }
}

Solar2D/components/common/index.lua

local editor = require("editor.index")
--
function _M:init(UI)
  editor:init(UI)
end
--
function _M:create(UI)
  editor:create(UI)
end
--
function _M:didShow(UI)
  editor:didShow(UI)
end
--
function _M:didHide(UI)
  editor:didHide(UI)
end
--
function _M:destroy(UI)
  editor:destroy(UI)
end
--
return _M