AncientBeast icon indicating copy to clipboard operation
AncientBeast copied to clipboard

Portrait drops continuously when clicked quickly

Open CKillen opened this issue 5 years ago • 8 comments

Describe the bug When clicking on any creature, that isn't the current active one, the portrait from drops to show it was clicked. If it is clicked multiple times quickly the portrait drops far down the page.

To Reproduce Steps to reproduce the behavior:

  1. Start Game
  2. Click on any creature you aren't currently controlling

Expected behavior The portrait should not redo the animation when clicked more than once. It should finish the animation before allowing it to happen again.

CKillen avatar Dec 24 '20 04:12 CKillen

Hey there! Thanks for helping out this project! You can also report issues in our dedicated Discord server channel https://discord.gg/wCjF9cM

github-actions[bot] avatar Dec 24 '20 04:12 github-actions[bot]

This is as intended, as a lot of new players are very autistic about things, so they need to be exaggerated as they insist. Many new players expect that clicking on a unit will actually select it, fully disregarding the unit queue and such. Anyway, you opening this issue sparked some new ideas that might change behavior for this in the long run.

DreadKnight avatar Dec 25 '20 03:12 DreadKnight

Hey Dreadknight, I'd like to try out some different indications for this character portrait. Could you help point me to location in the code that this takes place. I am new to working with project and haven't been able to locate where this interaction is taking place.

Thank you

GrantsGithub avatar Feb 14 '21 20:02 GrantsGithub

Hey Dreadknight, I'd like to try out some different indications for this character portrait. Could you help point me to location in the code that this takes place. I am new to working with project and haven't been able to locate where this interaction is taking place.

Thank you

Heya! Yeah, this could be approached in different ways for sure. At very least it would be nice to see some options in practice. The code should be located in this file https://github.com/FreezingMoon/AncientBeast/blob/master/src/ui/interface.js. The stuff at the top showcasing order of units (based on rounds and initiative stat) is called unit queue, to help you narrow down the search a bit.

DreadKnight avatar Feb 14 '21 21:02 DreadKnight

Hey Dreadknight, rcoker6 and I changed the interaction of the portrait to give it more emphasis and make it catch the eye. Let us know your thoughts on the change. A known issue is that if you click too continuously the portrait will go above the screen. We will try to work this out later.

GrantsGithub avatar Feb 15 '21 23:02 GrantsGithub

Hey Dreadknight, rcoker6 and I changed the interaction of the portrait to give it more emphasis and make it catch the eye. Let us know your thoughts on the change. A known issue is that if you click too continuously the portrait will go above the screen. We will try to work this out later.

Understood. Will review this pretty soon :-)

DreadKnight avatar Feb 16 '21 01:02 DreadKnight

Hi @DreadKnight, after talking things over with my group of @GrantsGithub @Montrel-code and @rcoker6. We came up with a fix to make the portrait bounce 3 times with each bounce being a little less than the last as suggested. If click spammed repeatedly it will go to the bottom of the screen and then reset to its normal position. Let me know what you think, thanks!

pamons12 avatar Feb 19 '21 02:02 pamons12

@pamons12 @GrantsGithub @Montrel-code @rcoker6 I've reviewed it and merged. Thanks for the contribution guys, don't forget to ⭐ the project and hopefully will see some more fixes soon, especially for stuff from the next milestone, which are priority https://github.com/FreezingMoon/AncientBeast/milestone/4 - maybe @CKillen will want to poke at some once again as well :)

DreadKnight avatar Feb 19 '21 03:02 DreadKnight