Merge pull request #11244 from Arkatos1/Action_Tooltip

Descriptions now show with a mouse hover over action buttons
This commit is contained in:
variableundefined
2019-04-07 21:20:20 +08:00
committed by GitHub
+4
View File
@@ -23,6 +23,8 @@
button = new
button.linked_action = src
button.name = name
if(desc)
button.desc = desc
/datum/action/Destroy()
if(owner)
@@ -82,6 +84,7 @@
if(button)
button.icon = button_icon
button.icon_state = background_icon_state
button.desc = desc
ApplyIcon(button)
@@ -434,6 +437,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