If I want to make a UI similar to angry birds, where I have a lot of levels each have a button to play that level, and 3 stars to say how well that level was won. I was thinking make a widget BP and I nest that many times in a grid. Would that be the way to make this? Also so its expandable (add more levels) later.
Uniform Grid would work, Wrap Box would also work.
Thanks. Yeah I know how to make the grid. It more about nesting. I have a grid of levels each with info, the stars. The best way to make this is by hand each one, or is there a nesting method using maybe “Named Slot” or “Native Widget Host”
If adding more levels later is on the agenda, consider populating the widget container procedurally.
I’m assuming you are keeping the levels and their data in the array, loop through them and add child to an exposed UniformGrid, setting rows and columns as you go. Feed each created child widget with the level’s data. Include a little bit of logic inside the children widgets, the stars to display, whether it’s locked, how much more xp is needed to unlock the next one.
Essentially, there’s should be minimal amount of nesting necessary, the main widget, its UniformGrid and a bunch of separate level widgets sitting inside.
Thanks. That sounds like the right way to go. I’ll have to figure out how to do that but yeah thanks!