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 ornil.PMUI.CloseInstance(id)— Saves state and removes the window fromUIManager.PMUI.CloseAll()— Closes all active PMUI windows.
4. Debug Hotkeys
F7— Open PMUI Settings / Studio Launcher.F8(in-debugmode) — Toggle Layout Inspector Overlay.