@@ -390,26 +390,7 @@ var/list/mind_ui_ID2type = list()
390390 if (element_flags & MINDUI_FLAG_TOOLTIP )
391391 var /mob /M = GetUser()
392392 if (M)
393- // I hate this, I hate this, but somehow the tooltips won't appear in the right place unless I do this black magic
394- // this only happens with mindUI elements, but the more offset from the center the elements are, tooltips become even more offset.
395- // this code corrects this extra offset.
396- var /list /param_list = params2list(params)
397- var /screenloc = param_list[" screen-loc" ]
398- var /x_index = findtext(screenloc, " :" , 1 , 0 )
399- var /comma_index = findtext(screenloc," ," , x_index, 0 )
400- var /y_index = findtext(screenloc," :" , comma_index, 0 )
401- var /x_loc = text2num(copytext(screenloc, 1 , x_index))
402- var /y_loc = text2num(copytext(screenloc, comma_index+ 1 , y_index))
403- if (x_loc <= 7 )
404- x_loc = 7
405- else
406- x_loc = 9
407- if (y_loc <= 7 )
408- y_loc = 7
409- else
410- y_loc = 9
411393 M. client?. tooltips. show(src ,mouse= params,title = tooltip_title, content= tooltip_content, theme= tooltip_theme)
412- // openToolTip(M,src,"icon-x=1;icon-y=1;screen-loc=[x_loc]:1,[y_loc]:1",title = tooltip_title,content = tooltip_content,theme = tooltip_theme)
413394
414395/ obj / abstract/ mind_ui_element/ hoverable/ proc / StopHovering()
415396 if (hover_state)
0 commit comments