Merge pull request #15535 from SandPoot/statpanel

Statpanel update
This commit is contained in:
silicons
2022-03-10 16:50:59 -07:00
committed by GitHub
2 changed files with 330 additions and 108 deletions
+9 -1
View File
@@ -154,7 +154,15 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
var/atom/target = locate(href_list["statpanel_item_target"])
if(!target)
return
Click(target, target.loc, null, "[href_list["statpanel_item_shiftclick"]?"shift=1;":null][href_list["statpanel_item_ctrlclick"]?"ctrl=1;":null]&alt=[href_list["statpanel_item_altclick"]?"alt=1;":null]", FALSE, "statpanel")
var/button = "left=1"
switch(href_list["statpanel_item_click"])
if("middle")
button = "middle=1"
if("right")
button = "right=1"
else
button = "left=1"
Click(target, target.loc, null, "[button];[href_list["statpanel_item_shiftclick"]?"shift=1;":null][href_list["statpanel_item_ctrlclick"]?"ctrl=1;":null]&alt=[href_list["statpanel_item_altclick"]?"alt=1;":null]", FALSE, "statpanel")
/client/proc/is_content_unlocked()
if(!prefs.unlock_content)