Skip to content

Commit

Permalink
attempts a fix to the overlapping borg crew manifest hud (#2510)
Browse files Browse the repository at this point in the history
Co-authored-by: Bokkiewokkie <[email protected]>
  • Loading branch information
bruhlookatthisdood and Bokkiewokkie committed Aug 25, 2023
1 parent efec038 commit 9a951e0
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/_onclick/hud/_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#define ui_borg_store "CENTER+2:16,SOUTH:5" //borgs
#define ui_borg_camera "CENTER+3:21,SOUTH:5" //borgs
#define ui_borg_alerts "CENTER+4:21,SOUTH:5" //borgs
#define ui_borg_crew_manifest "CENTER+5:21,SOUTH:5" //borgs
//nsv removed #define ui_borg_crew_manifest "CENTER+5:21,SOUTH:5" //borgs
#define ui_borg_language_menu "CENTER+4:21,SOUTH+1:5" //borgs

#define ui_monkey_body "CENTER-6:12,SOUTH:5" //monkey
Expand Down
14 changes: 7 additions & 7 deletions code/_onclick/hud/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@
using.hud = src
static_inventory += using

//Manifest
using = new /atom/movable/screen/robot/crew_manifest()
using.screen_loc = ui_borg_crew_manifest
using.hud = src
static_inventory += using
//NSV removed //Manifest
// using = new /atom/movable/screen/robot/crew_manifest()
// using.screen_loc = ui_borg_crew_manifest
// using.hud = src
// static_inventory += using

//Intent
action_intent = new /atom/movable/screen/act_intent/robot()
Expand Down Expand Up @@ -316,7 +316,7 @@
var/mob/living/silicon/robot/borgo = usr
borgo.robot_alerts()

/atom/movable/screen/robot/crew_manifest
/* NSV removed /atom/movable/screen/robot/crew_manifest
name = "Crew Manifest"
icon = 'icons/mob/screen_ai.dmi'
icon_state = "manifest"
Expand All @@ -325,4 +325,4 @@
if(..())
return
var/mob/living/silicon/robot/borgo = usr
borgo.ai_roster()
borgo.ai_roster() */
4 changes: 4 additions & 0 deletions code/modules/mob/living/silicon/silicon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@
add_sensors()
to_chat(src, "Sensor overlay activated.")

/mob/living/silicon/proc/crew_manifest(mob/living/silicon) //nsv add manifest to borg computer
var/mob/living/silicon/borgo = usr
borgo.ai_roster()

/mob/living/silicon/proc/GetPhoto(mob/user)
if (aicamera)
return aicamera.selectpicture(user)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
if("toggleSensors")
borgo.toggle_sensors()

if("crewmanifest") //nsv add manifest to borg computer
borgo.crew_manifest()

if("viewImage")
if(borgo.connected_ai)
borgo.connected_ai.aicamera?.viewpictures(usr)
Expand Down
Binary file modified icons/mob/screen_cyborg.dmi
Binary file not shown.
2 changes: 1 addition & 1 deletion nsv13/code/modules/overmap/armour/nano_well.dm
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Starting Materials
/obj/machinery/armour_plating_nanorepair_well/ui_act(action, params, datum/tgui/ui)
if(..())
return
if(!(in_range(src, usr) | IsAdminGhost(usr)))
if(!(in_range(src, usr) || IsAdminGhost(usr)))
return
var/adjust = text2num(params["adjust"])
if(action == "power_allocation")
Expand Down
9 changes: 9 additions & 0 deletions tgui/packages/tgui/interfaces/NtosCyborgSelfMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,15 @@ export const NtosCyborgSelfMonitorContent = (props, context) => {
onClick={() => act('toggleSensors')}
/>
</LabeledList.Item>
{/* NSV added manfiest to borg computer start */}
<LabeledList.Item
label={'Crew Manifest'}>
<Button
content="Open"
onClick={() => act('crewmanifest')}
/>
</LabeledList.Item>
{/* NSV added manfiest to borg computer end */}
<LabeledList.Item
label={'Stored Photos (' + printerPictures + ')'}>
<Button
Expand Down

0 comments on commit 9a951e0

Please sign in to comment.