Flow Inspector

Download (37 KB)
For Luanti 5.4 and above

How do I install this?

Description

A probably buggy inspector for flow GUIs to help with debugging layouting.

Usage 🔗

  • /inspector: Toggles the inspector for all flow forms opened with form:show().

Hot reload 🔗

When the "hot reload" button is pressed, the server reloads the file containing the function passed to flow.make_gui. This file must have exactly one flow.make_gui call for hot reload to work. Existing values in ctx are preserved when hot reloading.

The file containing flow.make_gui shouldn't contain any registrations (for example minetest.register_globalstep) as it may result in them being registered multiple times.

Open debug shell 🔗

If you're running Minetest in a terminal, an "open debug shell" button will be shown which will call debug.debug() (or dbg.dd() if the dbg mod is installed) when pressed. player, ctx, and name variables are set when the debug shell is open.

API 🔗

  • flow_inspector.enable(player): Enables the inspector.
  • flow_inspector.disable(player): Disables the inspector.
  • flow_inspector.inspect(player, form): Opens the inspector for form.

Reviews

Review

Do you recommend this mod?

  • Exactly what I needed!

    Eliminates countless questionable debugging strategies I've resorted to by doing things the right way. (just don't look at the source for this mod too closely - there's some hacks there for sure lol)

    0 comments

Releases

2026-05-07

Download

Luanti 5.4+

2026-05-07 02:18 UTC

2026-05-07 🔗

  • Reset tablecolumns before inspected GUI

2026-04-10

Download

Luanti 5.4+

2026-04-10 02:24 UTC

2026-04-10 🔗

  • Don't crash on "w = 0,3" in non-container widget

2025-03-03

Download

Luanti 5.4+

2025-03-03 02:13 UTC

2025-03-03 🔗

  • Support new list and label size changes

2024-11-09

Download

Luanti 5.4+

2024-11-09 02:13 UTC

2024-11-09 🔗

  • ButtonURL support
  • Luanti rename

2024-08-29

Download

Luanti 5.4+

2024-08-29 02:13 UTC

2024-08-29 🔗

  • Relicense to LGPL 2.1+
All releases