[SEMI-MODULAR] Adds an override to allow the use of icon2html RARELY when we need it, fixing in the same swoop the in-game GAGS coloring screen (#7615)

* Adds an override to allow the use of icon2html in rare cases

* That should've been properly documented as SKYRAT EDIT, whoops
This commit is contained in:
GoldenAlpharex
2021-08-18 02:29:25 +01:00
committed by GitHub
parent 94098f6ec6
commit 77d5f9cb43
2 changed files with 19 additions and 6 deletions
+13 -3
View File
@@ -240,16 +240,26 @@ This is highly likely to cause a lag spike for a few seconds."},
var/list/step_data = data["steps"][step]
var/image/layer = image(step)
var/image/result = step_data["result"]
// SKYRAT EDIT BEGIN - Bringing back the GAGS coloring menu - ORIGINAL:
/*
steps += list(
list(
"layer"=icon2html(layer, user, dir=sprite_dir, sourceonly=TRUE),
"result"=icon2html(result, user, dir=sprite_dir, sourceonly=TRUE),
"layer"=icon2html(layer, user, dir=sprite_dir, sourceonly=TRUE, override_skyrat = TRUE),
"result"=icon2html(result, user, dir=sprite_dir, sourceonly=TRUE, override_skyrat = TRUE),
"config_name"=step_data["config_name"]
)
)*/
steps += list(
list(
"layer"=icon2html(layer, user, dir=sprite_dir, sourceonly=TRUE, override_skyrat = TRUE),
"result"=icon2html(result, user, dir=sprite_dir, sourceonly=TRUE, override_skyrat = TRUE),
"config_name"=step_data["config_name"]
)
)
// SKYRAT EDIT END
sprite_data["time_spent"] = TICK_DELTA_TO_MS(time_spent)
sprite_data["finished"] = icon2html(finished, user, dir=sprite_dir, sourceonly=TRUE)
sprite_data["finished"] = icon2html(finished, user, dir=sprite_dir, sourceonly=TRUE, override_skyrat = TRUE)
refreshing = FALSE
/datum/greyscale_modify_menu/proc/Unlock()