Home   Help Search Login Register  

Author Topic: map type dialog  (Read 1753 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
map type dialog
« 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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: map type dialog
« Reply #1 on: 13 Aug 2007, 14:11:58 »
Check any of the missions with MCC here. 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?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: map type dialog
« Reply #2 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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: map type dialog
« Reply #3 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.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: map type dialog
« Reply #4 on: 15 Aug 2007, 00:46:03 »
not exactly wat im lookin4 :P

nywayz... heres wat it all came to... still gonna upgrade it but its a nice resault

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline T_D

  • CWR
  • **
  • Troubleshooting Device
Re: map type dialog
« Reply #5 on: 15 Aug 2007, 05:21:58 »
Well you could use onMouseMoving ui eventhandler or ctrlMapScreenToWorld to check if the user scrolled the map.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: map type dialog
« Reply #6 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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta