mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #3225 from VOREStation/aro-tooltips
Tooltip framework + Mob tooltips
This commit is contained in:
@@ -285,3 +285,16 @@ Proc for attack log creation, because really why not
|
||||
else
|
||||
. = getCompoundIcon(desired)
|
||||
cached_character_icons[cachekey] = .
|
||||
|
||||
/proc/getviewsize(view)
|
||||
var/viewX
|
||||
var/viewY
|
||||
if(isnum(view))
|
||||
var/totalviewrange = 1 + 2 * view
|
||||
viewX = totalviewrange
|
||||
viewY = totalviewrange
|
||||
else
|
||||
var/list/viewrangelist = splittext(view,"x")
|
||||
viewX = text2num(viewrangelist[1])
|
||||
viewY = text2num(viewrangelist[2])
|
||||
return list(viewX, viewY)
|
||||
|
||||
Reference in New Issue
Block a user