Commit Graph

8 Commits

Author SHA1 Message Date
David Capello 4a143cb902 lua: move user data fields to each class 2018-09-05 09:22:59 -03:00
David Capello fa34453a1b lua: add app.command.CommandName() 2018-09-04 17:21:33 -03:00
David Capello f456f3cba3 lua: Initial support for sprite properties
Frames, Palettes/Color, Layers, Cels, Tags, Slices, etc.
2018-09-04 16:10:32 -03:00
David Capello a107dd29a4 lua: add image iterators
In this way we can use:

    local img = Image(32, 32)
    for it in img:pixels() do
      local pixelValue = it() -- get pixel
      ...
      it(pixelValue)          -- set pixel
    end
2018-09-03 18:20:23 -03:00
David Capello c5a5a7858c lua: use base::Chrono for os.clock() (which has more precision) 2018-09-03 13:29:10 -03:00
David Capello bc092b4512 lua: add some standard libraries and disable some insecure functions 2018-09-03 12:08:47 -03:00
David Capello 3edc7c7b9a Share scripting engine in the whole App instance life 2018-08-31 14:30:32 -03:00
David Capello 4fe66f2ffb Change scripting language to Lua 2018-08-22 14:54:51 -03:00