Port NanoUI styles to LESS

This commit is contained in:
Bjorn Neergaard
2015-12-15 13:08:27 -06:00
parent a0c54eba97
commit 8fdfa08e58
50 changed files with 1312 additions and 929 deletions
+5 -1
View File
@@ -227,6 +227,7 @@ You can set verify to TRUE if you want send() to sleep until the client has the
/datum/asset/nanoui
var/list/common = list()
var/list/uncommon = list()
var/list/common_dirs = list(
"nano/styles/",
@@ -252,9 +253,12 @@ You can set verify to TRUE if you want send() to sleep until the client has the
for(var/filename in filenames)
if(copytext(filename, length(filename)) != "/") // Ignore directories.
if(fexists(path + filename))
register_asset(filename, fcopy_rsc(path + filename))
uncommon[filename] = fcopy_rsc(path + filename)
register_asset(filename, uncommon[filename])
/datum/asset/nanoui/send(client, uncommon)
if(isnull(uncommon))
uncommon = src.uncommon
if(!islist(uncommon))
uncommon = list(uncommon)