private void BuildUnitDataPanel(RTSRenderer renderer) { UnitDataPanel = new RTSUnitDataPanel(renderer, wrMain, uic.UICUnitData, uic.UICCombatStats); UnitDataPanel.WidgetBase.AlignX = Alignment.LEFT; UnitDataPanel.WidgetBase.AlignY = Alignment.BOTTOM; UnitDataPanel.WidgetBase.OffsetAlignX = Alignment.RIGHT; UnitDataPanel.WidgetBase.OffsetAlignY = Alignment.BOTTOM; UnitDataPanel.WidgetBase.Offset = new Point(0, 0); UnitDataPanel.WidgetBase.Parent = BBPanel.BackPanel; }