-
Notifications
You must be signed in to change notification settings - Fork 739
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
Add the ability to edit user placed markers #6564
Conversation
replace old method of getting the map display with displayParent
I like this! Editing markers! |
Nice, this is why I love open source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this :u
private _mapIDD = -1; | ||
private _mapDisplay = displayParent _display; | ||
if (isNull _mapDisplay) exitWith {ERROR("No Map");}; | ||
private _mapCtrl = _mapDisplay displayctrl 51; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
displayCtrl
if (_mouseOverType isEqualTo "marker") then { | ||
if !((_marker find "_USER_DEFINED") isEqualTo -1) then { | ||
GVAR(editingMarker) = _marker; | ||
//hide marker which is being edited because if the user cancels editing, it will still exits unchanged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exist
@bux Corrected all spelling mistakes (at least those which I could find) |
🐝 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
* add the ability to edit user placed markers * remove direct channel from valid channels * add author * optimize get map display replace old method of getting the map display with displayParent * optimize code by adding isEqualTo * correct some spelling mistakes
We might want to disable this for line type markers as they will be converted to a icon, which doesn't make sense to me. |
* add the ability to edit user placed markers * remove direct channel from valid channels * add author * optimize get map display replace old method of getting the map display with displayParent * optimize code by adding isEqualTo * correct some spelling mistakes
When merged this pull request will: