Arconomy Adjacent Content: Newscaster Refactor Omega (#65038)

This PR moves the in-game Newscaster over to TGUI, which is one the most bothersome html to tgui projects on the codebase being that it's gone untouched for like... over 4 years now after the introduction of tgui. Newscasters are widely used in-game by players wanting to be deranged whistleblowers, noir detectives, and journalists. They're flavorful, fun, and we still use an html window to make them run so it looks like it's from 2003.
This commit is contained in:
ArcaneMusic
2022-03-26 02:42:42 -04:00
committed by GitHub
parent f0494e70fd
commit 6a461dff81
36 changed files with 13986 additions and 13194 deletions

View File

@@ -6,7 +6,7 @@
extended_desc = "A multi-platform network for placing requests across the station, with payment across the network being possible.."
requires_ntnet = TRUE
size = 10
tgui_id = "NtosRequestKiosk"
tgui_id = "NtosBountyBoard"
///Reference to the currently logged in user.
var/datum/bank_account/current_user
///The station request datum being affected by UI actions.
@@ -23,6 +23,20 @@
var/list/formatted_requests = list()
var/list/formatted_applicants = list()
var/obj/item/computer_hardware/card_slot/card_slot = computer.all_components[MC_CARD]
if(current_user)
data["user"] = list()
data["user"]["name"] = current_user.account_holder
if(current_user.account_job)
data["user"]["job"] = current_user.account_job.title
data["user"]["department"] = current_user.account_job.paycheck_department
else
data["user"]["job"] = "No Job"
data["user"]["department"] = "No Department"
else
data["user"] = list()
data["user"]["name"] = user.name
data["user"]["job"] = "N/A"
data["user"]["department"] = "N/A"
if(!networked)
GLOB.allbountyboards += computer
networked = TRUE
@@ -92,6 +106,7 @@
return
request_target.transfer_money(current_user, active_request.value)
computer.say("Paid out [active_request.value] credits.")
GLOB.request_list.Remove(active_request)
return TRUE
if("clear")
if(current_user)