Fixes mutable_appearance where it causes UI bugs (#23391)

* Fixes mutable_appearance where it causes bugs

* Now we will get filters of an obj
This commit is contained in:
RomainzZ
2023-11-29 16:43:18 +01:00
committed by GitHub
parent 8035aa5e09
commit 5bc76dd0a8
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -10,7 +10,7 @@
// And yes this does have to be in the constructor, BYOND ignores it if you set it as a normal var
// Helper similar to image()
/proc/mutable_appearance(icon, icon_state = "", layer = FLOAT_LAYER, plane = FLOAT_PLANE, alpha = 255, appearance_flags = NONE, color)
/proc/mutable_appearance(icon, icon_state = "", layer = FLOAT_LAYER, plane = FLOAT_PLANE, alpha = 255, appearance_flags = NONE, color, filters)
var/mutable_appearance/MA = new()
MA.icon = icon
MA.icon_state = icon_state
@@ -20,6 +20,7 @@
MA.appearance_flags |= appearance_flags
if(color)
MA.color = color
MA.filters = filters
return MA
/mutable_appearance/clean/New()