mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Mass replace
This commit is contained in:
@@ -41,7 +41,7 @@ Notes:
|
||||
|
||||
|
||||
/datum/tooltip/New(client/C)
|
||||
if (C)
|
||||
if(C)
|
||||
owner = C
|
||||
owner << browse(file2text(file), "window=[control]")
|
||||
|
||||
@@ -49,21 +49,21 @@ Notes:
|
||||
|
||||
|
||||
/datum/tooltip/proc/show(atom/movable/thing, params = null, title = null, content = null, theme = "default", special = "none")
|
||||
if (!thing || !params || (!title && !content) || !owner || !isnum(world.icon_size))
|
||||
if(!thing || !params || (!title && !content) || !owner || !isnum(world.icon_size))
|
||||
return 0
|
||||
if (!init)
|
||||
if(!init)
|
||||
//Initialize some vars
|
||||
init = 1
|
||||
owner << output(list2params(list(world.icon_size, control)), "[control]:tooltip.init")
|
||||
|
||||
showing = 1
|
||||
|
||||
if (title && content)
|
||||
if(title && content)
|
||||
title = "<h1>[title]</h1>"
|
||||
content = "<p>[content]</p>"
|
||||
else if (title && !content)
|
||||
else if(title && !content)
|
||||
title = "<p>[title]</p>"
|
||||
else if (!title && content)
|
||||
else if(!title && content)
|
||||
content = "<p>[content]</p>"
|
||||
|
||||
//Make our dumb param object
|
||||
@@ -74,7 +74,7 @@ Notes:
|
||||
|
||||
//If a hide() was hit while we were showing, run hide() again to avoid stuck tooltips
|
||||
showing = 0
|
||||
if (queueHide)
|
||||
if(queueHide)
|
||||
hide()
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user