Skip to content

Getting Started ​

1. Mod Dependency (mod.info) ​

Add PMUIFramework to your mod.info file:

ini
name=My Awesome Mod
id=MyAwesomeMod
require=PMUIFramework
description=Uses ProjectMotionUI for smooth interfaces.

2. Requiring Modules ​

lua
require "ProjectMotionUI/ProjectMotionUI"
require "ProjectMotionUI/Components/Window"
require "ProjectMotionUI/Components/Button"
require "ProjectMotionUI/Layouts/StackLayout"

3. Window Lifecycle ​

  • PMUI.CreateInstance(id, el, true) — Opens the window and remembers its position and control states when closed.
  • PMUI.GetInstance(id) — Returns the active window instance or nil.
  • PMUI.CloseInstance(id) — Saves state and removes the window from UIManager.
  • PMUI.CloseAll() — Closes all active PMUI windows.

4. Debug Hotkeys ​

  • F7 — Open PMUI Settings / Studio Launcher.
  • F8 (in -debug mode) — Toggle Layout Inspector Overlay.