iDisbelieve
Active Member
- Reaction score
- 35
Description
Small bug that doesn't impact gameplay all that much, but does break a script I wrote to loop through your selected groups in the groups popup. What happens is that when you have the groups popup opened on the map and launch an attack from the map, the groups popup is closed alongside the attack window popup. This is unexpected behavior on its own, but something else that happens is that the groups popup icon is in the wrong state (it says the popup is opened, while the popup is closed).
As this description is probably going to be confusing, I've made a quick gif of the behavior: https://i.gyazo.com/9f1c10cf9365cb516e4002c3b178322d.gif
Observations:
1. The groups popup is closed unexpectedly
2. The arrow icon to open the popup is wrong. Down means closed, up means open, but after the bug occurs the arrow points up while the popup is closed.
The script I wrote checks the state of the groups popup by looking at this arrow icon, which is the reason this specific bug breaks the script --> bug 1 (popup closing) causes bug 2 (wrong icon display)
Steps to reproduce - 100% accuracy
1. Go to the map
2. Open the groups popup
3. Launch an attack from the attack popup
Personal assumptions
I believe this bug is caused by some sort of ClosePopups() function, which closes all popup elements instead of just the relevant element. For this reason I also think this bug can occur in any place that allows 2 popup elements to be opened at the same time.
Small bug that doesn't impact gameplay all that much, but does break a script I wrote to loop through your selected groups in the groups popup. What happens is that when you have the groups popup opened on the map and launch an attack from the map, the groups popup is closed alongside the attack window popup. This is unexpected behavior on its own, but something else that happens is that the groups popup icon is in the wrong state (it says the popup is opened, while the popup is closed).
As this description is probably going to be confusing, I've made a quick gif of the behavior: https://i.gyazo.com/9f1c10cf9365cb516e4002c3b178322d.gif
Observations:
1. The groups popup is closed unexpectedly
2. The arrow icon to open the popup is wrong. Down means closed, up means open, but after the bug occurs the arrow points up while the popup is closed.
The script I wrote checks the state of the groups popup by looking at this arrow icon, which is the reason this specific bug breaks the script --> bug 1 (popup closing) causes bug 2 (wrong icon display)
Steps to reproduce - 100% accuracy
1. Go to the map
2. Open the groups popup
3. Launch an attack from the attack popup
Personal assumptions
I believe this bug is caused by some sort of ClosePopups() function, which closes all popup elements instead of just the relevant element. For this reason I also think this bug can occur in any place that allows 2 popup elements to be opened at the same time.