-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
733 - Add keyboard navigation in tile palette #764
base: master
Are you sure you want to change the base?
Conversation
First of all, good catch with the already used arrow keys. Since they're already used for switching tilemap drawing layers, we can't use them for changing tile source selection as well. Since this is an editor feature I did some usability testing on this first before starting to look into the code, and there are some issues that should be addressed before proceeding.
To address these issues, I'd suggest the following:
|
Thanks for the very thorough comment! I fully agree. What you're describing sounds more natural UX-wise, even though it could mean more key strokes for certain actions. I think we won't be needing to adjust the selection very often anyway so ease of use is more important than key stroke efficiency. I will start working on this within the coming days. |
e7d6e55
to
218c44a
Compare
For the controls, pretty much did as @ilexp commented earlier. As for the conflicting controls with the tilemap editor, I changed:
|
Also happy to keep on working on this if there are any more comments |
@cowmanjoe There have been quite a bit of changes in master recently. Can you rebase your branch on master so its up to date again? The changes are mostly in the csproj files so theres a good chance you won't have conflicts. |
d8e336f
to
51813f5
Compare
@Barsonax I've rebased with master and fixed a problem where TilemapCamViewState was not getting the selected area change updates. I modified a csproj file for FlapOrDie because the build was failing without it. I'm not sure if this was the correct thing to do. |
That doesn't seem to be right. I think visual studio was confused maybe because the cache was not cleared? Can you try again without modifying the csproj and first cleaning everything ( |
Ah, thanks! I think I only did |
Seems there is a small bug somewhere. First time I tried to test the arrow navigation I got this exception:
The selection also seems to jump sometimes depending on what you have selected. After some fiddling around I managed to reproduce this 100% of the time with these steps. Seems the selected tile in step 1 is key to reproducing this so you might have to search a bit. Steps to reproduce:
I used the TilemapsSample for this. EDIT: we have changed some csprojs again so you might want to rebase it again. Should be the last time. |
There's overlapping controls between the tile palette and the tileset editor.
Oh that's strange! I'm unable to reproduce the bug, but I am also not sure how to run the sample projects. I have just been adding a tilemap to the initial empty project and testing that way. Is there any documentation on how to open the sample projects in the editor or am I missing something easy? |
The way to run the sample projects changed very recently. There is now a SampleRunner project. You have to modify the path in launchsettings json to point to the sample you wanna run and then start this project. Currently on mobile so cannot give more detailed instructions but maybe this is enough for you to figure it out. |
I'm still not able to reproduce the bug you are experiencing. Perhaps you can give a bit more detail? Here's a video of me running the Tilemaps sample. I use shift+arrow for each direction on tiles from various points in the middle of the tileset. Is this what you did to reproduce or am I missing something? |
When the tileset had multiple columns, the coordinates for the single column configuration was being used.
Ah yes, good catch! The problem did have to do with the multicolumn expansion. The problem should be fixed now. |
The tile palette active selection can now be:
This functionality is also available when the tilemap editor is in focus.
This behaviour is slightly different from what was mentioned in ticket #733, but I thought this made more sense. The reason I didn't use the arrow keys by themselves for moving the selection as specified was that the arrow keys are used for a different purpose already in the tilemap editor view.