diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-11-10 00:05:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 00:05:18 +0000 |
commit | f5e4a7be5b6d48006e5f3b9ac218993aa4ee284e (patch) | |
tree | b9fe9e2a720fa0ccf612bffa0f8cba265c83719c /Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut | |
parent | 0a5c705f662773ecb97a9b06d2c92e023307b441 (diff) | |
download | NorthstarMods-f5e4a7be5b6d48006e5f3b9ac218993aa4ee284e.tar.gz NorthstarMods-f5e4a7be5b6d48006e5f3b9ac218993aa4ee284e.zip |
Improve mouse capture handling in menus (#520)
* rework mouse capture handling
* small improvement to comment
* move to new script file
* refactor to use only the capturePanel
* refactor part 2
* github please commit everything
* remove non-implemented global function
* cleanup
* rename variable
* formatting and a comment
* run callbacks for menus
* update comment accordingly
* small formatting change
* slight refactor to avoid duplicate code
* improve comment
* pass correct parameters
* newline at end of file :)
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut index 930e472bd..8e8071f51 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_map_select.nut @@ -43,7 +43,7 @@ void function InitMapsMenu() { file.menu = GetMenu( "MapsMenu" ) - AddMouseMovementCaptureHandler( file.menu, UpdateMouseDeltaBuffer ) + AddMouseMovementCaptureHandler( Hud_GetChild(file.menu, "MouseMovementCapture"), UpdateMouseDeltaBuffer ) AddMenuEventHandler( file.menu, eUIEvent.MENU_CLOSE, OnCloseMapsMenu ) |