After the amazing news we heard from Joe today, we all entered in a "shit's got to get done mode".
I Worked some more on the custom part of the deck. I'm making things clean.
I will use a different window for the "edit elements" option, which will promp up the deck window. It allows for deleting components, and rearranging them based on individivual location or by row (group of components).
I will work on Dragging an element from the component selector into the deck.
This will be slightly tricky, since I use special objects called ReorderableComponets, which take a GameComponent.
However, I was researching how we were doing this in the creator, and I'm going to allow a user to drag a "GameComponentCanvasDefinition", then call the controller, requesting it add a GameComponent there.
Then the canvas will call a special method, which will take that GameComponentCanvas, and extract the GC from it, and reorganize everything.
In the future:
Joe suggested we give the user the option to undo something, like what if they, messed up by accident and want to undo the last action.
For now, I think the easy way is to store 2 lists, one with the previous contents of an action.
He suggested I make special DeckReorganizeActions, which know how to undo themselves.... this might be complicated, since I have no idea what gets called when a component gets dragged within the same HStack...
AND no one knows :(
No comments:
Post a Comment