Utilities

Utilities

  • /develop/Solar2D/tools/yaml2lua

    there is a vscode extention to convert yaml to json , json to yaml etc

    - name: Loading01
    from: from
    to:
      x: 100
      y: 100
      alpha: 1
      duration: 2000
      xScale: 1.5
      yScale: 1.5
      rotation: 0
    controls:
      restart: false
      easing: Linear
      reverse: false
      delay: 1000
      loop: 1
      angle: 45
      xSwipe: 0
      ySwipe: 0
      referncePoint: Center
    breadcrumbs:
      dispose: true
      shape: ""
      color:
        - 1
        - 0
        - 1
      interval: 300
      time: 2000
      width: 30
      height: 30

    lua

    {
      breadcrumbs = {
        color = { 1, 0, 1 },
        dispose = true,
        height = 30,
        interval = 300,
        shape = "",
        time = 2000,
        width = 30
      },
      controls = {
        referncePoint = "Center",
        angle = 45,
        delay = 1000,
        easing = "Linear",
        loop = 1,
        restart = false,
        reverse = false,
        xSwipe = 0,
        ySwipe = 0
      },
      from = "from",
      name = "Loading01",
      to = {
        alpha = 1,
        duration = 2000,
        rotation = 0,
        x = 100,
        xScale = 1.5,
        y = 100,
        yScale = 1.5
      }
    } }
  • /develop/Solar2D/tools/generate_scene_index (TODO update ⭐️)

    • generating scene/pageX/index.lua

      index.lua is created by iterating files from

      • App/conentX/scene/pageX
      • App/contentX/components/pageX
      • App/conentX/commands/pageX
    • scafolding (optional)

      it outputs .lua files to components and commands folder by reading scene/pageX/index.lua