Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
doom committed Sep 25, 2023
1 parent ae8151e commit 3be6e25
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions code/__HELPERS/icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -479,14 +479,16 @@ world
// Blend the overlay into the flattened icon
flat.Blend(add, blendMode2iconMode(curblend), layer_image.pixel_x + 2 - flatX1, layer_image.pixel_y + 2 - flatY1)

if(appearance.color)
if(apply_color && appearance.color)
if(islist(appearance.color))
flat.MapColors(arglist(appearance.color))
add.MapColors(arglist(appearance.color))
else
flat.Blend(appearance.color, ICON_MULTIPLY)
add.Blend(appearance.color, ICON_MULTIPLY)

if(appearance.alpha < 255)
flat.Blend(rgb(255, 255, 255, appearance.alpha), ICON_MULTIPLY)
if(alpha_apply && appearance.alpha < 255)
- flat.Blend(rgb(255, 255, 255, appearance.alpha), ICON_MULTIPLY)
+ // Blend the overlay into the flattened icon
+ flat.Blend(add, blendMode2iconMode(curblend), layer_image.pixel_x + 2 - flatX1, layer_image.pixel_y + 2 - flatY1)

if(no_anim)
//Clean up repeated frames
Expand Down

0 comments on commit 3be6e25

Please sign in to comment.