Skip to content

Commit a02a908

Browse files
committed
what a wonderful world
1 parent 7c40390 commit a02a908

2 files changed

Lines changed: 0 additions & 38 deletions

File tree

code/_onclick/mindUI/_mindUI.dm

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

code/_onclick/mindUI/bloodcult/draw_runes.dm

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -105,26 +105,7 @@
105105
if (element_flags & MINDUI_FLAG_TOOLTIP)//copied from _mindUI.dm
106106
var/mob/M = GetUser()
107107
if (M)
108-
//I hate this, I hate this, but somehow the tooltips won't appear in the right place unless I do this black magic
109-
//this only happens with mindUI elements, but the more offset from the center the elements are, tooltips become even more offset.
110-
//this code corrects this extra offset.
111-
var/list/param_list = params2list(params)
112-
var/screenloc = param_list["screen-loc"]
113-
var/x_index = findtext(screenloc, ":", 1, 0)
114-
var/comma_index = findtext(screenloc,",", x_index, 0)
115-
var/y_index = findtext(screenloc,":", comma_index, 0)
116-
var/x_loc = text2num(copytext(screenloc, 1, x_index))
117-
var/y_loc = text2num(copytext(screenloc, comma_index+1, y_index))
118-
if (x_loc <= 7)
119-
x_loc = 7
120-
else
121-
x_loc = 9
122-
if (y_loc <= 7)
123-
y_loc = 7
124-
else
125-
y_loc = 9
126108
M.client?.tooltips.show(src,mouse=params,title = tooltip_title, content=tooltip_content, theme=tooltip_theme)
127-
//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)
128109

129110
/obj/abstract/mind_ui_element/hoverable/rune_word/StopHovering()
130111
hovering = FALSE

0 commit comments

Comments
 (0)