wgui: new_pass attrib, refactoring

This commit is contained in:
Aleksander
2025-11-27 20:32:59 +01:00
parent 9696d6730d
commit 192ffab4fd
8 changed files with 36 additions and 14 deletions

View File

@@ -22,7 +22,7 @@
# Universal widget attributes
### They can be used in any widget/component
_They can be used in any widget/component._
`display`: "flex" | "block" | "grid"
@@ -60,6 +60,16 @@
`width`, `height`: **float** | **percent**
### Advanced attributes
`interactable`: "1" | "0"
_Set to 0 if you want to exclude this widget from altering the event state_
`new_pass`: "1" | "0"
_Set to 1 if you want to render overlapping pop-ups to properly render your widgets in order. Wgui renders with as few Vulkan drawcalls as possible, so this is your responsibility._
# Widgets
## div widget