From 0e81b24a45f6ea7aaf3d67155d9cebb192950100 Mon Sep 17 00:00:00 2001 From: mochi Date: Mon, 15 Jun 2020 09:35:36 +0200 Subject: [PATCH] No red cross, just darken action button --- code/datums/action.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/datums/action.dm b/code/datums/action.dm index 0f34b39cea7..17c6b27ac98 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -95,10 +95,13 @@ ApplyIcon(button) - // If the action isn't available, put a big fat red X on top of the button + // If the action isn't available, darken the button if(!IsAvailable()) - var/image/img = image('icons/mob/screen_gen.dmi', icon_state = "x") + var/image/img = image('icons/mob/screen_white.dmi', icon_state = "template") + img.alpha = 200 img.appearance_flags = RESET_COLOR | RESET_ALPHA + img.color = "#000000" + img.plane = FLOAT_PLANE + 1 button.overlays += img return TRUE