Skip to content

Improve placement preview mouse position handling#690

Merged
mharis001 merged 1 commit intomasterfrom
mouse-area-pos
Dec 9, 2022
Merged

Improve placement preview mouse position handling#690
mharis001 merged 1 commit intomasterfrom
mouse-area-pos

Conversation

@mharis001
Copy link
Copy Markdown
Member

When merged this pull request will:

  • title, fix issue with RscDisplayCurator_mousePos unexpectedly updating when mouse is over mission controls group

Relevant code from RscDisplayCurator.sqf:

//--- Mouse area
{
	_ctrl = _display displayctrl _x;
	_ctrl ctrladdeventhandler ["mousemoving","with (uinamespace) do {RscDisplayCurator_mousePos = [_this select 1,_this select 2];};"];
	_ctrl ctrladdeventhandler ["mouseholding","with (uinamespace) do {RscDisplayCurator_mousePos = [_this select 1,_this select 2];};"];
} foreach [IDC_RSCDISPLAYCURATOR_MOUSEAREA,IDC_RSCDISPLAYCURATOR_MISSION];

@mharis001 mharis001 added the enhancement Improves an existing feature label Oct 26, 2022
@mharis001 mharis001 added this to the 1.13.0 milestone Oct 26, 2022
Comment thread addons/editor/functions/fnc_handleLoad.sqf
@mharis001 mharis001 merged commit 527b200 into master Dec 9, 2022
@mharis001 mharis001 deleted the mouse-area-pos branch December 9, 2022 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants