mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
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:
@@ -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"]))
|
||||
|
||||
Reference in New Issue
Block a user