shdwcat / YUI

YUI - A UI system for GMS2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix element cleanup logic to avoid event recursion limit

shdwcat opened this issue · comments

calling instance destroy in the cleanup event can hit a recursion limit if the tree is deeper than 30 (see the old fibonacci example).

Fixing this involves moving the logic to an instance function, and possibly needing to flatten the list and then clean up all items in one loop

Moving to Future because the only way to fix this sucks...

Back to 0.5.0 because implementing unloading animation forced me to fix it anyway