public override void doLayout() { base.doLayout(); btn_config.alignTop(); btn_config.alignLeftSide(); float xPad = 5f; lbl_search.alignTop(10f); lbl_search.moveRightOf(statusPanel, xPad); search.alignTop(10f); search.moveRightOf(lbl_search); search.FloodX(12f); if (search.Area.size.y != lbl_search.Area.size.y) { lbl_search.Set_Height(search.Area.size.y); } statusPanel.moveBelow(search, 10f); statusPanel.FloodY(); lbl_pl_count.alignLeftSide(5f); lbl_pl_count.moveBelow(btn_config, 2f); tabPanel.moveBelow(search, 10f); tabPanel.moveRightOf(statusPanel, 2f); tabPanel.FloodXY(); }
private void Top_wrapper_onLayout(uiPanel c) { btn_store.alignLeftSide(); btn_donate.alignRightSide(); btn_donate.Set_Height(btn_store.Get_Height());// eh, match the store buttons height... }