mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Start of TG Click Code Port (#12071)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c3efdda013
commit
f7de0bb70b
@@ -108,7 +108,7 @@
|
||||
// Description: Checks if the user is made of silicon and returns if they are. If the user is not made of silicon and can use the communicator,
|
||||
// removes the ID from the communicator if it has one, or sends a chat message indicating that the communicator does not have an ID.
|
||||
|
||||
/obj/item/communicator/AltClick()
|
||||
/obj/item/communicator/click_alt()
|
||||
if(issilicon(usr))
|
||||
return
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
compass.show_waypoint("\ref[gps]")
|
||||
compass.rebuild_overlay_lists(update_compass_icon)
|
||||
|
||||
/obj/item/gps/AltClick(mob/user)
|
||||
/obj/item/gps/click_alt(mob/user)
|
||||
toggletracking(user)
|
||||
|
||||
/obj/item/gps/proc/toggletracking(mob/living/user)
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/personal_shield_generator/AltClick(mob/living/user)
|
||||
/obj/item/personal_shield_generator/click_alt(mob/living/user)
|
||||
weapon_toggle()
|
||||
|
||||
/obj/item/personal_shield_generator/MouseDrop()
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
set_light_on(TRUE)
|
||||
|
||||
//VOREStation Add Start
|
||||
/obj/item/radio/intercom/AICtrlClick(var/mob/user)
|
||||
/obj/item/radio/intercom/ctrl_click_ai(var/mob/user)
|
||||
ToggleBroadcast()
|
||||
to_chat(user, span_notice("\The [src]'s microphone is now <b>[broadcasting ? "enabled" : "disabled"]</b>."))
|
||||
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
if(ismob(loc))
|
||||
loc.runechat_message("\[TTS Voice\] [message]")
|
||||
|
||||
/obj/item/text_to_speech/AltClick(mob/user) // QOL Change
|
||||
/obj/item/text_to_speech/click_alt(mob/user) // QOL Change
|
||||
attack_self(user)
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
add_overlay(corptag_icon_state)
|
||||
|
||||
/obj/structure/closet/body_bag/cryobag/robobag/AltClick(mob/user)
|
||||
/obj/structure/closet/body_bag/cryobag/robobag/click_alt(mob/user)
|
||||
if(!Adjacent(user))
|
||||
..()
|
||||
if(corptag)
|
||||
|
||||
@@ -62,7 +62,7 @@ var/list/marker_beacon_colors = list(
|
||||
var/obj/structure/marker_beacon/M = new(user.loc, picked_color)
|
||||
transfer_fingerprints_to(M)
|
||||
|
||||
/obj/item/stack/marker_beacon/AltClick(mob/living/user)
|
||||
/obj/item/stack/marker_beacon/click_alt(mob/living/user)
|
||||
if(user.incapacitated() || !istype(user))
|
||||
to_chat(user, span_warning("You can't do that right now!"))
|
||||
return
|
||||
@@ -138,7 +138,7 @@ var/list/marker_beacon_colors = list(
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/structure/marker_beacon/AltClick(mob/living/user)
|
||||
/obj/structure/marker_beacon/click_alt(mob/living/user)
|
||||
..()
|
||||
if(perma)
|
||||
return
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
adjusted_name = sane_name
|
||||
return TRUE
|
||||
|
||||
/obj/item/toy/plushie/customizable/AltClick(mob/user)
|
||||
/obj/item/toy/plushie/customizable/click_alt(mob/user)
|
||||
tgui_interact(user)
|
||||
|
||||
/obj/item/toy/plushie/customizable/dragon
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
H.update_inv_l_hand()
|
||||
H.update_inv_r_hand()
|
||||
|
||||
/obj/item/toy/sword/AltClick(mob/living/user)
|
||||
/obj/item/toy/sword/click_alt(mob/living/user)
|
||||
if(!in_range(src, user)) //Basic checks to prevent abuse
|
||||
return
|
||||
if(user.incapacitated() || !istype(user))
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
icon = 'icons/obj/drakietoy.dmi'
|
||||
var/lights_glowing = FALSE
|
||||
|
||||
/obj/item/toy/plushie/borgplushie/drake/AltClick(mob/living/user)
|
||||
/obj/item/toy/plushie/borgplushie/drake/click_alt(mob/living/user)
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
if(!T.AdjacentQuick(user)) // So people aren't messing with these from across the room
|
||||
@@ -1033,7 +1033,7 @@
|
||||
/obj/item/toy/desk/attack_self(mob/user)
|
||||
activate(user)
|
||||
|
||||
/obj/item/toy/desk/AltClick(mob/user)
|
||||
/obj/item/toy/desk/click_alt(mob/user)
|
||||
activate(user)
|
||||
|
||||
/obj/item/toy/desk/MouseDrop(mob/user as mob) // Code from Paper bin, so you can still pick up the deck
|
||||
|
||||
@@ -54,7 +54,7 @@ GLOBAL_LIST_INIT(robot_glass_options, list(
|
||||
balloon_alert(user,"the fabricator now holds [stored_matter]/30 fabrication-units.")
|
||||
return
|
||||
|
||||
/obj/item/rsf/CtrlClick(mob/living/user)
|
||||
/obj/item/rsf/item_ctrl_click(mob/living/user)
|
||||
if(!Adjacent(user) || !istype(user))
|
||||
balloon_alert(user,"you are too far away.")
|
||||
return
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
|
||||
|
||||
|
||||
/obj/item/melee/energy/AltClick(mob/living/user)
|
||||
/obj/item/melee/energy/click_alt(mob/living/user)
|
||||
if(!colorable) //checks if is not colorable
|
||||
return
|
||||
if(!in_range(src, user)) //Basic checks to prevent abuse
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
H.update_inv_l_hand()
|
||||
H.update_inv_r_hand()
|
||||
|
||||
/obj/item/shield/energy/AltClick(mob/living/user)
|
||||
/obj/item/shield/energy/click_alt(mob/living/user)
|
||||
if(!in_range(src, user)) //Basic checks to prevent abuse
|
||||
return
|
||||
if(user.incapacitated() || !istype(user))
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
if(0)
|
||||
to_chat(usr, "[src] now opens as a container.")
|
||||
|
||||
/obj/item/storage/quickdraw/AltClick(mob/user)
|
||||
/obj/item/storage/quickdraw/click_alt(mob/user)
|
||||
..()
|
||||
if(src.loc == user) //Are they carrying us?
|
||||
toggle_quickdraw()
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/storage/secure/AltClick(mob/user as mob)
|
||||
/obj/item/storage/secure/click_alt(mob/user as mob)
|
||||
if (isliving(user) && Adjacent(user) && (src.locked == 1))
|
||||
to_chat(user, span_warning("[src] is locked and cannot be opened!"))
|
||||
else if (isliving(user) && Adjacent(user) && (!src.locked))
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
usr.put_in_l_hand(src)
|
||||
src.add_fingerprint(usr)
|
||||
|
||||
/obj/item/storage/AltClick(mob/user)
|
||||
/obj/item/storage/click_alt(mob/user)
|
||||
if(user in is_seeing)
|
||||
src.close(user)
|
||||
// I would think there should be some incap check here or something
|
||||
|
||||
Reference in New Issue
Block a user