From a364d2d032dadb219f2c6df3478c9a975b35f78a Mon Sep 17 00:00:00 2001 From: Arkatos1 Date: Fri, 5 Apr 2019 20:11:41 +0200 Subject: [PATCH 1/2] Descriptions now shows with mouse hover over action buttons --- code/datums/action.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/datums/action.dm b/code/datums/action.dm index 31b62e868dc..2e1102ecd18 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -23,7 +23,8 @@ button = new button.linked_action = src button.name = name - + if(desc) + button.desc = desc /datum/action/Destroy() if(owner) Remove(owner) @@ -82,6 +83,7 @@ if(button) button.icon = button_icon button.icon_state = background_icon_state + button.desc = desc ApplyIcon(button) @@ -434,6 +436,7 @@ var/obj/effect/proc_holder/spell/S = target S.action = src name = S.name + desc = S.desc button_icon = S.action_icon button_icon_state = S.action_icon_state background_icon_state = S.action_background_icon_state From 52a051f7e9467162e185403a510f5bbcda128a14 Mon Sep 17 00:00:00 2001 From: Arkatos1 Date: Fri, 5 Apr 2019 20:13:13 +0200 Subject: [PATCH 2/2] Code improvement --- code/datums/action.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/datums/action.dm b/code/datums/action.dm index 2e1102ecd18..d316bd29b41 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -25,6 +25,7 @@ button.name = name if(desc) button.desc = desc + /datum/action/Destroy() if(owner) Remove(owner)