Files
Paradise/code/datums/mutable_appearance.dm
tigercat2000 b370858fc8 Fixes Phazon movespeed, add radial menus to ctrl
Ctrl Clicking on a mech while you're in it will now bring up a radial
weapon selection
2018-11-02 00:46:08 -07:00

20 lines
776 B
Plaintext

// Mutable appearances are an inbuilt byond datastructure. Read the documentation on them by hitting F1 in DM.
// Basically use them instead of images for overlays/underlays and when changing an object's appearance if you're doing so with any regularity.
// Unless you need the overlay/underlay to have a different direction than the base object. Then you have to use an image due to a bug.
// Mutable appearances are children of images, just so you know.
// Helper similar to image()
/proc/mutable_appearance(icon, icon_state = "", layer = FLOAT_LAYER)
var/mutable_appearance/MA = new()
MA.icon = icon
MA.icon_state = icon_state
MA.layer = layer
return MA
/mutable_appearance/clean
/mutable_appearance/clean/New()
. = ..()
alpha = 255
opacity = 1
transform = null