HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Limiting Camera Boundaries

06-14-2008, 09:38 PM#1
Joker
How do you limit the camera boundaries to just a certain section of the map?
06-15-2008, 04:34 AM#2
Rising_Dusk
There's a clever little native specifically for it.
Collapse JASS:
call SetCameraBounds(minX, minY, minX, maxY, maxX, maxY, maxX, minY)
I prefer the BJ, though, as it takes a rect and does it for you without leaking.
Collapse JASS:
call SetCameraBoundsToRect(MyRect)
06-15-2008, 06:22 PM#3
Joker
Is it possible to change the minimap picture with it?
06-15-2008, 06:31 PM#4
Rising_Dusk
Changing the minimap picture at runtime is impossible unless you use custom mercenary camp/gold mine icons and make them the size of the minimap. Otherwise, no, it cannot be done. You can change the minimap at map initialization by importing a special blp/tga file, though, look at Tim's map for an example.
07-21-2008, 05:16 PM#5
Joker
Quote:
Originally Posted by Rising_Dusk
Changing the minimap picture at runtime is impossible unless you use custom mercenary camp/gold mine icons and make them the size of the minimap. Otherwise, no, it cannot be done. You can change the minimap at map initialization by importing a special blp/tga file, though, look at Tim's map for an example.
How do you do that? (Thread necromancy )
07-21-2008, 05:55 PM#6
Shadow_killer
The easiest way i know is to use WEU.
07-21-2008, 11:50 PM#7
Joker
You sure its not just import some tga/blp file of a certain size and changing the name to something? I just don't know the specifics.