LeoOuyang24 / DarkestDungeonPokemonGame

balls
1 stars 1 forks source link

Last QueueSlot will remain highlighted if a creature died #58

Closed LeoOuyang24 closed 1 month ago

LeoOuyang24 commented 1 month ago

10/5/2024: Couldn't figure out the exact issue, but basically it was a problem with queueslots not being unhighlighted. Previously this is how I did it:

func highlightQueueSlot:
   unhighlight the previous queue slot
   highlight the new queueslot

There was probably an edge case where removing an entity would cause a different queueslot to be highlighted which would be incorrect unhighlighted.

To fix this, I just made it so that the highlight, which was a reference rect that every queueslot scene had, was a node that BattleUI had instead, and then just moved it to the queueslot I wanted to highlight.