No red cross, just darken action button

This commit is contained in:
mochi
2020-06-15 09:35:36 +02:00
parent 0e9cfc6d60
commit 0e81b24a45
+5 -2
View File
@@ -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