Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
tweak(conhost): more 'intuitive' behavior with F8 + NUI
As stated in a forum topic (https://forum.cfx.re/t/4802344/4), it can be confusing that you can't actually click 'behind' the empty space when F8 is opened. This changeset makes the console host (+ its GUI stuff) use dear ImGui's WantCaptureMouse and WantCaptureKeyboard flags if there's NUI focus. Additionally, MouseDrawCursor (and nui::SetHideCursor) get used so that there's no 'double' cursor in the main menu with these.
- Loading branch information
1 parent
671c631
commit 6d37422
Showing
2 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ return function() | |
| "rage:input", | ||
| "rage:graphics", | ||
| "rage:nutsnbolts", | ||
| "nui:core", | ||
| } | ||
| end | ||
|
|
||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters