I created a timeManager in a textadventure. I also made a class that tracks a timespan in which a specific scene can be accessed (see picture).
My question is, is there a way I can make a list of descriptions that automatically adjusts all the times of the contents?
I.e. event nr 1 is accessible from 6:00 to 13:59, nr 2 from 14:00 to 16:59 and so on. The events in this list adjust so that there is exactly one event active at all times (nr 1 is supposed to end one minute before nr 2 starts, and I want that to happen in the Editor like with a PropertyDrawer). I find it very easy to make mistakes if I have to specify the start and end time for each event.
#TimeManager
1 messages · Page 1 of 1 (latest)
If you manage to get the parent of the property that the drawer is attached to, you could check if it's the first in the array. If it's not, set the start time to one minute after the last. This would again require finding the parent' parent, getting the previous item in the array and accessing its end time.