Skip to content
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

Copy map location from "big map" to "folded map" #17

Closed
drzdo opened this issue Aug 14, 2024 · 1 comment
Closed

Copy map location from "big map" to "folded map" #17

drzdo opened this issue Aug 14, 2024 · 1 comment

Comments

@drzdo
Copy link

drzdo commented Aug 14, 2024

Hi, could you please add something like

    if (GVAR(isOpen) && visibleMap && {GVAR(adjustMode) == MANUAL}) then {
        GVAR(centerPos) = (findDisplay 12 displayCtrl 51) ctrlMapScreenToWorld getMousePosition;
        GVAR(mapScale) = ctrlMapScale (findDisplay 12 displayCtrl 51);
        (FOLDMAP displayCtrl GVAR(mapCtrlActive)) ctrlMapAnimAdd [0, GVAR(mapScale), GVAR(centerPos)];
        ctrlMapAnimCommit (FOLDMAP displayCtrl GVAR(mapCtrlActive));
    };

to the "refold map" handler?

@johnb432
Copy link
Owner

Added in #18. Thanks!

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

No branches or pull requests

2 participants