Skip to content

Commit

Permalink
Заменил для некоторых вещей клик СКМ на Альт+СКМ, в целом ни на что н…
Browse files Browse the repository at this point in the history
…е влияет, т.к. у них были аналоги в виде обычного Альт клика
  • Loading branch information
Vallat committed Jul 2, 2021
1 parent 1bbb3df commit 92e5e30
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions code/_onclick/click.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
if(modifiers["middle"])
MiddleClickOn(A)
return 1
if(modifiers["middle"] && modifiers["alt"])
AltMiddleClickOn(A)
return 1
if(modifiers["shift"])
ShiftClickOn(A)
return 0
Expand Down Expand Up @@ -222,6 +225,9 @@
pointed(A)
return

/mob/proc/AltMiddleClickOn(var/atom/A)
return

// In case of use break glass
/*
/atom/proc/MiddleClick(var/mob/M as mob)
Expand Down
2 changes: 1 addition & 1 deletion code/_onclick/click_inf.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/mob/living/carbon/MiddleClickOn(atom/A)
/mob/living/carbon/AltMiddleClickOn(atom/A)
if(!stat && mind && iscarbon(A) && A != src)
var/datum/changeling/C = mind.changeling
if(C?.chosen_sting)
Expand Down
5 changes: 3 additions & 2 deletions code/_onclick/cyborg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@
return
return

//Middle click cycles through selected modules.
/mob/living/silicon/robot/MiddleClickOn(var/atom/A)
//Alt Middle click cycles through selected modules.
//Though we have "X" marcos for it and humans now can't swap hands using middle click, I'll let it be here
/mob/living/silicon/robot/AltMiddleClickOn(var/atom/A)
cycle_modules()
return

Expand Down
4 changes: 2 additions & 2 deletions code/_onclick/rig.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/mob/living/MiddleClickOn(atom/A)
/mob/living/AltMiddleClickOn(atom/A)
if(get_preference_value(/datum/client_preference/hardsuit_activation) == GLOB.PREF_MIDDLE_CLICK)
if(HardsuitClickOn(A))
return
Expand Down Expand Up @@ -51,4 +51,4 @@
if(ismob(A)) // No instant mob attacking - though modules have their own cooldowns
setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
return 1
return 0
return 0

0 comments on commit 92e5e30

Please sign in to comment.