From 77de9e340f597b426bd1915733db22ea9cab308e Mon Sep 17 00:00:00 2001 From: "DESKTOP-M4GD565\\LME" Date: Mon, 9 Oct 2023 00:18:34 -0700 Subject: [PATCH] can we define this twice --- .../aesthetics/mapping/tilecoloring.dm | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/monkestation/code/modules/aesthetics/mapping/tilecoloring.dm b/monkestation/code/modules/aesthetics/mapping/tilecoloring.dm index e3787b7becba..e9066aeddce1 100644 --- a/monkestation/code/modules/aesthetics/mapping/tilecoloring.dm +++ b/monkestation/code/modules/aesthetics/mapping/tilecoloring.dm @@ -4,6 +4,98 @@ name = "darkest green corner" color = "#055205" + + +/// Automatically generates all subtypes for a decal with the given path. +#define TILE_DECAL_SUBTYPE_HELPER(path)\ +##path/opposingcorners {\ + icon_state = "tile_opposing_corners";\ +}\ +##path/half {\ + icon_state = "tile_half";\ +}\ +##path/half/contrasted {\ + icon_state = "tile_half_contrasted";\ +}\ +##path/anticorner {\ + icon_state = "tile_anticorner";\ +}\ +##path/anticorner/contrasted {\ + icon_state = "tile_anticorner_contrasted";\ +}\ +##path/fourcorners {\ + icon_state = "tile_fourcorners";\ +}\ +##path/full {\ + icon_state = "tile_full";\ +}\ +##path/diagonal_centre {\ + icon_state = "diagonal_centre";\ +}\ +##path/diagonal_edge {\ + icon_state = "diagonal_edge";\ +} + + + +/// Automatically generates all trimlines for a decal with the given path. +#define TRIMLINE_SUBTYPE_HELPER(path)\ +##path/line {\ + icon_state = "trimline";\ +}\ +##path/corner {\ + icon_state = "trimline_corner";\ +}\ +##path/end {\ + icon_state = "trimline_end";\ +}\ +##path/arrow_cw {\ + icon_state = "trimline_arrow_cw";\ +}\ +##path/arrow_ccw {\ + icon_state = "trimline_arrow_ccw";\ +}\ +##path/warning {\ + icon_state = "trimline_warn";\ +}\ +##path/tram {\ + icon_state = "trimline_tram";\ +}\ +##path/mid_joiner {\ + icon_state = "trimline_mid";\ +}\ +##path/filled {\ + icon_state = "trimline_box_fill";\ +}\ +##path/filled/line {\ + icon_state = "trimline_fill";\ +}\ +##path/filled/corner {\ + icon_state = "trimline_corner_fill";\ +}\ +##path/filled/end {\ + icon_state = "trimline_end_fill";\ +}\ +##path/filled/arrow_cw {\ + icon_state = "trimline_arrow_cw_fill";\ +}\ +##path/filled/arrow_ccw {\ + icon_state = "trimline_arrow_ccw_fill";\ +}\ +##path/filled/warning {\ + icon_state = "trimline_warn_fill";\ +}\ +##path/filled/mid_joiner {\ + icon_state = "trimline_mid_fill";\ +}\ +##path/filled/shrink_cw {\ + icon_state = "trimline_shrink_cw";\ +}\ +##path/filled/shrink_ccw {\ + icon_state = "trimline_shrink_ccw";\ +} + + TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/darkest_green) /// Piss Yellow tiles @@ -90,3 +182,6 @@ TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/dark_purple) color = "#2E2E2E" TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/gray) + +#undef TILE_DECAL_SUBTYPE_HELPER +#undef TRIMLINE_SUBTYPE_HELPER