overlays.Cut() -> cut_overlays() (take 3)

This commit is contained in:
mochi
2020-06-16 09:30:12 +02:00
parent 0e81b24a45
commit 5198bed3b8
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -110,7 +110,7 @@
UpdateIcon()
/obj/screen/movable/action_button/hide_toggle/proc/UpdateIcon()
overlays.Cut()
cut_overlays()
var/image/img = image(initial(icon), src, hidden ? "show" : "hide")
img.appearance_flags = RESET_COLOR | RESET_ALPHA
overlays += img
+3 -3
View File
@@ -107,7 +107,7 @@
return TRUE
/datum/action/proc/ApplyIcon(obj/screen/movable/action_button/current_button)
current_button.overlays.Cut()
current_button.cut_overlays()
if(icon_icon && button_icon_state)
var/image/img = image(icon_icon, current_button, button_icon_state)
img.appearance_flags = RESET_COLOR | RESET_ALPHA
@@ -143,7 +143,7 @@
return TRUE
/datum/action/item_action/ApplyIcon(obj/screen/movable/action_button/current_button)
current_button.overlays.Cut()
current_button.cut_overlays()
if(use_itemicon)
if(target)
var/obj/item/I = target
@@ -389,7 +389,7 @@
..()
/datum/action/item_action/toggle_research_scanner/ApplyIcon(obj/screen/movable/action_button/current_button)
current_button.overlays.Cut()
current_button.cut_overlays()
if(button_icon && button_icon_state)
var/image/img = image(button_icon, current_button, "scan_mode")
current_button.overlays += img