AppUI lifted to its own file, Got horizontal and vertical boxes working

This commit is contained in:
2024-05-10 19:20:50 -04:00
parent 5b24e591eb
commit 2b1565e35b
15 changed files with 408 additions and 260 deletions

View File

@ -291,9 +291,14 @@ ui_box_tranverse_next :: proc "contextless" ( box : ^ UI_Box ) -> (^ UI_Box)
{
// Check to make sure parent is present on the screen, if its not don't bother.
// If current has children, do them first
if intersects_range2( view_get_bounds(), box.computed.bounds) && box.first != nil
using state := get_state()
if box.first != nil
{
return box.first
is_app_ui := ui_context == & app_ui
if is_app_ui || intersects_range2( view_get_bounds(), box.computed.bounds)
{
return box.first
}
}
if box.next == nil