ID:2289124
![]() Aug 31 2017, 8:18 am
|
|||||||
| |||||||
Whenever you have an overlay, the dir var of the overlay is always overriden by the parent object. I would like to see an appearance flag called RESET_DIR or something that prevents this behavior, and the overlay would select it's own dir.
|
![]() Aug 31 2017, 12:44 pm
|
|
If you set the overlays's dir explicitly, this should prevent the parent dir from coming through. There's actually an internal flag for this.
|
If you're simply adding an icon state like "active", or an icon, or a type path, that won't do it. But this ought to:
var/obj/O = new Because O.dir was set explicitly, the appropriate flag should be set for that appearance when it's used as an overlay. |
This doesn't seem to work for me. I've tried this with a mutable_appearance, image object, and a normal object and none of them work.
|
var/list/L = list() |
It only works correctly if you use the image() proc and set the dir as an arg in that.
|
Because O.dir was set explicitly, the appropriate flag should be set for that appearance when it's used as an overlay. DM has never obeyed this rule. It has always ignored the overlay dir in favor of the parent object's dir. Always. |