thewierdnut / endless-mobile

Space exploration, trading, and combat game.
https://endless-sky.github.io/
GNU General Public License v3.0
92 stars 6 forks source link

Talking to other ships and pressing "Done" shows another message from the same ship. #100

Closed MonkeyMatrix closed 7 months ago

MonkeyMatrix commented 7 months ago

Is there an existing issue for this?

Describe the bug

When opening a ship panel, you are given a message from that ship (Obviously, this is what is supposed to happen). When pressing "Done" by using touchscreen controls, you are given a new message, as if you had exited and talked to the ship again. This does not occur when using a game-pad or keyboard. Essentially, you are given two messages from one ship when using touchscreen controls. In addition, when using touchscreen controls to talk to a ship, it looks like the text changes quickly before showing you the ship text which stays there (It is hard to explain; just look closely when opening the text talk panel.)

Steps to Reproduce

Go into space. Tap on any ship besides your flagship and press "Talk." (The text may quickly switch once or twice [when not targeting an escort that does not have a message for you] when opening the panel.) Tap "Done" on your touchscreen. Another message should appear. Pressing "Done" again should close the panel.

Repeat with a game-pad, and this does not occur. Repeat with a keyboard, and this does not occur.

Expected Behavior

The panel should close the first time "Done" is pressed.

Screenshots

ShipPanel-0 ShipPanel-1

Link to save file

Tested on multiple save files; it should be universal.

Device type

Lenovo Tab M10 Plus 3rd Gen

Game Version

Cloned latest code from repository.

Additional Information

As I expressed earlier, this occurs only when using the touchscreen.