Alt click fix

This commit is contained in:
Artur
2020-09-08 17:56:05 +03:00
parent 21139001a7
commit b2fb23f4b9
3 changed files with 10 additions and 13 deletions
+2 -5
View File
@@ -319,15 +319,12 @@
return ..() return ..()
/* /*
Alt click Alt click
Unused except for AI Used as an alternate way to interact with things.
*/ */
/mob/proc/AltClickOn(atom/A) /mob/proc/AltClickOn(atom/A)
if(!A.AltClick(src)) if(!A.AltClick(src))
altclick_listed_turf(A) altclick_listed_turf(A)
. = SEND_SIGNAL(src, COMSIG_MOB_ALTCLICKON, A)
if(. & COMSIG_MOB_CANCEL_CLICKON)
return
A.AltClick(src)
/mob/proc/altclick_listed_turf(atom/A) /mob/proc/altclick_listed_turf(atom/A)
var/turf/T = get_turf(A) var/turf/T = get_turf(A)
+1 -1
View File
@@ -11,7 +11,7 @@
var/hidden_socks = FALSE var/hidden_socks = FALSE
//Mob procs //Mob procs
/mob/living/carbon/human/proc/underwear_toggle() /mob/living/carbon/human/verb/underwear_toggle()
set name = "Toggle undergarments" set name = "Toggle undergarments"
set category = "IC" set category = "IC"
+7 -7
View File
@@ -832,13 +832,13 @@ function draw_verbs(cat){
} }
function set_theme(which) { function set_theme(which) {
if (which == "light") { if (which == "light") {
document.body.className = ""; document.body.className = "";
set_style_sheet("browserOutput_white"); set_style_sheet("browserOutput_white");
} else if (which == "dark") { } else if (which == "dark" || which == "default") {
document.body.className = "dark"; document.body.className = "dark";
set_style_sheet("browserOutput"); set_style_sheet("browserOutput");
} }
} }
function set_style_sheet(sheet) { function set_style_sheet(sheet) {