schlangster/skyui

Second AE HUD line not merging into first until reloading save

Closed this issue · 2 comments

In a boss fight, I cast a lot of various spells and shouts, which led to a high amount of AE widgets/icons. This led to a second AE display line due to the amount of widgets. However, once some of my effects wore off, the second line stayed behind instead of sliding into the first line. Once I saved/reloaded, the second line was gone and instead was in the first line, like it should've been.

For example:
Here how it is before reloading the save:
http://i.imgur.com/ZOcFbtg.jpg

How it was after reloading the save:
http://i.imgur.com/C2ezzNG.jpg

That's correct. How's best to explain it? I suppose it uses a first fit algorithm, but with the bins ordered from (default) right to left.

The effects don't store positions per save, however, so this is why the above happens.

Yes, as Mardoxx explained, this is intended behaviour. The reason is that we wanted to avoid unnecessary repositioning.

Assuming the default orienation/align, you have stacks of icons that are shifted towards the top if there opens up free space.
Each stack has a maximum size (icon group count in the MCM config).
If the stack is full, new one is created left of it.
Existing icons are not allowed to change stacks later.
Just like icons shift to the top, stacks shift to the right if space opens up (but only as a whole).
New icons are added to the first stack that has free slots (right to left).

Overall, we think this scheme is a good solution that keeps the icons packed and organized while avoiding constant and complex shifting.