Skip to content

Console mode fixes for Look mode cursor and text input#350

Open
joseph-hlucny wants to merge 2 commits intochaosforgeorg:developmentfrom
joseph-hlucny:feature/console-mode-cursor-and-input-fixes
Open

Console mode fixes for Look mode cursor and text input#350
joseph-hlucny wants to merge 2 commits intochaosforgeorg:developmentfrom
joseph-hlucny:feature/console-mode-cursor-and-input-fixes

Conversation

@joseph-hlucny
Copy link

I tried to make the changes only have impact to the console mode version of the game. I felt this was a clean solution, but let me know if not.

Fix for Look mode cursor:
Behavior before:
When entering Look mode, cursor is not drawn.
Behavior after:
Cursor is drawn in Look mode, and does not show up in the More menu. Console cursor also does not show up in graphic version.

I think the issue might date back to d3c9390.
I believe the cursor was prevented from showing due to FLayers.IsEmpty resolving to False in Look mode.

Fix for text input not working (on character creation):
Behavior before:
Character creation naming would not accept text input.
Behavior after:
Text input is accepted

Felt it was less confusing to override in src/drltextio.pas instead of making the fix in src/vio.pas directly.

Tested on Windows 11.

@joseph-hlucny
Copy link
Author

I agree that Kornel Kisielewicz is the sole copyright holder of all contributions made in this PR and may use, modify, and distribute them freely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant