Only the first InputBox in a row can be selected #4

Open
opened 2019-10-18 12:16:16 -04:00 by kennyrkun · 0 comments
kennyrkun commented 2019-10-18 12:16:16 -04:00 (Migrated from github.com)

If there is more than one InputBox in a row

layout->add(new sflcars::InputBox(80.0f));
layout->add(new sflcars::InputBox(80.0f), sflcars::Layout::Alignment::Horizontal);
layout->add(new sflcars::InputBox(80.0f), sflcars::Layout::Alignment::Horizontal);

only the first InputBox will be selectable.

I think the the rest of the boxes can be used by pressing tab, or the arrows, but text inside them is not rendered. This appears to be a great opportunity to implement proper Layouts, like HorizontalBoxLayout and VerticalBoxLayout. Still, the entire Layout system needs work.

If there is more than one InputBox in a row ```cpp layout->add(new sflcars::InputBox(80.0f)); layout->add(new sflcars::InputBox(80.0f), sflcars::Layout::Alignment::Horizontal); layout->add(new sflcars::InputBox(80.0f), sflcars::Layout::Alignment::Horizontal); ``` only the first InputBox will be selectable. I think the the rest of the boxes can be used by pressing tab, or the arrows, but text inside them is not rendered. This appears to be a great opportunity to implement proper Layouts, like `HorizontalBoxLayout` and `VerticalBoxLayout`. Still, the entire Layout system needs work.
Sign in to join this conversation.
No description provided.