Files
Yogstation/code/modules/modular_computers/file_system/programs/themeify.dm
Chubbygummibear 267e161b9c Fixes PDA themes being so powerful they got you on the syndie-net (#16037)
* Modular Computer Themes and PDA theme game preference option (#15735)

* themes and stuff

* theme app cleanup

* that should be it

* i said commit

* readability

* comment cleanup

* mooglecode

* moog spacing

Co-authored-by: Redmoogle <dakotamew@gmail.com>

* Bibby

* there actual names

* not needed

Co-authored-by: Redmoogle <dakotamew@gmail.com>

* hopefully fixed

* WHY IS IT SO PICKY

* only my program will use this so far

* bomberman back on the menu because i'm dumb

* fixes the little ntos header on the top bar of the window not showing up

* undeletable true

* just delete

* that shouldn't be in this pr

Co-authored-by: Redmoogle <dakotamew@gmail.com>
2022-10-08 15:04:54 +01:00

31 lines
1.0 KiB
Plaintext

//this is the program that lets you change the theme of your device
/datum/computer_file/program/themeify
filename = "themeify"
filedesc = "Themeify"
extended_desc = "This program allows configuration of your device's theme."
program_icon_state = "generic"
size = 2
available_on_ntnet = TRUE
requires_ntnet = FALSE
tgui_id = "NtosThemeConfigure"
program_icon="paint-roller"
/datum/computer_file/program/themeify/ui_data(mob/user)
var/list/data = get_header_data()
// var/list/theme_collection = list()
// for(var/theme_key in GLOB.pda_themes)
// theme_collection += list(list("theme_name" = theme_key, "theme_file" = GLOB.pda_themes[theme_key]))
// data["theme_collection"] = theme_collection
return data
/datum/computer_file/program/themeify/ui_act(action,params)
if(..())
return
switch(action)
if("PRG_change_theme")
computer.device_theme = GLOB.pda_themes[sanitize_inlist(params["theme_title"], GLOB.pda_themes, PDA_THEME_TITLE_NTOS)]
if("PRG_change_theme_syndicate")
computer.device_theme = "syndicate"