I believe it has been already suggested many times before, but here are some good use of it. Instead of New Class and New Blank File we could have:
##New > Blank
##New > Empty Class
className = class()
function className:init(t)
end
##New > UI Class
className = class()
function className:init(t)
self.pos = vec2(t.x, t.y)
self.size = vec2(t.w, t.h)
self.touching = false
end
function className:draw()
fill(255)
rect(self.pos.x, self.pos.y, self.size.x, self.size.y)
end
function className:touched(t)
if self:isTouched(t) and t.state == BEGAN then
self.touching = true
else
self.touching = false
end
end
function className:isTouched(t)
if t.pos.x > self.pos.x and t.pos.y > self.pos.y and self.pos.x + self.size.x > t.pos.x and self.pos.y + self.size.y > t.pos.y then
return true
end
return false
end
##New > Empty Object
className = className or {}
##New > Comment
--[[
*
]]
##New > 2D Moveable Class
...
… and many more …
Aside of that, can we please save the tabulation based on the user choice. When you work with { … } comments it’s annoying that the indent always jumps back to 4 spaces, when you e.g. need 16.