Merge pull request #13071 from Very-Soft/pAIUI

pAI hud revision
This commit is contained in:
Casey
2022-06-11 21:33:33 -04:00
committed by CHOMPStation2
parent 30d721f502
commit 64e7ac79d6
4 changed files with 16 additions and 1 deletions

View File

@@ -47,6 +47,7 @@
#define ui_construct_purge "EAST:00,CENTER-1:15" #define ui_construct_purge "EAST:00,CENTER-1:15"
#define ui_construct_fire "EAST-1:16,CENTER+1:13" //above health, slightly to the left #define ui_construct_fire "EAST-1:16,CENTER+1:13" //above health, slightly to the left
#define ui_construct_pull "EAST-1:28,SOUTH+1:10" //above the zone_sel icon #define ui_construct_pull "EAST-1:28,SOUTH+1:10" //above the zone_sel icon
#define ui_pai_comms "EAST-1:28,SOUTH+1:5"
//Lower right, persistant menu //Lower right, persistant menu
#define ui_dropbutton "EAST-4:22,SOUTH:5" #define ui_dropbutton "EAST-4:22,SOUTH:5"

View File

@@ -99,6 +99,10 @@
var/mob/living/silicon/pai/p = usr var/mob/living/silicon/pai/p = usr
p.communicator.activate() p.communicator.activate()
if("known languages")
if(ispAI(usr))
var/mob/living/silicon/pai/p = usr
p.check_languages()
else else
return 0 return 0

View File

@@ -122,7 +122,7 @@
using.name = "pda" using.name = "pda"
using.icon = ui_style using.icon = ui_style
using.icon_state = "pda" using.icon_state = "pda"
using.screen_loc = ui_acti using.screen_loc = ui_pai_comms
using.color = ui_color using.color = ui_color
using.alpha = ui_alpha using.alpha = ui_alpha
hud_elements |= using hud_elements |= using
@@ -132,6 +132,16 @@
using.name = "communicator" using.name = "communicator"
using.icon = ui_style using.icon = ui_style
using.icon_state = "communicator" using.icon_state = "communicator"
using.screen_loc = ui_pai_comms
using.color = ui_color
using.alpha = ui_alpha
hud_elements |= using
//Language button
using = new /obj/screen()
using.name = "known languages"
using.icon = ui_style
using.icon_state = "language"
using.screen_loc = ui_acti using.screen_loc = ui_acti
using.color = ui_color using.color = ui_color
using.alpha = ui_alpha using.alpha = ui_alpha

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB