Event name constants, and aliases for 'on_' events
WolfGang Senizen
Constants
It might be good to have constants for the event names
LLEvents:on(EVENT_TOUCH_START, handler)
or
LLEvents:on(TOUCH_START_EVENT, handler)
Though the latter does break the general convention LSL has of prefixing constants, so may be less desirable.
Aliases
While at that, as mentioned here some aliases would be nice, to allow for nicer code read, constants could be used or true aliases could be provided, but that may not be worth it.
LLEvents:on("on_rez", handler)
-- to
LLEvents:on("rez", handler)
-- or
LLEvents:on(EVENT_REZ, handler)
Log In