• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Minimap icon

Status
Not open for further replies.
Level 8
Joined
Dec 11, 2012
Messages
412
I was always wondering how do people place an icon on their minimap while playing to cover the way the map looks like. I'd sure appreciate if someone can tell me how do I adjust a little icon on my minimap.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
Override any of the following paths with an import:
UI\MiniMap\minimap-gold.blp
(unit with Gold Mine ability will display this)
UI\MiniMap\minimap-hero.blp
(hero will display this)
UI\MiniMap\minimap-item.blp
(not sure)
UI\MiniMap\minimap-neutralbuilding.blp
(unit editor has a field to toggle display)
UI\MiniMap\MinimapIconCircleOfPower.blp
(as above)

Or use the following actions:
  • Neutral Building - Change the special minimap icon to UI\Minimap\Minimap-Tower
  • Neutral Building - Turn special minimap icon On for (Last created unit)
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
There are natives for this? What campaigns did Blizzard use them in to change the minimap icon for neutral buildings in game?
 
Those are not really "neutral building"-related functions. Blizzard is just wierd. Meaby, their main purpose was to manipulate neutral stuff on minimap, yet those work perfectly for other units too. Unfortunately we are limited to just one alternative icon.
JASS:
native SetAltMinimapIcon            takes string iconPath returns nothing
native UnitSetUsesAltIcon           takes unit whichUnit, boolean flag returns nothing

I advice you to use .blp format.
 
Status
Not open for further replies.
Top