Skip to content

Commit

Permalink
ports lore terminals from /tg/station (#21856)
Browse files Browse the repository at this point in the history
* tyjktyerjt

* gvuukrtfyukmc

* replaces computer
  • Loading branch information
Addust authored Apr 20, 2024
1 parent 3f85c66 commit a7256cd
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4952,15 +4952,15 @@
/turf/open/floor/plasteel/dark,
/area/ruin/powered/syndicate_lava_base/engineering)
"SV" = (
/obj/machinery/computer/shuttle{
/obj/machinery/computer/terminal{
desc = "Occasionally used to call in a resupply shuttle if one is in range.";
name = "syndicate resupply shuttle console";
icon_keyboard = "syndie_key";
icon_screen = "syndishuttle";
light_color = "#FA8282";
name = "syndicate cargo shuttle terminal";
possible_destinations = "syndielavaland_cargo";
req_access_txt = "150";
shuttleId = "syndie_cargo"
upperinfo = "Syndicate Resupply Terminal - Jungleland Research Outpost";
content = list("This terminal is currently locked due to no supply shuttles being in range. For resupply, please contact Syndicate Command via your onboard red phone.");
tguitheme = "syndicate";
light_color = "#FA8282"
},
/turf/open/floor/plasteel/dark,
/area/ruin/powered/syndicate_lava_base/cargo)
Expand Down
20 changes: 10 additions & 10 deletions _maps/RandomRuins/LavaRuins/lavaland_surface_syndicate_base1.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1368,20 +1368,20 @@
/turf/open/floor/plasteel/white,
/area/ruin/powered/syndicate_lava_base/medbay)
"gV" = (
/obj/machinery/computer/shuttle{
desc = "Occasionally used to call in a resupply shuttle if one is in range.";
icon_keyboard = "syndie_key";
icon_screen = "syndishuttle";
light_color = "#FA8282";
name = "syndicate cargo shuttle terminal";
possible_destinations = "syndielavaland_cargo";
req_access_txt = "150";
shuttleId = "syndie_cargo"
},
/obj/machinery/airalarm/syndicate{
dir = 8;
pixel_x = 24
},
/obj/machinery/computer/terminal{
desc = "Occasionally used to call in a resupply shuttle if one is in range.";
name = "syndicate resupply shuttle console";
icon_keyboard = "syndie_key";
icon_screen = "syndishuttle";
upperinfo = "Syndicate Resupply Terminal - Lavaland Research Outpost";
content = list("This terminal is currently locked due to no supply shuttles being in range. For resupply, please contact Syndicate Command via your onboard red phone.");
tguitheme = "syndicate";
light_color = "#FA8282"
},
/turf/open/floor/mineral/plastitanium,
/area/ruin/powered/syndicate_lava_base/cargo)
"gW" = (
Expand Down
29 changes: 29 additions & 0 deletions code/game/machinery/computer/terminal.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//Basic computer meant for basic detailing in ruins and away missions, NOT meant for the station
//stolen from tgstation with love
/obj/machinery/computer/terminal
name = "terminal"
desc = "A relatively low-tech solution for internal computing, internal network mail, and logging. This model appears to be quite old."
//convenience in deconstruction
circuit = /obj/item/circuitboard/computer/terminal
///Text that displays on top of the actual 'lore' funnies.
var/upperinfo = "COPYRIGHT 2487 NANOSOFT-TM - DO NOT REDISTRIBUTE"
///Text this terminal contains, not dissimilar to paper. Unlike paper, players cannot add or edit existing info.
var/content = list("Congratulations on your purchase of a NanoSoft-TM terminal! Further instructions on setup available in \
user manual. For license and registration, please contact your licensed NanoSoft vendor and repair service representative.")
///The TGUI theme this console uses. Defaults to hackerman, a retro greeny pallete which should fit most terminals.
var/tguitheme = "hackerman"

/obj/machinery/computer/terminal/ui_interact(mob/user, datum/tgui/ui)
..()
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "Terminal", name) //The paper tgui file scared whoever wrote this, so new type of UI
ui.open()

/obj/machinery/computer/terminal/ui_static_data(mob/user)
return list(
"messages" = content,
"uppertext" = upperinfo,
"tguitheme" = tguitheme,
)

Original file line number Diff line number Diff line change
Expand Up @@ -563,3 +563,9 @@
greyscale_colors = CIRCUIT_COLOR_SUPPLY
build_path = /obj/machinery/computer/shuttle/mining


//Miscellaneous/ruin exclusive

/obj/item/circuitboard/computer/terminal
name = "Data Terminal (Computer Board)"
build_path = /obj/machinery/computer/terminal
30 changes: 30 additions & 0 deletions tgui/packages/tgui/interfaces/Terminal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { useBackend } from '../backend';
import { NoticeBox, Section } from '../components';
import { Window } from '../layouts';

export const Terminal = (_, context) => {
const { act, data } = useBackend(context);
const { uppertext, messages } = data;
return (
<Window theme={data.tguitheme} title="Terminal" width={480} height={520}>
<Window.Content scrollable>
<NoticeBox textAlign="left">
{uppertext}
</NoticeBox>
<Messages messages={messages} />
</Window.Content>
</Window>
);
};

const Messages = (props, context) => {
const { messages } = props;
const { act } = useBackend(context);
return messages.map(message => {
return (
<Section key={message.key}>
{message}
</Section>
);
});
};
1 change: 1 addition & 0 deletions yogstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@
#include "code\game\machinery\computer\security.dm"
#include "code\game\machinery\computer\station_alert.dm"
#include "code\game\machinery\computer\teleporter.dm"
#include "code\game\machinery\computer\terminal.dm"
#include "code\game\machinery\computer\warrant.dm"
#include "code\game\machinery\doors\airlock.dm"
#include "code\game\machinery\doors\airlock_electronics.dm"
Expand Down

0 comments on commit a7256cd

Please sign in to comment.