mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 17:11:22 +00:00
Cooking Tooltip Eyesore Fix (#10103)
Cooking appliance tooltips only appear when you shift hover over them, instead of popping up wildly as you hover over the kitchen.
This commit is contained in:
@@ -32,7 +32,9 @@
|
||||
|
||||
/obj/machinery/appliance/cooker/MouseEntered(location, control, params)
|
||||
. = ..()
|
||||
if(get_dist(usr, src) <= 2)
|
||||
var/list/modifiers = params2list(params)
|
||||
if(modifiers["shift"] && get_dist(usr, src) <= 2)
|
||||
params = replacetext(params, "shift=1;", "") // tooltip doesn't appear unless this is stripped
|
||||
var/description = ""
|
||||
if(isemptylist(cooking_objs))
|
||||
description = "It is empty."
|
||||
|
||||
@@ -34,7 +34,9 @@
|
||||
|
||||
/obj/item/reagent_containers/cooking_container/MouseEntered(location, control, params)
|
||||
. = ..()
|
||||
if(get_dist(usr, src) <= 2)
|
||||
var/list/modifiers = params2list(params)
|
||||
if(modifiers["shift"] && get_dist(usr, src) <= 2)
|
||||
params = replacetext(params, "shift=1;", "") // tooltip doesn't appear unless this is stripped
|
||||
var/description
|
||||
if(length(contents))
|
||||
description = get_content_info()
|
||||
|
||||
Reference in New Issue
Block a user