gc8 977 Posted January 9, 2012 Hi Is it possible to draw on the map? I have seen some missions draw on custom map control but Idk about main map. how would this be done? i just need to draw a circle. (using drawEllipse) thx Share this post Link to post Share on other sites
PlacidBox 10 Posted January 9, 2012 If you just need an ellipse on the main map you can create a local marker Share this post Link to post Share on other sites
gc8 977 Posted January 9, 2012 That could be alright. But how do I mouse position etc? Share this post Link to post Share on other sites
PlacidBox 10 Posted January 9, 2012 do you mean you want to have, say, the player draw on the map? afaik you can get the mouse position by handling the 'onMouseMoving' event for the main display. http://community.bistudio.com/wiki/displayAddEventHandler http://community.bistudio.com/wiki/User_Interface_Event_Handlers but it may be easier to use the onMapSingleClick function, depending on what you're trying to achieve Share this post Link to post Share on other sites
gc8 977 Posted January 9, 2012 Thats just what i need. But i get event triggered only on key press for the map. but not on mouseMouse (findDisplay 46) displayAddEventHandler ["onMouseMoving", "hint str _this;"]; // does not trigger (findDisplay 46) displayAddEventHandler ["keyDown", "hint str _this;"]; Share this post Link to post Share on other sites
Charles Darwin 10 Posted January 10, 2012 if you mean to draw on map while in game youre talking about a feature of ACE called ACE Tools Share this post Link to post Share on other sites
gc8 977 Posted January 10, 2012 ok well if theres a way to get mouse pos thats all i need. mouse click pos wont do, need moving mouse pos on the map. Share this post Link to post Share on other sites
gc8 977 Posted January 10, 2012 still havent found a way to get mouse pos on map. does anyone one know map control id? and display id? where are the guis defined? Share this post Link to post Share on other sites