Adds colourblind mode and a colour matrix editor (#17933)

* Colourblind mode + Matrix editor

* increase that

* Protanopia filter

* Tritanopia filter

* The SQL part

* Refactor

* you saw nothing
This commit is contained in:
AffectedArc07
2022-06-11 00:52:28 +01:00
committed by GitHub
parent 0d465cdd6f
commit 7d5a7ad85d
20 changed files with 266 additions and 61 deletions
+14
View File
@@ -69,6 +69,7 @@
/client/vv_get_dropdown()
. = list()
.["Manipulate Colour Matrix"] = "?_src_=vars;manipcolours=[UID()]"
. += "---"
.["Call Proc"] = "?_src_=vars;proc_call=[UID()]"
.["Mark Object"] = "?_src_=vars;mark_object=[UID()]"
@@ -1336,6 +1337,19 @@
if(istype(H))
H.copy_outfit()
if(href_list["manipcolours"])
if(!check_rights(R_DEBUG))
return
var/datum/target = locateUID(href_list["manipcolours"])
if(!(isatom(target) || isclient(target)))
to_chat(usr, "This can only be used on atoms and clients")
return
message_admins("[key_name_admin(usr)] is manipulating the colour matrix for [target]")
var/datum/ui_module/colour_matrix_tester/CMT = new(target=target)
CMT.ui_interact(usr)
/client/proc/view_var_Topic_list(href, href_list, hsrc)
if(href_list["VarsList"])
debug_variables(locate(href_list["VarsList"]))