Repository navigation
Debugging and Tips
UI inspector, performance and common mistakes.
root.inspector().enabled(true); // now F8 opens and closes it
root.inspector().toggleKey(Keys.F12); // a different key
root.inspector().open();Off by default. An open inspector captures the mouse: hovering highlights an element (margins, bounds, padding) with
a Class.style-classes#id label, a click selects, a right click clears the selection. A side panel shows the element
tree (click a row to select, the wheel scrolls) and details of the selected element: Java class, position and size,
padding/margin, flags and the computed style (only differences from the defaults). Arrow keys walk the tree (up goes
to the parent), Esc closes, the header buttons close the panel and move it to the other side.
- Threading. The UI is single-threaded: create widgets and change signals on the client render thread.
- Performance. Layout and styles are cached, invisible subtrees are skipped, and the animator does nothing when idle. Don't rebuild the tree every frame; change signals instead.
-
Drawing outside bounds. If a widget draws outside its bounds (glow, shadow), call
setOverflowsBounds(true), otherwise it may be culled while scrolling. -
Debugging. The UI inspector (
root.inspector(), F8 in the showcase) shows the tree, sizes and styles. -
Accessibility.
root.accessibility(): color-blindness correction, text scale, reduced motion, focus narration. -
Version portability. Code that uses
io.github.ssbaxys.lumina.*(except theforgeandneoforgepackages) moves between Forge 1.20.1 and NeoForge 1.21.1 unchanged.
← Extending · English home · Architecture →
Начало работы: Установка · Первый экран
Основы: Раскладка · Стили и темы · Цвета и градиенты · Анимации · Данные и сигналы · События и ввод
Виджеты: Каталог виджетов · Всплывающие окна · Формы · Markdown и книги
Игра: Инвентарь и слоты · Окна-контейнеры · Мобы, предметы и 3D · HUD · Карты
Оформление: Эффекты · Размытие, обрезка и GIF
HTML и CSS: HTML и CSS
Возможности: Языки · Экран настроек · Доступность и звуки
Для продвинутых: Расширение · Отладка и советы · Архитектура
Getting started: Installation · Your First Screen
Basics: Layout · Styles and Themes · Colors and Gradients · Animations · Data and Signals · Events and Input
Widgets: Widget Catalog · Popups · Forms · Markdown and Books
Game: Inventory and Slots · Container Screens · Mobs, Items and 3D · HUD Overlay · Maps
Visuals: Effects · Blur, Clipping and GIF
HTML and CSS: HTML and CSS
Features: Languages · Config Screen · Accessibility and Sounds
Advanced: Extending · Debugging and Tips · Architecture