(0.0.0) Prelim Layout Example - JujuAdams/Bento GitHub Wiki

with(bento_style_template("big box"))
{
    fill.alpha = 1.0;
    padding = 10;
}

//with(bento_style_template("text"))
//{
//    padding = 10;
//}

document = bento_box(20, 20, room_width-20, room_height-20);
with(document.style)
{
    fill.alpha = 0.2;
    margin = 30;
    grid.column_gap = 30;
    grid.row_gap = 30;
    grid.content_justify = "between";
    grid.content_align   = "even";
    grid.element_justify = "stretch";
    grid.element_align   = "stretch";
}

bento_layout_begin_flex();
    repeat(3) bento_rectangle(100, choose(50, 100, 150), "big box");
    bento_layout_break();
    repeat(20) with(bento_sprite(sTest, 0)) style.padding = 5;
    bento_layout_break();
    bento_rectangle(100, 100, "big box");
bento_layout_end();