ID:2907420
 
Redundant
Applies to:DM Language
Status: Redundant

This feature has already been implemented, or is already achievable with existing methods.
Float Layer is currently -1, it should be something like -1000 so you can freely add to it to arrange overlays
I don't understand why you're asking for this.

You can arrange overlay drawing order by continuing to lower, or raise, the layer so long as the number is within the negatives, as only in the negatives will the "floating" behavior occur (from my understanding).

The reference on overlays has the following example:

var/const
ARMOR_LAYER = FLOAT_LAYER-1
CLOTHES_LAYER = FLOAT_LAYER-2
obj/overlay
armor
icon = 'armor.dmi'
layer = ARMOR_LAYER
clothes
icon = 'clothes.dmi'
layer = CLOTHES_LAYER
mob/verb
wear_clothes()
overlays += /obj/overlay/clothes
wear_armor()
overlays += /obj/overlay/armor
remove_clothes()
overlays -= /obj/overlay/clothes
remove_armor()
overlays -= /obj/overlay/armor
ah well I guess i'm asking then because its not really intuitive that float layer is -1
Spevacus resolved issue (Redundant)
As explained by Ter13 in the BYONDiscord, you can do:

#undef FLOAT_LAYER
#define FLOAT_LAYER -1000


To achieve this.
Admittedly, I think there is some value in this being considered as a change in stddefs.dm.

It would break a ton of existing codebases for a hot second until they redefine FLOAT_LAYER as -1 again. Projects that do micro-float-layering to get around these limitations would be a little upset, but if you ask me, the micro-float layering solution was always just a shitty compromise for the default value of FLOAT_LAYER being -1 in the first place. In terms of ease of use, redefining FLOAT_LAYER to -1000 is just better for new developers just starting with the engine (whatever those are).

By the time you get deep enough into DM to know that you can just change this shit all willy nilly, most developers will have already made a huge ass mess with FLOAT_LAYER as -1.

--It would also prevent people from unfloating their overlays as regularly and just assuming BYOND is trash straight out of the bag.