mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Crew manifest follow button for ghosts (#15089)
This commit is contained in:
@@ -188,11 +188,22 @@
|
||||
return STATUS_INTERACTIVE
|
||||
return ..()
|
||||
|
||||
/datum/controller/subsystem/records/Topic(href, href_list)
|
||||
if(href_list["action"] == "follow") // from manifest.vue
|
||||
var/mob/abstract/observer/O = usr
|
||||
if(istype(O))
|
||||
for(var/mob/living/carbon/human/H in human_mob_list)
|
||||
if(istype(H) && H.real_name == href_list["name"])
|
||||
O.ManualFollow(H)
|
||||
break
|
||||
. = ..()
|
||||
|
||||
/datum/controller/subsystem/records/vueui_data_change(var/list/data, var/mob/user, var/datum/vueui/ui)
|
||||
. = ..()
|
||||
data = . || data || list()
|
||||
|
||||
VUEUI_SET_CHECK_LIST(data["manifest"], SSrecords.get_manifest_list(), ., data)
|
||||
VUEUI_SET_CHECK(data["allow_follow"], isobserver(usr), ., data)
|
||||
|
||||
/datum/controller/subsystem/records/proc/open_manifest_vueui(mob/user)
|
||||
var/datum/vueui/ui = SSvueui.get_open_ui(user, src)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
author: DreamySkrell
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Ghosts can now follow crew on the crew manifest."
|
||||
@@ -3,12 +3,15 @@
|
||||
<div v-if="manifestLen(fixedmanifest) > 0">
|
||||
<table v-for="(el, dept) in fixedmanifest" :key="dept" :class="'border-dept-' + dept.toLowerCase()">
|
||||
<tr :class="'bg-dept-' + dept.toLowerCase()">
|
||||
<th colspan="3" class="fw-bold">{{ dept }}</th>
|
||||
<th colspan="100%" class="fw-bold">{{ dept }}</th>
|
||||
</tr>
|
||||
<tr v-for="entry in el" :key="entry.name" :class="{'fw-bold': entry.head}">
|
||||
<td>{{ entry.name }}</td>
|
||||
<td>{{ entry.rank }}</td>
|
||||
<td>{{ entry.active }}</td>
|
||||
<td v-if="allow_follow">
|
||||
<vui-button :params="{ action: 'follow', name: entry.name }">Follow</vui-button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user