Tweaking hologram colours.

This commit is contained in:
MistakeNot4892
2023-08-31 01:03:47 +10:00
parent c8d8d55c29
commit 7ea2cb5889
5 changed files with 14 additions and 14 deletions

View File

@@ -483,8 +483,7 @@
if(istype(AM) && assembly)
if(AM in view(get_turf(src))) // It must be able to 'see' the object it will copy.
hologram = new(src)
var/icon/holo_icon = getHologramIcon(getFlatIcon(AM), no_color = TRUE)
// holo_icon.GrayScale() // So it looks better colored.
var/icon/holo_icon = getHologramIcon(getFlatIcon(AM))
if(holo_color) // The color pin should ensure that it is a valid hex.
holo_icon.ColorTone(holo_color)
hologram.icon = holo_icon

View File

@@ -54,7 +54,7 @@ var/global/list/ai_verbs_default = list(
var/aiRestorePowerRoutine = 0
var/viewalerts = 0
var/icon/holo_icon//Default is assigned when AI is created.
var/holo_color = null
var/holo_color = "#7db4e1"
var/list/connected_robots = list()
var/obj/item/pda/ai/aiPDA = null
var/obj/item/communicator/aiCommunicator = null
@@ -627,11 +627,13 @@ var/global/list/ai_verbs_default = list(
if("Crew Member") //A seeable crew member (or a dog)
var/list/targets = trackable_mobs()
if(targets.len)
var/mob/living/Target
Target = input("Select a crew member:") as null|anything in targets //The definition of "crew member" is a little loose...
//This is torture, I know. If someone knows a better way...
if(QDELETED(Target) || !Target) return
var/new_holo = getHologramIcon(getCompoundIcon(targets[Target]))
var/mob/living/Target = input("Select a crew member:") as null|anything in targets //The definition of "crew member" is a little loose...
if(!Target)
return
Target = targets[Target]
if(!istype(Target) || QDELETED(Target))
return
var/new_holo = getHologramIcon(getCompoundIcon(Target))
qdel(holo_icon)
holo_icon = new_holo