You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many updates/filterings/drawing etc that needs to occur every time specific actions occur, ie editing, moving, deleting, etc. Currently if you want to add/remove such behavior, you have to track down a billion places where a function call should occur.
Since actions are already recorded via record_action(), we can probably gather some of these redundant groupings of function calls into record_action() and just have a big switch statement with all possible action types and their associated "listeners". This would make debugging/development of such behaviors a heck of a lot nicer i think
The text was updated successfully, but these errors were encountered:
There are many updates/filterings/drawing etc that needs to occur every time specific actions occur, ie editing, moving, deleting, etc. Currently if you want to add/remove such behavior, you have to track down a billion places where a function call should occur.
Since actions are already recorded via
record_action()
, we can probably gather some of these redundant groupings of function calls intorecord_action()
and just have a bigswitch
statement with all possible action types and their associated "listeners". This would make debugging/development of such behaviors a heck of a lot nicer i thinkThe text was updated successfully, but these errors were encountered: