mass ports like 15 tg prs + counting (#13386)
* changes * ok * changes * sigh * fixes * changes * fix * fix * alright * fixes git pus * fix * fix * fix * test * ok * Update code/modules/paperwork/ticketmachine.dm Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com> * ok * compile and other stuff * ok * fix * fix * Fix * Update menu.dm * Update view.dm * Update preferences.dm Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com> Co-authored-by: Putnam3145 <putnam3145@gmail.com>
This commit is contained in:
@@ -25,41 +25,32 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/binoculars/proc/on_wield(obj/item/source, mob/user)
|
||||
RegisterSignal(user, COMSIG_MOVABLE_MOVED, .proc/unwield)
|
||||
RegisterSignal(user, COMSIG_MOVABLE_MOVED, .proc/on_walk)
|
||||
RegisterSignal(user, COMSIG_ATOM_DIR_CHANGE, .proc/rotate)
|
||||
listeningTo = user
|
||||
user.visible_message("<span class='notice'>[user] holds [src] up to [user.p_their()] eyes.</span>", "<span class='notice'>You hold [src] up to your eyes.</span>")
|
||||
item_state = "binoculars_wielded"
|
||||
user.regenerate_icons()
|
||||
if(!user?.client)
|
||||
return
|
||||
var/client/C = user.client
|
||||
var/_x = 0
|
||||
var/_y = 0
|
||||
switch(user.dir)
|
||||
if(NORTH)
|
||||
_y = zoom_amt
|
||||
if(EAST)
|
||||
_x = zoom_amt
|
||||
if(SOUTH)
|
||||
_y = -zoom_amt
|
||||
if(WEST)
|
||||
_x = -zoom_amt
|
||||
C.change_view(world.view + zoom_out_amt)
|
||||
C.pixel_x = world.icon_size*_x
|
||||
C.pixel_y = world.icon_size*_y
|
||||
user.client.view_size.zoomOut(zoom_out_amt, zoom_amt, user.dir)
|
||||
|
||||
/obj/item/binoculars/proc/rotate(atom/thing, old_dir, new_dir)
|
||||
if(ismob(thing))
|
||||
var/mob/lad = thing
|
||||
lad.regenerate_icons()
|
||||
lad.client.view_size.zoomOut(zoom_out_amt, zoom_amt, new_dir)
|
||||
|
||||
/obj/item/binoculars/proc/on_walk()
|
||||
attack_self(listeningTo) //Yes I have sinned, why do you ask?
|
||||
|
||||
/obj/item/binoculars/proc/on_unwield(obj/item/source, mob/user)
|
||||
unwield(user)
|
||||
|
||||
/obj/item/binoculars/proc/unwield(mob/user)
|
||||
if(listeningTo)
|
||||
UnregisterSignal(listeningTo, COMSIG_MOVABLE_MOVED)
|
||||
UnregisterSignal(user, COMSIG_MOVABLE_MOVED)
|
||||
UnregisterSignal(user, COMSIG_ATOM_DIR_CHANGE)
|
||||
listeningTo = null
|
||||
user.visible_message("<span class='notice'>[user] lowers [src].</span>", "<span class='notice'>You lower [src].</span>")
|
||||
item_state = "binoculars"
|
||||
user.regenerate_icons()
|
||||
if(user && user.client)
|
||||
user.regenerate_icons()
|
||||
var/client/C = user.client
|
||||
C.change_view(CONFIG_GET(string/default_view))
|
||||
user.client.pixel_x = 0
|
||||
user.client.pixel_y = 0
|
||||
user.client.view_size.zoomIn()
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
var/starting_tape_type = /obj/item/tape/random
|
||||
var/open_panel = 0
|
||||
var/canprint = 1
|
||||
|
||||
var/list/icons_available = list()
|
||||
var/icon_directory = 'icons/radials/taperecorder.dmi'
|
||||
|
||||
/obj/item/taperecorder/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -32,6 +33,29 @@
|
||||
. = ..()
|
||||
. += "The wire panel is [open_panel ? "opened" : "closed"]."
|
||||
|
||||
/obj/item/taperecorder/AltClick(mob/user)
|
||||
. = ..()
|
||||
play()
|
||||
|
||||
/obj/item/taperecorder/proc/update_available_icons()
|
||||
icons_available = list()
|
||||
|
||||
if(recording)
|
||||
icons_available += list("Stop Recording" = image(icon = icon_directory, icon_state = "record_stop"))
|
||||
else
|
||||
if(!playing)
|
||||
icons_available += list("Record" = image(icon = icon_directory, icon_state = "record"))
|
||||
|
||||
if(playing)
|
||||
icons_available += list("Pause" = image(icon = icon_directory, icon_state = "pause"))
|
||||
else
|
||||
if(!recording)
|
||||
icons_available += list("Play" = image(icon = icon_directory, icon_state = "play"))
|
||||
|
||||
if(canprint && !recording && !playing)
|
||||
icons_available += list("Print Transcript" = image(icon = icon_directory, icon_state = "print"))
|
||||
if(mytape)
|
||||
icons_available += list("Eject" = image(icon = icon_directory, icon_state = "eject"))
|
||||
|
||||
/obj/item/taperecorder/attackby(obj/item/I, mob/user, params)
|
||||
if(!mytape && istype(I, /obj/item/tape))
|
||||
@@ -69,7 +93,6 @@
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
/obj/item/taperecorder/verb/ejectverb()
|
||||
set name = "Eject Tape"
|
||||
set category = "Object"
|
||||
@@ -81,7 +104,6 @@
|
||||
|
||||
eject(usr)
|
||||
|
||||
|
||||
/obj/item/taperecorder/update_icon_state()
|
||||
if(!mytape)
|
||||
icon_state = "taperecorder_empty"
|
||||
@@ -92,7 +114,6 @@
|
||||
else
|
||||
icon_state = "taperecorder_idle"
|
||||
|
||||
|
||||
/obj/item/taperecorder/Hear(message, atom/movable/speaker, message_langs, raw_message, radio_freq, spans, message_mode, atom/movable/source)
|
||||
. = ..()
|
||||
if(mytape && recording)
|
||||
@@ -193,13 +214,31 @@
|
||||
|
||||
|
||||
/obj/item/taperecorder/attack_self(mob/user)
|
||||
if(!mytape || mytape.ruined)
|
||||
if(!mytape)
|
||||
to_chat(user, "<span class='notice'>The [src] does not have a tape inside.</span>")
|
||||
return
|
||||
if(mytape.ruined)
|
||||
to_chat(user, "<span class='notice'>The tape inside the [src] appears to be broken.</span>")
|
||||
return
|
||||
if(recording)
|
||||
stop()
|
||||
else
|
||||
record()
|
||||
|
||||
update_available_icons()
|
||||
if(icons_available)
|
||||
var/selection = show_radial_menu(user, src, icons_available, radius = 38, require_near = TRUE, tooltips = TRUE)
|
||||
if(!selection)
|
||||
return
|
||||
switch(selection)
|
||||
if("Pause")
|
||||
stop()
|
||||
if("Stop Recording") // yes we actually need 2 seperate stops for the same proc- Hopek
|
||||
stop()
|
||||
if("Record")
|
||||
record()
|
||||
if("Play")
|
||||
play()
|
||||
if("Print Transcript")
|
||||
print_transcript()
|
||||
if("Eject")
|
||||
eject(user)
|
||||
|
||||
/obj/item/taperecorder/verb/print_transcript()
|
||||
set name = "Print Transcript"
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
msg = "You hear something crackle in your ears for a moment before a voice speaks. \"Please stand by for a message from Central Command. Message as follows: <span class='bold'>Item request received. Your package is inbound, please stand back from the landing site.</span> Message ends.\""
|
||||
to_chat(M, msg)
|
||||
|
||||
new /obj/effect/abstract/DPtarget(get_turf(src), pod)
|
||||
new /obj/effect/pod_landingzone(get_turf(src), pod)
|
||||
|
||||
/obj/item/choice_beacon/ingredients
|
||||
name = "ingredient box delivery beacon"
|
||||
|
||||
Reference in New Issue
Block a user