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>
This commit is contained in:
Chubbygummibear
2022-10-08 07:04:54 -07:00
committed by GitHub
parent cad253de5f
commit 267e161b9c
8 changed files with 36 additions and 13 deletions

View File

@@ -5,8 +5,6 @@
filedesc = "Themeify"
extended_desc = "This program allows configuration of your device's theme."
program_icon_state = "generic"
unsendable = TRUE
undeletable = FALSE
size = 2
available_on_ntnet = TRUE
requires_ntnet = FALSE
@@ -16,10 +14,10 @@
/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
// 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)
@@ -28,3 +26,5 @@
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"