max_current_image_order(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

okay bestie, buckle up for the manual page for max_current_image_order(3) β€” it's giving β€œwhere is the highest order value at?” energy, and honestly? iconic. πŸ’…

πŸ’– NAME πŸ’–

max_current_image_order β€” find the highest ordervalue in use in the current context. No cap, that's the whole mission. ✨

✨ SYNOPSIS ✨

orderval
max_current_image_order( rtgt )

🌸 DESCRIPTION 🌸

So basically it scans a specific rendertarget β€” and yeah, the default is worldid β€” for the highest drawing order value that's currently being used. 🌈

Heads up, bestie: the range 65531..65535 is explicitly ignored. That's on purpose, so you can do relative operations like order_image(a, max_current_image_order() + 1); without objects used as overlays, cursors, or similar special targets interfering. Periodt. πŸ’€

πŸŽ€ EXAMPLE πŸŽ€

function max_current_image_order0()
      print(max_current_image_order());
      a = fill_surface(32, 32, 0, 0, 0);
      order_image(a, 65500);
      print(max_current_image_order());
      order_image(a, 65535);
      print(max_current_image_order());
end

πŸ¦‹ SEE ALSO πŸ¦‹


shoutout to the image manual, October 2026 β€” that's the source/version and date, and she ate. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from