public Rect PayloadRect() { Rect ret = Config.Rect; if (Parent != null) { ret = ret.AddTo((Parent as LMS_GuiBaseBox2D).liveRect); ret.height = Config.Rect.height; ret.width = Config.Rect.width; } if (Sibling != null) { if (Sibling is LMS_GuiBaseVerticalScroller) { ret.y += (Sibling as LMS_GuiBaseVerticalScroller).Axis.y; } } return(ret); }