OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LCD on 13 Aug 2007, 14:01:48

Title: map type dialog
Post by: LCD on 13 Aug 2007, 14:01:48
im creatin a map dialog (actualy tryin 2 make somin like BIS did in da campaign... but usin map dialog instead of pictures...)

now does ny1 knows how can i get da position dat is in da center of da map (it starts on da player... but he can scroll) ?

also it seems dat da ctrlMapScale comand is bugged... it returns true (bool) instead of number... ny idea how can i fix dat ? thx

LCD OUT
Title: Re: map type dialog
Post by: Mandoble on 13 Aug 2007, 14:11:58
Check any of the missions with MCC here (http://www.ofpec.com/forum/index.php?topic=29031.0). You will see that small map to the left, it is scrollable, and you may zoom it in/out. But you may also enslave the map to follow any object, reset its position to player's vehicle position, etc. Is that what you need?
Title: Re: map type dialog
Post by: LCD on 14 Aug 2007, 08:09:20
not exactly what i need... wat i realy want... is 2 check if da player scroled da map... nd moved it from were it shud b... or if he zoomed out or zoomed in...

LCD OUT
Title: Re: map type dialog
Post by: JasonO on 14 Aug 2007, 13:57:08
I can't rememeber but I think using the mouse to move map (with right button) can be detected with OnMapSingleClick, but the keyboard could still be used I guess.
Title: Re: map type dialog
Post by: LCD on 15 Aug 2007, 00:46:03
not exactly wat im lookin4 :P

nywayz... here (http://www.ofpec.com/forum/index.php?topic=30047.0)s wat it all came to... still gonna upgrade it but its a nice resault

LCD OUT
Title: Re: map type dialog
Post by: T_D on 15 Aug 2007, 05:21:58
Well you could use onMouseMoving ui eventhandler or ctrlMapScreenToWorld to check if the user scrolled the map.
Title: Re: map type dialog
Post by: LCD on 15 Aug 2007, 14:32:10
cant get da ctrlMapScreenToWorld thingy 2 work at all.... will check da UI eventhandlers soon tho

LCD OUT