CampaignMinimapIconLocBJ

Parameters
wherelocation
styleinteger
comment
patch

1.32.0.13369

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
function CampaignMinimapIconLocBJ takes location where, integer style returns nothing
	local integer	red
	local integer 	green
	local integer 	blue
	local string 	path
	if ( style == bj_CAMPPINGSTYLE_PRIMARY ) then
		// green (different from the unit version)
		set red 	= 0
		set green 	= 255
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestObjectivePrimary" )
	elseif ( style == bj_CAMPPINGSTYLE_PRIMARY_GREEN ) then
		// green (different from the unit version)
		set red 	= 0
		set green 	= 255
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestObjectivePrimary" )
	elseif ( style == bj_CAMPPINGSTYLE_PRIMARY_RED ) then
		// green (different from the unit version)
		set red 	= 255
		set green 	= 0
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestObjectivePrimary" )
	elseif ( style == bj_CAMPPINGSTYLE_BONUS ) then
		// yellow
		set red 	= 255
		set green 	= 255
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestObjectiveBonus" )
	elseif ( style == bj_CAMPPINGSTYLE_TURNIN ) then
		// yellow
		set red 	= 255
		set green 	= 255
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestTurnIn" )
	elseif ( style == bj_CAMPPINGSTYLE_BOSS ) then
		// red
		set red 	= 255
		set green 	= 0
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestBoss" )
	elseif ( style == bj_CAMPPINGSTYLE_CONTROL_ALLY ) then
		// green
		set red 	= 0
		set green 	= 255
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestControlPoint" )
	elseif ( style == bj_CAMPPINGSTYLE_CONTROL_NEUTRAL ) then
		// white
		set red 	= 255
		set green 	= 255
		set blue	= 255
		set path	= SkinManagerGetLocalPath( "MinimapQuestControlPoint" )
	elseif ( style == bj_CAMPPINGSTYLE_CONTROL_ENEMY ) then
		// red
		set red 	= 255
		set green 	= 0
		set blue	= 0
		set path	= SkinManagerGetLocalPath( "MinimapQuestControlPoint" )
	endif
	call CreateMinimapIconAtLocBJ( where, red, green, blue, path, FOG_OF_WAR_MASKED )
endfunction