From 5198bed3b84c92dc0e2a03d092e91a3867d592d4 Mon Sep 17 00:00:00 2001 From: mochi Date: Tue, 16 Jun 2020 09:30:12 +0200 Subject: [PATCH] overlays.Cut() -> cut_overlays() (take 3) --- code/_onclick/hud/action_button.dm | 2 +- code/datums/action.dm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/_onclick/hud/action_button.dm b/code/_onclick/hud/action_button.dm index fe6ed403011..752f38367ea 100644 --- a/code/_onclick/hud/action_button.dm +++ b/code/_onclick/hud/action_button.dm @@ -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 diff --git a/code/datums/action.dm b/code/datums/action.dm index 17c6b27ac98..4223d889de7 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -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