mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-18 10:37:54 +01:00
## About The Pull Request Was looking at tgui core and found some themes that looked cool, so I added them New default theme, Bird <img width="602" height="602" alt="image" src="https://github.com/user-attachments/assets/5864a50b-efa8-4464-93eb-a124ba651b98" /> #### The rest are maint themes Hackerman <img width="601" height="598" alt="image" src="https://github.com/user-attachments/assets/f1e68ace-eaee-4a1b-9574-7705a8d1be18" /> Roulette table <img width="599" height="601" alt="image" src="https://github.com/user-attachments/assets/12985c4d-a3d8-4f76-b212-d10fb92293c3" /> Alien <img width="604" height="602" alt="image" src="https://github.com/user-attachments/assets/d8933c03-47b4-4c04-932d-0649d3506c16" /> As always these are all available to the clear PDA by default. ## Why It's Good For The Game They just looked nice, so why not ## Changelog 🆑 add: Added a new PDA theme and 3 secret ones you may find in maintenance. /🆑
54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
/datum/computer_file/program/maintenance/theme
|
|
filename = "theme"
|
|
filedesc = "Theme holder"
|
|
extended_desc = "Holds a theme you can add to your Modular PC to set in the Themify application. Makes the application use more space"
|
|
size = 2
|
|
|
|
///The type of theme we have
|
|
var/theme_name
|
|
|
|
/datum/computer_file/program/maintenance/theme/New()
|
|
. = ..()
|
|
filename = "[theme_name] Theme"
|
|
|
|
/datum/computer_file/program/maintenance/theme/can_store_file(obj/item/modular_computer/potential_host)
|
|
. = ..()
|
|
if(!.)
|
|
return FALSE
|
|
var/datum/computer_file/program/themeify/theme_app = locate() in potential_host.stored_files
|
|
//no theme app, no themes!
|
|
if(!theme_app)
|
|
return FALSE
|
|
//don't get the same one twice
|
|
if(theme_app.imported_themes.Find(theme_name))
|
|
return FALSE
|
|
return TRUE
|
|
|
|
///Called post-installation of an application in a computer, after 'computer' var is set.
|
|
/datum/computer_file/program/maintenance/theme/on_install()
|
|
SHOULD_CALL_PARENT(FALSE)
|
|
//add the theme to the computer and increase its size to match
|
|
var/datum/computer_file/program/themeify/theme_app = locate() in computer.stored_files
|
|
if(theme_app)
|
|
theme_app.imported_themes += theme_name
|
|
theme_app.size += size
|
|
qdel(src)
|
|
|
|
/datum/computer_file/program/maintenance/theme/cat
|
|
theme_name = PDA_THEME_CAT_NAME
|
|
|
|
/datum/computer_file/program/maintenance/theme/lightmode
|
|
theme_name = PDA_THEME_LIGHT_MODE_NAME
|
|
|
|
/datum/computer_file/program/maintenance/theme/spooky
|
|
theme_name = PDA_THEME_SPOOKY_NAME
|
|
|
|
/datum/computer_file/program/maintenance/theme/hacker
|
|
theme_name = PDA_THEME_HACKERMAN_NAME
|
|
|
|
/datum/computer_file/program/maintenance/theme/roulette
|
|
theme_name = PDA_THEME_ROULETTE_NAME
|
|
|
|
/datum/computer_file/program/maintenance/theme/alien
|
|
theme_name = PDA_THEME_ABDUCTOR_NAME
|