TPlacella

Increased Undos

Jul 13th, 2025
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. GameManager.game.currentScene.toolHandler.addActionToTimeline = (
  2. n => function(t) {
  3. // Trim timeline if it exceeds the maximum allowed actions
  4. if (this.actionTimeline.length >= n) {
  5. this.actionTimeline.splice(0, this.actionTimeline.length - n);
  6. this.actionTimelinePointer = n;
  7. }
  8.  
  9. // Remove any actions ahead of the current pointer
  10. this.actionTimeline.splice(this.actionTimelinePointer);
  11.  
  12. // Add the new action
  13. this.actionTimeline.push(t);
  14. this.actionTimelinePointer++;
  15. }
  16. )(100).bind(GameManager.game.currentScene.toolHandler);
  17.  
Advertisement
Add Comment
Please, Sign In to add comment