Function CampaignMinimapIconLocBJ

Line
2337
Location
blizzard.j
Constant?
no
Type
function
Arguments
location where, integer style
Returns
nothing
2337
function CampaignMinimapIconLocBJ takes location where, integer style returns nothing
2338
    local integer    red
2339
    local integer     green
2340
    local integer     blue
2341
    local string     path
2342
    if ( style == bj_CAMPPINGSTYLE_PRIMARY ) then
2343
        // green (different from the unit version)
2344
        set red     = 0
2345
        set green     = 255
2346
        set blue    = 0
2347
        set path    = SkinManagerGetLocalPath( "MinimapQuestObjectivePrimary" )
2348
    elseif ( style == bj_CAMPPINGSTYLE_PRIMARY_GREEN ) then
2349
        // green (different from the unit version)
2350
        set red     = 0
2351
        set green     = 255
2352
        set blue    = 0
2353
        set path    = SkinManagerGetLocalPath( "MinimapQuestObjectivePrimary" )
2354
    elseif ( style == bj_CAMPPINGSTYLE_PRIMARY_RED ) then
2355
        // green (different from the unit version)
2356
        set red     = 255
2357
        set green     = 0
2358
        set blue    = 0
2359
        set path    = SkinManagerGetLocalPath( "MinimapQuestObjectivePrimary" )
2360
    elseif ( style == bj_CAMPPINGSTYLE_BONUS ) then
2361
        // yellow
2362
        set red     = 255
2363
        set green     = 255
2364
        set blue    = 0
2365
        set path    = SkinManagerGetLocalPath( "MinimapQuestObjectiveBonus" )
2366
    elseif ( style == bj_CAMPPINGSTYLE_TURNIN ) then
2367
        // yellow
2368
        set red     = 255
2369
        set green     = 255
2370
        set blue    = 0
2371
        set path    = SkinManagerGetLocalPath( "MinimapQuestTurnIn" )
2372
    elseif ( style == bj_CAMPPINGSTYLE_BOSS ) then
2373
        // red
2374
        set red     = 255
2375
        set green     = 0
2376
        set blue    = 0
2377
        set path    = SkinManagerGetLocalPath( "MinimapQuestBoss" )
2378
    elseif ( style == bj_CAMPPINGSTYLE_CONTROL_ALLY ) then
2379
        // green
2380
        set red     = 0
2381
        set green     = 255
2382
        set blue    = 0
2383
        set path    = SkinManagerGetLocalPath( "MinimapQuestControlPoint" )
2384
    elseif ( style == bj_CAMPPINGSTYLE_CONTROL_NEUTRAL ) then
2385
        // white
2386
        set red     = 255
2387
        set green     = 255
2388
        set blue    = 255
2389
        set path    = SkinManagerGetLocalPath( "MinimapQuestControlPoint" )
2390
    elseif ( style == bj_CAMPPINGSTYLE_CONTROL_ENEMY ) then
2391
        // red
2392
        set red     = 255
2393
        set green     = 0
2394
        set blue    = 0
2395
        set path    = SkinManagerGetLocalPath( "MinimapQuestControlPoint" )
2396
    endif
2397
    call CreateMinimapIconAtLocBJ( where, red, green, blue, path, FOG_OF_WAR_MASKED )
2398
endfunction