-- Set Team Colours
on teamColourID set val do
(
if (val != 1) then
(
local tcInd = val - 1
teamColourDiff = teamColourDiffList[tcInd]
)
)
on teamColourDiff set val do
(
delegate.diffuse = val
this.TeamColourSetupUI()
)
on teamColourEmiss set val do
(
-- not working yet
-- delegate.selfIllumColor = val
)
-- Set Maps
on diffuseMap set val do
(
compMap.mapList[1] = val
)
on decalMap set val do
(
local dmap = val
if (dmap != undefined) then
(
local dmapClass = classOf dmap as string
if (dmapClass == "sc2bitmap") then
(
dmap.isDecal = true
dmap.preMultAlpha = false
)
)
compMap.mapList[2] = dmap
)