mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Docking Ports Management Program (#16802)
* stuff copied from the other branch * aurorastation.dme reorder * lint fixes * docks gui prettier --------- Co-authored-by: DreamySkrell <>
This commit is contained in:
co-authored by
DreamySkrell <>
parent
1820893638
commit
db030df4d5
@@ -5,22 +5,25 @@
|
||||
req_access = list(access_syndicate)
|
||||
shuttle_tag = "Skipjack"
|
||||
light_color = LIGHT_COLOR_RED
|
||||
can_rename_ship = TRUE
|
||||
|
||||
/obj/machinery/computer/shuttle_control/multi/burglar
|
||||
name = "pod control console"
|
||||
icon = 'icons/obj/primitive_computer.dmi'
|
||||
icon_screen = "syndicate"
|
||||
req_access = list(access_syndicate)
|
||||
shuttle_tag = "Burglar Pod"
|
||||
shuttle_tag = "Water Bear"
|
||||
light_color = LIGHT_COLOR_RED
|
||||
can_rename_ship = TRUE
|
||||
|
||||
/obj/machinery/computer/shuttle_control/multi/antag/syndicate
|
||||
name = "mercenary shuttle control console"
|
||||
icon = 'icons/obj/primitive_computer.dmi'
|
||||
icon_screen = "syndicate"
|
||||
req_access = list(access_syndicate)
|
||||
shuttle_tag = "Mercenary Shuttle"
|
||||
shuttle_tag = "ICV Raskolnikov"
|
||||
light_color = LIGHT_COLOR_RED
|
||||
can_rename_ship = TRUE
|
||||
|
||||
/obj/machinery/computer/shuttle_control/multi/merc_elite
|
||||
name = "shuttle control console"
|
||||
|
||||
@@ -34,4 +34,5 @@
|
||||
/obj/machinery/computer/shuttle_control/merchant
|
||||
name = "merchant shuttle control console"
|
||||
req_access = list(access_merchant)
|
||||
shuttle_tag = "Merchant Shuttle"
|
||||
shuttle_tag = "ICV Enterprise"
|
||||
can_rename_ship = TRUE
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
var/ui_template = "shuttle_control_console.tmpl"
|
||||
var/list/linked_helmets = list()
|
||||
var/can_rename_ship = FALSE
|
||||
|
||||
/obj/machinery/computer/shuttle_control/Initialize()
|
||||
. = ..()
|
||||
@@ -67,6 +68,8 @@
|
||||
"can_launch" = shuttle.can_launch(),
|
||||
"can_cancel" = shuttle.can_cancel(),
|
||||
"can_force" = shuttle.can_force(),
|
||||
"can_rename_ship" = can_rename_ship,
|
||||
"ship_name" = shuttle.name,
|
||||
)
|
||||
|
||||
/obj/machinery/computer/shuttle_control/proc/get_shuttle_status(var/datum/shuttle/autodock/shuttle)
|
||||
@@ -118,6 +121,12 @@
|
||||
shuttle.cancel_launch(src)
|
||||
return TOPIC_REFRESH
|
||||
|
||||
if(href_list["rename"])
|
||||
var/new_name = input(usr, "Select new name for this ship.", "Rename this ship", shuttle.name)
|
||||
if(new_name)
|
||||
shuttle.name = new_name
|
||||
return TOPIC_REFRESH
|
||||
|
||||
/obj/machinery/computer/shuttle_control/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1)
|
||||
var/datum/shuttle/autodock/shuttle = SSshuttle.shuttles[shuttle_tag]
|
||||
if (!istype(shuttle))
|
||||
|
||||
Reference in New Issue
Block a user