From 86cb91e6536b35f48c081153d923f3f366e306bd Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 14 Feb 2026 01:22:44 -0500 Subject: [PATCH] Fix Kommand reset not updating action icon (#95107) ## About The Pull Request Fix Kommand reset not updating action icon. ## Why It's Good For The Game Fixes the Kommand icon staying the set color even after being reset. ## Changelog :cl: fix: The Kommand action icon will now properly reflect your pointer colour after being reset. /:cl: Co-authored-by: Jordan Dominion --- .../library/skill_learning/generic_skillchips/point.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/library/skill_learning/generic_skillchips/point.dm b/code/modules/library/skill_learning/generic_skillchips/point.dm index a8270e3733a..af9e709efbc 100644 --- a/code/modules/library/skill_learning/generic_skillchips/point.dm +++ b/code/modules/library/skill_learning/generic_skillchips/point.dm @@ -80,13 +80,15 @@ build_all_button_icons(update_flags = UPDATE_BUTTON_ICON, force = TRUE) /datum/action/change_pointer_color/apply_button_icon(atom/movable/screen/movable/action_button/current_button, force = FALSE) + var/initial_icon = /obj/effect/temp_visual/point::icon + current_button.cut_overlay(arrow_overlay) if(!arrow_color) + current_button.icon = initial_icon + current_button.icon_state = /obj/effect/temp_visual/point::icon_state return ..() current_button.icon = current_button.icon_state = null - current_button.cut_overlay(arrow_overlay) - - arrow_overlay = mutable_appearance(icon = /obj/effect/temp_visual/point::icon, icon_state = "arrow_large_white_still") + arrow_overlay = mutable_appearance(icon = initial_icon, icon_state = "arrow_large_white_still") arrow_overlay.color = arrow_color - arrow_overlay.overlays += mutable_appearance(icon = /obj/effect/temp_visual/point::icon, icon_state = "arrow_large_white_still_highlights", appearance_flags = RESET_COLOR) + arrow_overlay.overlays += mutable_appearance(icon = initial_icon, icon_state = "arrow_large_white_still_highlights", appearance_flags = RESET_COLOR) current_button.add_overlay(arrow_overlay)