Skip to content

Commit

Permalink
Add: Line Decals (ss220club#305)
Browse files Browse the repository at this point in the history
## About The Pull Request
Добавил в модуль декали для ЦК

## Why It's Good For The Game

![image](https://github.com/ss220club/Bandastation/assets/69762909/e232bf54-45c5-4e53-a48d-1623cf8f913f)
  • Loading branch information
AyIong authored Jun 17, 2024
1 parent 727a28f commit 334f46f
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modular_bandastation/aesthetics/_aesthetics.dme
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// Camera
#include "cameras/code/cameras.dm"

// Decals
#include "decals/code/floor_decals.dm"

// Disposal
#include "disposal/code/disposal.dm"

Expand Down
124 changes: 124 additions & 0 deletions modular_bandastation/aesthetics/decals/code/floor_decals.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/obj/effect/turf_decal/line
name = "line decal"
icon = 'modular_bandastation/aesthetics/decals/icons/floor_decals.dmi'
icon_state = "line_corner"
layer = TURF_PLATING_DECAL_LAYER
alpha = 110

/// Automatically generates all subtypes for a decal with the given path.
#define LINE_DECAL_SUBTYPE_HELPER(path)\
##path/line {\
icon_state = "line";\
}\
##path/line/contrasted {\
icon_state = "line_contrasted";\
}\
##path/line/stripes {\
icon_state = "line_stripes";\
}\
##path/line/stripes/contrasted {\
icon_state = "line_stripes_contrasted";\
}\
##path/anticorner {\
icon_state = "line_anticorner";\
}\
##path/anticorner/contrasted {\
icon_state = "line_anticorner_contrasted";\
}\
##path/anticorner/stripes {\
icon_state = "line_anticorner_stripes";\
}\
##path/anticorner/stripes/contrasted {\
icon_state = "line_anticorner_stripes_contrasted";\
}\
##path/opposingcorners {\
icon_state = "line_opposing_corners";\
}\

/// Blue lines
/obj/effect/turf_decal/line/blue
name = "blue line decal"
color = "#52B4E9"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/blue)

/// Dark blue lines
/obj/effect/turf_decal/line/dark_blue
name = "dark blue line decal"
color = "#486091"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/dark_blue)

/// Green lines
/obj/effect/turf_decal/line/green
name = "green line decal"
color = "#9FED58"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/green)

/// Dark green lines
/obj/effect/turf_decal/line/dark_green
name = "dark green line decal"
color = "#439C1E"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/dark_green)

/// Yellow lines
/obj/effect/turf_decal/line/yellow
name = "yellow line decal"
color = "#EFB341"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/yellow)

/// Red lines
/obj/effect/turf_decal/line/red
name = "red line decal"
color = "#DE3A3A"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/red)

/// Dark red lines
/obj/effect/turf_decal/line/dark_red
name = "dark red line decal"
color = "#B11111"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/dark_red)

/// Bar lines
/obj/effect/turf_decal/line/bar
name = "bar line decal"
color = "#791500"
alpha = 130

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/bar)

/// Purple lines
/obj/effect/turf_decal/line/purple
name = "purple line decal"
color = "#D381C9"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/purple)

/// Brown lines
/obj/effect/turf_decal/line/brown
name = "brown line decal"
color = "#A46106"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/brown)

/// Neutral lines
/obj/effect/turf_decal/line/neutral
name = "neutral line decal"
color = "#D4D4D4"
alpha = 50

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/neutral)

/// Dark lines
/obj/effect/turf_decal/line/dark
name = "dark line decal"
color = "#0e0f0f"

LINE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/line/dark)

#undef LINE_DECAL_SUBTYPE_HELPER
Binary file not shown.

0 comments on commit 334f46f

Please sign in to comment.