Files
VOREStation/code/_onclick/hud/ai.dm
T
Will 2194b87de0 Fixing client eye (#18577)
* signal foundation

* reset_perspective implemented

* you too

* setting mob

* no

* fix

* tweak

* remote view element

* these too

* use element

* cleanup more manual code

* fix element

* mutation signal

* handle being dropped from holders, and fix pai hud

* handle qdel

* it's a component now

* ugly holder fix

* another fix

* follow view target

* item remote view

* doc update

* unneeded

* this needs a recode to work better

* many fixes

* these are all unneeded

* almost working viewerlist remotes

* this uses component too

* this needs to die to it's item

* don't allow spamming tgui menus

* tg style args

* fixing behaviors

* fuk

* working view release from holders

* only final matters

* comment order and disposal fix

* cryotube loc fix

* no mob should reset its view every life tick

* major improvements

* still forbid z level change even if we allow moving

* this too

* don't doubledip

* qdel on self is unneeded

* wipe remote views on logout

* vore bellies need to manually clear views

* fixAI hud

* belly release fixes

* cannot use binoculars in a vore belly

* pai card can be picked up and dropped correctly

* ventcrawl fix and distracted fix

* this is better

* forcemove

* vr console fix

* use flag for this

* belly stuff

* various cleanups

* oops

* fixes statue spell

* unneeded perspective clear

* automatic instead

* continued cleanup

* that was dumb

* needed

* none of this works

* are these even needed

* lets lock down to these

* lets try to make this work

* extremely close to working

* needs to solve final pai issues

* mob eye change signal

* Revert "mob eye change signal"

This reverts commit eedd5da934.

* significant progress

* safety

* expected to be not null

* likely not needed

* don't spam component changes

* endview on logout

* accessors

* egg fixing

* Revert "egg fixing"

This reverts commit 6a54049c69.

* getting closer

* even closer

* needs type

* close...

* extremely close to working

* fixing pai stuff

* this too

* promising fixes

* docs

* this is recursive move's responsibility tbh

* unneeded now

* oops

* better decouple

* topmost check

* cleanup

* holder released from egg fix

* pai fix for reset view

* debug info

* some better pai ejection code

* better way

* unneeded

* needs to be null

* better vision restore

* use correct handling

* no longer needed

* required

* handle decouple on mecha too

* name clarity

* do not allow double dipping zoom items

* ethereal jaunt needs a full cleanup later

* fix blackscreen flicker

* remove set machine from pda

* Update code/game/objects/items.dm

* Update code/game/objects/items.dm

* Update code/game/objects/items.dm

* Update code/game/objects/items.dm

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
2025-10-12 22:18:08 -04:00

168 lines
4.1 KiB
Plaintext

/mob/living/silicon/ai/create_mob_hud(datum/hud/HUD, apply_to_client = TRUE)
..()
HUD.ui_style = 'icons/mob/screen_ai.dmi'
HUD.adding = list()
HUD.other = list()
var/atom/movable/screen/using
//AI core
using = new /atom/movable/screen()
using.name = "AI Core"
using.icon = HUD.ui_style
using.icon_state = "ai_core"
using.screen_loc = ui_ai_core
using.layer = SCREEN_LAYER
HUD.adding += using
//Camera list
using = new /atom/movable/screen()
using.name = "Show Camera List"
using.icon = HUD.ui_style
using.icon_state = "camera"
using.screen_loc = ui_ai_camera_list
using.layer = SCREEN_LAYER
HUD.adding += using
//Track
using = new /atom/movable/screen()
using.name = "Track With Camera"
using.icon = HUD.ui_style
using.icon_state = "track"
using.screen_loc = ui_ai_track_with_camera
using.layer = SCREEN_LAYER
HUD.adding += using
//Camera light
using = new /atom/movable/screen()
using.name = "Toggle Camera Light"
using.icon = HUD.ui_style
using.icon_state = "camera_light"
using.screen_loc = ui_ai_camera_light
using.layer = SCREEN_LAYER
HUD.adding += using
//Crew Monitoring
using = new /atom/movable/screen()
using.name = "Crew Monitoring"
using.icon = HUD.ui_style
using.icon_state = "crew_monitor"
using.screen_loc = ui_ai_crew_monitor
using.layer = SCREEN_LAYER
HUD.adding += using
//Crew Manifest
using = new /atom/movable/screen()
using.name = "Show Crew Manifest"
using.icon = HUD.ui_style
using.icon_state = "manifest"
using.screen_loc = ui_ai_crew_manifest
using.layer = SCREEN_LAYER
HUD.adding += using
//Alerts
using = new /atom/movable/screen()
using.name = "Show Alerts"
using.icon = HUD.ui_style
using.icon_state = "alerts"
using.screen_loc = ui_ai_alerts
using.layer = SCREEN_LAYER
HUD.adding += using
//Announcement
using = new /atom/movable/screen()
using.name = "Announcement"
using.icon = HUD.ui_style
using.icon_state = "announcement"
using.screen_loc = ui_ai_announcement
using.layer = SCREEN_LAYER
HUD.adding += using
//Shuttle
using = new /atom/movable/screen()
using.name = "Call Emergency Shuttle"
using.icon = HUD.ui_style
using.icon_state = "call_shuttle"
using.screen_loc = ui_ai_shuttle
using.layer = SCREEN_LAYER
HUD.adding += using
//Laws
using = new /atom/movable/screen()
using.name = "State Laws"
using.icon = HUD.ui_style
using.icon_state = "state_laws"
using.screen_loc = ui_ai_state_laws
using.layer = SCREEN_LAYER
HUD.adding += using
//PDA Messenger
using = new /atom/movable/screen()
using.name = "PDA - Messenger"
using.icon = HUD.ui_style
using.icon_state = "pda_receive"
using.screen_loc = ui_ai_pda_log
using.layer = SCREEN_LAYER
HUD.adding += using
//Take image
using = new /atom/movable/screen()
using.name = "Take Image"
using.icon = HUD.ui_style
using.icon_state = "take_picture"
using.screen_loc = ui_ai_take_picture
using.layer = SCREEN_LAYER
HUD.adding += using
//View images
using = new /atom/movable/screen()
using.name = "View Images"
using.icon = HUD.ui_style
using.icon_state = "view_images"
using.screen_loc = ui_ai_view_images
using.layer = SCREEN_LAYER
HUD.adding += using
//Multicamera mode
using = new /atom/movable/screen()
using.name = "Multicamera Mode"
using.icon = HUD.ui_style
using.icon_state = "multicam"
using.screen_loc = ui_ai_multicam
using.layer = SCREEN_LAYER
HUD.adding += using
//Add multicamera camera
using = new /atom/movable/screen()
using.name = "New Camera"
using.icon = HUD.ui_style
using.icon_state = "new_cam"
using.screen_loc = ui_ai_add_multicam
using.layer = SCREEN_LAYER
HUD.adding += using
//Up and Down
using = new /atom/movable/screen()
using.name = "Move Up"
using.icon = HUD.ui_style
using.icon_state = "up"
using.screen_loc = ui_ai_updown
using.layer = SCREEN_LAYER
HUD.adding += using
using = new /atom/movable/screen()
using.name = "Move Down"
using.icon = HUD.ui_style
using.icon_state = "down"
using.screen_loc = ui_ai_updown
using.layer = SCREEN_LAYER
HUD.adding += using
if(client && apply_to_client)
client.screen = list()
client.screen += HUD.adding + HUD.other
client.screen += client.void