lowercase ntos by request of mloc + updates to background.

This commit is contained in:
DJSnapshot
2014-06-22 03:46:36 -07:00
committed by ZomgPonies
parent 54b2e5f7a7
commit fbfecb0e99
11 changed files with 59 additions and 54 deletions
+11 -11
View File
@@ -2,10 +2,10 @@
The Big Bad NT Operating System
*/
/datum/file/program/NTOS
/datum/file/program/ntos
name = "Nanotrasen Operating System"
extension = "prog"
active_state = "ntos"
active_state = "NTOS"
var/obj/item/part/computer/storage/current // the drive being viewed, null for desktop/computer
var/fileop = "runfile"
@@ -13,12 +13,12 @@
Generate a basic list of files in the selected scope
*/
/datum/file/program/NTOS/proc/list_files()
/datum/file/program/ntos/proc/list_files()
if(!computer || !current) return null
return current.files
/datum/file/program/NTOS/proc/filegrid(var/list/filelist)
/datum/file/program/ntos/proc/filegrid(var/list/filelist)
var/dat = "<table border='0' align='left'>"
var/i = 0
for(var/datum/file/F in filelist)
@@ -44,7 +44,7 @@
// I am separating this from filegrid so that I don't have to
// make metadata peripheral files
//
/datum/file/program/NTOS/proc/desktop(var/peripheralop = "viewperipheral")
/datum/file/program/ntos/proc/desktop(var/peripheralop = "viewperipheral")
var/dat = "<table border='0' align='left'>"
var/i = 0
var/list/peripherals = list(computer.hdd,computer.floppy,computer.cardslot)
@@ -69,20 +69,20 @@
return dat
/datum/file/program/NTOS/proc/window(var/title,var/buttonbar,var/content)
/datum/file/program/ntos/proc/window(var/title,var/buttonbar,var/content)
return {"
<div class='filewin'>
<div class='titlebar'>[title] <a href='?src=\ref[src];winclose'><img src=\ref['icons/NTOS/tb_close.png']></a></div>
<div class='titlebar'>[title] <a href='?src=\ref[src];winclose'><img src=\ref['icons/ntos/tb_close.png']></a></div>
<div class='buttonbar'>[buttonbar]</div>
<div class='contentpane'>[content]</div>
</div>"}
/datum/file/program/NTOS/proc/buttonbar(var/type = 0)
/datum/file/program/ntos/proc/buttonbar(var/type = 0)
switch(type)
if(0) // FILE OPERATIONS
return {""}
/datum/file/program/NTOS/interact()
/datum/file/program/ntos/interact()
if(!interactable())
return
var/dat = {"
@@ -162,7 +162,7 @@
</style>
</head>
<body><div style='width:640px;height:480px; border:2px solid black;padding:8px;background-image:url(\ref['icons/NTOS/ntos.png'])'>"}
<body><div style='width:640px;height:480px; border:2px solid black;padding:8px;background-position:center;background-image:url(\ref['nano/images/uiBackground.png'])'>"}
var/list/files = list_files()
if(current)
@@ -175,7 +175,7 @@
usr << browse(dat, "window=\ref[computer];size=670x510")
onclose(usr, "\ref[computer]")
/datum/file/program/NTOS/Topic(href, list/href_list)
/datum/file/program/ntos/Topic(href, list/href_list)
if(!interactable() || ..(href,href_list))
return