-
Notifications
You must be signed in to change notification settings - Fork 54
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
UI improvement #206
Comments
Thanks for the ideas! Yes, I often end up typing in the wrong pane too. Something definitely needs to be improved. Having the REPL occupy only one line makes sense, that would be an easy change. Should the REPL be focused by default, and require a special key press to do anything else in the UI? Or should a special key press be required to open the REPL, as you suggest? I kind of feel like I personally would prefer the former but I am actually not sure. |
Actually, I think it can be useful to see more than one line of the REPL at a time. At the very least you sometimes want to refer to the output of the previous expression. |
Good point. That reminds me of ghci's Something like:
|
Some thoughts:
Actually I could use more modifier combinations - say Ctrl+↑ moves selection in inventory panel or Alt+↑ to move map. |
Don't think it would be that hard, actually. |
I suggest implementing #523 so that everyone can customize to their hearts' content. 😉
What I imagine is putting a button on the panel line, so that clicking it toggles the panel. That way beginners will not be too lost. There could of course be a keyboard shortcut too. 🙂 The button could look like Open REPL or just simple ^^^. The thing is, we do not currently allow clicking on buttons in the game. 😅
Sure, it could just be collapsed or we could allow resizing it. A configuration file would be nice for this. We could also add buttons for increasing/decreasing panel size (^/v) or figure out how to let the mouse drag the separating line. |
This is easy though. We already allow clicking on things in the game. You just have to declare a
That does actually sound harder. I don't actually know how to handle dragging with |
The current 3 pane UI is cumbersome. Users often report typing in the wrong pane which is frustrating and error prone. Screen usage can also be optimized.
Better key based navigation
Navigating the interface should be intuitive and immediate. The more frequent an action is expected to be taken, the less painful we need to make it for the user. Single key mode change should always be a guarantee (for instance, currently there are situations where we force user to either press Tab twice or use a modifier combination, which is bad).
Collapsable panes
Panes like the inventory could be collapsable. The UI should leave space for future complexity.
Unobtrusive REPL
The REPL doesn't need to be a pane nor does it need to be visible while inactive. It can be activated with a convenient key press such as
/
orEnter
before each command, or alternatively we could demand that the user closes the REPL before continuing using the rest of the interface. I can't think of any reason for it to occupy more than 1 line on screen (except when inserting multiline commands) so i propose that it stays a single line (plus borders) at bottom of the screen that grows when multilining and disappears when inactive.The text was updated successfully, but these errors were encountered: