On the off chance this will get looked at, have some changes that i have been making while making some scripts. If this goes stale (a month or two) i will probably post on npm, i am currently locally copying changes to my working project.
Feel free to use as much or as little of the changes in this PR
Changes:
Add some tests, will be adding more to cover what i have changed
Changed Zone to inherit GObject properties as IIRC the zone objects have the same properties just with a few alterations
Altered some GObject getters to include Zone objects, i probably missed some
Changed ColorFunctionality parameters to have typing
Added ColorNumberKeys to setAt k parameter, as stated in the TTS docs
Changed ColorNumberKeys from 0, 1, 2, 3 to 1, 2, 3, 4 to match TTS docs
Changed os.time() parameter to optional as you dont have to supply it in lua
Added CustomTableObject to type params
Added callback and callback functions with params and owner to TakeObjectParameters and CloneObjectParameters
Altered CommonButtonParameters to allow Global function_owner and proper typing on player_clicker_color
Notes on changes:
The Zone change was one that i hastily changed with no verification on how accurate it is, but it worked for my purposes.
The callback and callback_function parameters were verified on both take object and clone, it is more an undocumented use case but i just needed typings for it so i could utilize it
On the off chance this will get looked at, have some changes that i have been making while making some scripts. If this goes stale (a month or two) i will probably post on npm, i am currently locally copying changes to my working project.
Feel free to use as much or as little of the changes in this PR
Changes:
Notes on changes:
The Zone change was one that i hastily changed with no verification on how accurate it is, but it worked for my purposes.
The callback and callback_function parameters were verified on both take object and clone, it is more an undocumented use case but i just needed typings for it so i could utilize it