Luanti Hub Logo LuantiHub

Flow Inspector — Luanti Mod by luk3yx

An "inspect element" helper for flow GUIs

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`.
  • Engine: Luanti (formerly Minetest)
  • Package Type: Luanti Mod
  • Author: luk3yx
  • Technical Name: flow_inspector
  • License: LGPL-2.1-or-later
  • Tags: developer_tools, gui

Download Flow Inspector as a ready-to-drop .zip archive or install directly inside the Luanti client via Luanti Hub. Explore more Luanti Games, Luanti Mods, and Luanti Texture Packs on Luanti Hub (LuantiHub).