Improves status bar coverage (#57916)

This PR makes sure all MouseEntered() procs call their parent, which handles the status bar. This fixes instances where the status bar was missing, for example when you hovered over the ghost buttons, you would not be shown a name of the button, but completely different object, like "space", which was very misleading. This also means that the new status bar should have better parity the with the old status bar, which also showed these things.
This commit is contained in:
Arkatos1
2021-03-25 12:46:12 -04:00
committed by GitHub
parent 6250be8331
commit 82dba0c2bc
8 changed files with 13 additions and 7 deletions
+1
View File
@@ -158,6 +158,7 @@
. += hidden ? show_appearance : hide_appearance
/atom/movable/screen/movable/action_button/MouseEntered(location,control,params)
. = ..()
if(!QDELETED(src))
openToolTip(usr,src,params,title = name,content = desc,theme = actiontooltipstyle)
+1
View File
@@ -107,6 +107,7 @@
/atom/movable/screen/alert/MouseEntered(location,control,params)
. = ..()
if(!QDELETED(src))
openToolTip(usr,src,params,title = name,content = desc,theme = alerttooltipstyle)
+3 -2
View File
@@ -3,6 +3,7 @@
icon = 'icons/hud/blob.dmi'
/atom/movable/screen/blob/MouseEntered(location,control,params)
. = ..()
openToolTip(usr,src,params,title = name,content = desc, theme = "blob")
/atom/movable/screen/blob/MouseExited()
@@ -42,7 +43,7 @@
else
name = initial(name)
desc = initial(desc)
..()
return ..()
/atom/movable/screen/blob/jump_to_core/Click()
if(isovermind(usr))
@@ -130,7 +131,7 @@
else
name = "[initial(name)] ([BLOB_POWER_REROLL_COST])"
desc = "Allows you to choose a new strain from [BLOB_POWER_REROLL_CHOICES] random choices for [BLOB_POWER_REROLL_COST] resources."
..()
return ..()
/atom/movable/screen/blob/readapt_strain/Click()
if(isovermind(usr))
+1
View File
@@ -18,6 +18,7 @@
update_appearance()
/atom/movable/screen/wanted/MouseEntered(location,control,params)
. = ..()
openToolTip(usr,src,params,title = name,content = desc, theme = "alerttooltipstyle")
/atom/movable/screen/wanted/MouseExited()
+2 -1
View File
@@ -1,7 +1,8 @@
/atom/movable/screen/ghost
icon = 'icons/hud/screen_ghost.dmi'
/atom/movable/screen/ghost/MouseEntered()
/atom/movable/screen/ghost/MouseEntered(location, control, params)
. = ..()
flick(icon_state + "_anim", src)
/atom/movable/screen/ghost/spawners_menu
+3 -2
View File
@@ -149,8 +149,8 @@
usr.update_inv_hands()
return TRUE
/atom/movable/screen/inventory/MouseEntered()
..()
/atom/movable/screen/inventory/MouseEntered(location, control, params)
. = ..()
add_overlays()
/atom/movable/screen/inventory/MouseExited()
@@ -500,6 +500,7 @@
return set_selected_zone(choice, usr)
/atom/movable/screen/zone_sel/MouseEntered(location, control, params)
. = ..()
MouseMove(location, control, params)
/atom/movable/screen/zone_sel/MouseMove(location, control, params)
+1 -1
View File
@@ -19,7 +19,7 @@
desc += "<br><font size=3><b>Current Bloodthirst: [HG.bloodlust]</b></font>\
<br>Becomes undroppable at <b>[HIS_GRACE_FAMISHED]</b>\
<br>Will consume you at <b>[HIS_GRACE_CONSUME_OWNER]</b>"
..()
return ..()
/datum/status_effect/his_grace/on_apply()
owner.log_message("gained His Grace's stun immunity", LOG_ATTACK)
+1 -1
View File
@@ -17,7 +17,7 @@
. = ..()
to_chat(usr, info_text)
/obj/effect/abstract/info/MouseEntered()
/obj/effect/abstract/info/MouseEntered(location, control, params)
. = ..()
icon_state = "info_hovered"