mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 15:45:05 +01:00
21b4095dfd
Upstream 04/17/2026 fixes https://github.com/Bubberstation/Bubberstation/issues/5549 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> Co-authored-by: rageguy505 <54517726+rageguy505@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Aliceee2ch <160794176+Aliceee2ch@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: Maxipat <108554989+Maxipat112@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: loganuk <fakeemail123@aol.com> Co-authored-by: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Roxy <75404941+TealSeer@users.noreply.github.com> Co-authored-by: Lucy <lucy@absolucy.moe> Co-authored-by: siliconOpossum <138069572+siliconOpossum@users.noreply.github.com> Co-authored-by: Isratosh <Isratosh@hotmail.com> Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> Co-authored-by: Neocloudy <88008002+Neocloudy@users.noreply.github.com> Co-authored-by: Alexander V. <volas@ya.ru> Co-authored-by: ElGitificador <168473461+ElGitificador@users.noreply.github.com> Co-authored-by: Twaticus <46540570+Twaticus@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Layzu666 <121319428+Layzu666@users.noreply.github.com> Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: mrmanlikesbt <99309552+mrmanlikesbt@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: John F. Kennedy <54908920+MacaroniCritter@users.noreply.github.com> Co-authored-by: Cursor <102828457+theselfish@users.noreply.github.com> Co-authored-by: Josh <josh.adam.powell@gmail.com> Co-authored-by: Josh Powell <josh.powell@softwire.com> Co-authored-by: Yobrocharlie <Charliemiller5617@gmail.com> Co-authored-by: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Co-authored-by: shayoki <96078776+shayoki@users.noreply.github.com> Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
251 lines
6.0 KiB
Plaintext
251 lines
6.0 KiB
Plaintext
/atom/movable/screen/ai
|
|
icon = 'icons/hud/screen_ai.dmi'
|
|
mouse_over_pointer = MOUSE_HAND_POINTER
|
|
|
|
/atom/movable/screen/ai/Click()
|
|
if(isobserver(usr) || usr.incapacitated)
|
|
return TRUE
|
|
|
|
/atom/movable/screen/ai/aicore
|
|
name = "AI core"
|
|
icon_state = "ai_core"
|
|
screen_loc = ui_ai_core
|
|
|
|
/atom/movable/screen/ai/aicore/Click()
|
|
if(!isAI(usr))
|
|
return
|
|
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.view_core()
|
|
|
|
/atom/movable/screen/ai/camera_list
|
|
name = "Show Camera List"
|
|
icon_state = "camera"
|
|
screen_loc = ui_ai_camera_list
|
|
|
|
/atom/movable/screen/ai/camera_list/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.show_camera_list()
|
|
|
|
/atom/movable/screen/ai/camera_track
|
|
name = "Track With Camera"
|
|
icon_state = "track"
|
|
screen_loc = ui_ai_track_with_camera
|
|
|
|
/atom/movable/screen/ai/camera_track/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.ai_camera_track()
|
|
|
|
/atom/movable/screen/ai/camera_light
|
|
name = "Toggle Camera Light"
|
|
icon_state = "camera_light"
|
|
screen_loc = ui_ai_camera_light
|
|
|
|
/atom/movable/screen/ai/camera_light/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.toggle_camera_light()
|
|
|
|
/atom/movable/screen/ai/modpc
|
|
name = "Messenger"
|
|
icon_state = "pda_send"
|
|
screen_loc = ui_ai_mod_int
|
|
|
|
/atom/movable/screen/ai/modpc/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.modularInterface?.interact(AI)
|
|
|
|
/atom/movable/screen/ai/crew_monitor
|
|
name = "Crew Monitoring Console"
|
|
icon_state = "crew_monitor"
|
|
screen_loc = ui_ai_crew_monitor
|
|
|
|
/atom/movable/screen/ai/crew_monitor/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
GLOB.crewmonitor.show(AI,AI)
|
|
|
|
/atom/movable/screen/ai/crew_manifest
|
|
name = "Crew Manifest"
|
|
icon_state = "manifest"
|
|
screen_loc = ui_ai_crew_manifest
|
|
|
|
/atom/movable/screen/ai/crew_manifest/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.ai_roster()
|
|
|
|
/atom/movable/screen/ai/alerts
|
|
name = "Show Alerts"
|
|
icon_state = "alerts"
|
|
screen_loc = ui_ai_alerts
|
|
|
|
/atom/movable/screen/ai/alerts/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.alert_control.ui_interact(AI)
|
|
|
|
/atom/movable/screen/ai/announcement
|
|
name = "Make Vox Announcement"
|
|
icon_state = "announcement"
|
|
screen_loc = ui_ai_announcement
|
|
|
|
/atom/movable/screen/ai/announcement/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.announcement()
|
|
|
|
/atom/movable/screen/ai/call_shuttle
|
|
name = "Call Emergency Shuttle"
|
|
icon_state = "call_shuttle"
|
|
screen_loc = ui_ai_shuttle
|
|
|
|
/atom/movable/screen/ai/call_shuttle/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.ai_call_shuttle()
|
|
|
|
/atom/movable/screen/ai/state_laws
|
|
name = "State Laws"
|
|
icon_state = "state_laws"
|
|
screen_loc = ui_ai_state_laws
|
|
|
|
/atom/movable/screen/ai/state_laws/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.checklaws()
|
|
|
|
/atom/movable/screen/ai/image_take
|
|
name = "Take Image"
|
|
icon_state = "take_picture"
|
|
screen_loc = ui_ai_take_picture
|
|
|
|
/atom/movable/screen/ai/image_take/Click()
|
|
if(..())
|
|
return
|
|
if(isAI(usr))
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.aicamera.toggle_camera_mode(usr)
|
|
else if(iscyborg(usr))
|
|
var/mob/living/silicon/robot/R = usr
|
|
R.aicamera.toggle_camera_mode(usr)
|
|
|
|
/atom/movable/screen/ai/image_view
|
|
name = "View Images"
|
|
icon_state = "view_images"
|
|
screen_loc = ui_ai_view_images
|
|
|
|
/atom/movable/screen/ai/image_view/Click()
|
|
if(..())
|
|
return
|
|
if(isAI(usr))
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.aicamera.viewpictures(usr)
|
|
|
|
/atom/movable/screen/ai/sensors
|
|
name = "Sensor Augmentation"
|
|
icon_state = "ai_sensor"
|
|
screen_loc = ui_ai_sensor
|
|
|
|
/atom/movable/screen/ai/sensors/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/S = usr
|
|
S.toggle_sensors()
|
|
|
|
/atom/movable/screen/ai/multicam
|
|
name = "Multicamera Mode"
|
|
icon_state = "multicam"
|
|
screen_loc = ui_ai_multicam
|
|
|
|
/atom/movable/screen/ai/multicam/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.toggle_multicam()
|
|
|
|
/atom/movable/screen/ai/add_multicam
|
|
name = "New Camera"
|
|
icon_state = "new_cam"
|
|
screen_loc = ui_ai_add_multicam
|
|
|
|
/atom/movable/screen/ai/add_multicam/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.drop_new_multicam()
|
|
|
|
/atom/movable/screen/ai/floor_indicator
|
|
icon_state = "zindicator"
|
|
screen_loc = ui_ai_floor_indicator
|
|
|
|
/atom/movable/screen/ai/floor_indicator/Initialize(mapload, datum/hud/hud_owner)
|
|
. = ..()
|
|
if(istype(hud_owner))
|
|
RegisterSignal(hud_owner, COMSIG_HUD_OFFSET_CHANGED, PROC_REF(update_z))
|
|
update_z()
|
|
|
|
/atom/movable/screen/ai/floor_indicator/proc/update_z(datum/hud/source)
|
|
SIGNAL_HANDLER
|
|
var/mob/living/silicon/ai/ai = get_mob() //if you use this for anyone else i will find you
|
|
if(isnull(ai))
|
|
return
|
|
var/turf/locturf = isturf(ai.loc) ? get_turf(ai.eyeobj) : get_turf(ai) //must be a var cuz error
|
|
var/ai_z = locturf.z
|
|
var/text = "Level<br/>[ai_z]"
|
|
if(SSmapping.level_trait(ai_z, ZTRAIT_STATION))
|
|
text = "Floor<br/>[ai_z - 1]"
|
|
else if (SSmapping.level_trait(ai_z, ZTRAIT_NOPHASE))
|
|
text = "ERROR"
|
|
maptext = MAPTEXT_TINY_UNICODE("<div align='center' valign='middle' style='position:relative; top:0px; left:0px'>[text]</div>")
|
|
|
|
/atom/movable/screen/ai/go_up
|
|
name = "go up"
|
|
icon_state = "up"
|
|
screen_loc = ui_ai_godownup
|
|
|
|
/atom/movable/screen/ai/go_up/Initialize(mapload)
|
|
. = ..()
|
|
register_context()
|
|
|
|
/atom/movable/screen/ai/go_up/add_context(atom/source, list/context, obj/item/held_item, mob/user)
|
|
. = ..()
|
|
context[SCREENTIP_CONTEXT_LMB] = "Go up a floor"
|
|
return CONTEXTUAL_SCREENTIP_SET
|
|
|
|
/atom/movable/screen/ai/go_up/Click(location,control,params)
|
|
var/mob/ai = get_mob() //the core
|
|
flick("uppressed",src)
|
|
if(!isturf(ai.loc) || usr != ai) //aicard and stuff
|
|
return
|
|
ai.up()
|
|
|
|
/atom/movable/screen/ai/go_up/down
|
|
name = "go down"
|
|
icon_state = "down"
|
|
|
|
/atom/movable/screen/ai/go_up/down/add_context(atom/source, list/context, obj/item/held_item, mob/user)
|
|
. = ..()
|
|
context[SCREENTIP_CONTEXT_LMB] = "Go down a floor"
|
|
return CONTEXTUAL_SCREENTIP_SET
|
|
|
|
/atom/movable/screen/ai/go_up/down/Click(location,control,params)
|
|
var/mob/ai = get_mob() //the core
|
|
flick("downpressed",src)
|
|
if(!isturf(ai.loc) || usr != ai) //aicard and stuff
|
|
return
|
|
ai.down()
|