예제 #1
0
    private void UpdateLayoutRect(Rect rect)
    {
        _rect_header = VxlGUI.GetAboveElement(rect, 0, VxlGUI.MED_BAR);
        Rect  rect_body  = VxlGUI.GetSandwichedRectY(rect, VxlGUI.MED_BAR + VxlGUI.SM_SPACE, 0);
        float listheight = Mathf.Max(0, (rect_body.height - VxlGUI.MED_BAR - VxlGUI.SM_SPACE - VxlGUI.SM_SPACE) / 2f);

        _rect_guidscroll  = VxlGUI.GetAboveElement(rect_body, 0, listheight);
        _rect_guidcontent = VxlGUI.GetScrollViewRect(_guidlist, _rect_guidscroll.width, _rect_guidscroll.height);
        _rect_panel       = VxlGUI.GetMiddleY(rect_body, VxlGUI.MED_BAR);
        _rect_libscroll   = VxlGUI.GetBelowElement(rect_body, 0, listheight);
        _rect_libcontent  = VxlGUI.GetScrollViewRect(_libobjlist, _rect_libscroll.width, _rect_libscroll.height);
    }