Beispiel #1
0
    private void CreateFacilityList(GUISelectPanelFacility listUI, int listItemCount)
    {
        GUICollider component     = listUI.GetComponent <GUICollider>();
        BoxCollider component2    = component.GetComponent <BoxCollider>();
        Vector3     localPosition = component.transform.localPosition;

        component.SetOriginalPos(this.facilityListOriginalItem.transform.localPosition);
        component.transform.localPosition = localPosition;
        Rect listWindowViewRect = new Rect
        {
            xMin = component2.size.x * -0.5f,
            xMax = component2.size.x * 0.5f,
            yMin = component2.size.y * -0.5f - 40f,
            yMax = component2.size.y * 0.5f
        };

        listWindowViewRect.yMin   = listWindowViewRect.y - GUIMain.VerticalSpaceSize;
        listWindowViewRect.yMax   = listWindowViewRect.y + listWindowViewRect.height + GUIMain.VerticalSpaceSize;
        listUI.ListWindowViewRect = listWindowViewRect;
        listUI.selectParts        = this.facilityListOriginalItem;
        listUI.initLocation       = true;
        listUI.AllBuild(listItemCount);
    }
Beispiel #2
0
 private void SetFacilityDetail(GUISelectPanelFacility listUI, FacilityM[] facilityData)
 {
     CMD_FacilityShop.< SetFacilityDetail > c__AnonStorey1 <SetFacilityDetail> c__AnonStorey = new CMD_FacilityShop.< SetFacilityDetail > c__AnonStorey1();