FreeCol / freecol

FreeCol: FreeCol is a turn-based strategy game based on the old game Colonization, and similar to Civilization. The objective of the game is to create an independent nation.
GNU General Public License v2.0
588 stars 173 forks source link

Clicking on tile without units shouldn't change to terrain selection mode #15

Closed Szunti closed 4 years ago

Szunti commented 6 years ago

I don't know how others play, but I rarely want to select the terrain. Then right click is fine.

In 0.11.6 I couldn't select terrain with left clicking in unit selection mode and that was perfect for me. Probably I shouldn't ever click on a tile, but I just do it, mainly because it's the easiest way to scroll the map a couple tiles. Then I always have to change the mode back. It's annoying.

Beep6581 commented 6 years ago

In addition, in the current master branch d4c258852, when I first click on terrain and then want to select a unit, clicking on the unit does not select it.

Beep6581 commented 6 years ago

Correction, it seems left-clicking on a unit does select it, but there is no visual cue, and the last-selected terrain tile still has the green frame which indicates that its supposed to be selected.

LongboatAline commented 6 years ago

I can confirm this with the nightlies

wintertime commented 4 years ago

Just tested this again: The recent change improved this slightly. Explored tiles can not be selected anymore; I can still select unexplored tiles, though. Also, switching the view mode still does nothing and the unit is still not blinking.

mpope042 commented 4 years ago

Selecting a tile now needs a double click.

How are you switching the view mode? I never do it explicitly.

wintertime commented 4 years ago

View menu - Toggle View Mode or Ctrl+Shift+V

In Units View Mode you could:

In other mode (think it was called Map or Tile View Mode):

mpope042 commented 4 years ago

OK, I had completely forgotten that existed, no wonder it evaded testing. I think I have kicked the cursor-blinking/selection code enough in git.a7cdd36. What remains broken is the InfoPanel. AFAICT tiles are not displaying at all, and switching between units is as dodgy as ever.

mpope042 commented 4 years ago

I have split out the sub-info-panels, and AFAICT the mode switching is working OK. Switching between units with no moves left does weird things, but units with moves are now reliable. Tile display is just completely broken. No idea why. InfoPanel has been a pain for too long.

mpope042 commented 4 years ago

This is only getting weirder. AFAICT everything is working fine with my standard test game, but the tile display is always blank if I use the saved game on BR#3173. Weirder still, if I simplify the Tile display down to just display the image, it is still blank. Any chance you can have a look wintertime? I am baffled.

mpope042 commented 4 years ago

...and just as mysteriously, the problem has gone away. We have a placeholder bug BR#2806 for this problem on the main bug tracker, so I will close this issue.