mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user