Action Editor

handling activeProp onComplete, onTap …

  • classProps > onComplete > showActionTable

    this hides the component’s buttons and classProps

    • show partsButtons in action/index.lua

      function M:showActionTable(actionbox, isNew)
        actionTable.actionbox = actionbox
        if isNew then
          self.UI.scene.app:dispatchEvent {
            name = "editor.action.selectAction",
            action = {},
            isNew = true,
            UI = self.UI
          }
          partsButtons:hide()
          classProps:hide()
        else
          ---
          --- there were multiple instances of actionbox from selectAudio, actionTable and sync's word action
          ---
          actionTable:show()
      
          local UI = self.UI
          if not self.isVisible then
            UI.editor.actionStore:set{value=UI.scene.model.commands, isActiveProp=true}
            self:show()
            buttons:hide()
          else
            -- UI.editor.actionStore:set({})
            -- self:hide()
          end
        end
      end
  • action/controller.save

    restore the classProps and buttons

      actionEditor:hide()
      partsButtons:show()
      classProps:show()