예제 #1
0
        protected override void FillTab()
        {
            Text.Font = GameFont.Small;
            Rect fullRect  = GenUI.GetInnerRect(new Rect(10f, 10f, size.x - 10, size.y - 10));
            Rect leftRect  = fullRect.LeftHalf().Rounded();
            Rect rightRect = fullRect.RightHalf().Rounded();

            GUI.BeginGroup(fullRect);

            Widgets.Label(leftRect, "Pause at: ");
            minimumToAdd = (int)Widgets.HorizontalSlider(rightRect, minimumToAdd, 1, 50);

            GenUI.AbsorbClicksInRect(fullRect);
            GUI.EndGroup();
        }
        protected override void FillTab()
        {
            Building_SecurityCamera bpm = this.SelThing as Building_SecurityCamera;

            Text.Font = GameFont.Small;
            Rect innerRect1 = GenUI.GetInnerRect(new Rect(10.0f, 10.0f, this.size.x - 10, this.size.y - 10));

            GUI.BeginGroup(innerRect1);

            Widgets.Label(new Rect(0, 5, this.size.x / 2, 30), "Area Name:");
            bpm.markerName = Widgets.TextField(new Rect(90, 0, this.size.x / 2, 30),
                                               bpm.markerName.Substring(0, Math.Min(bpm.markerName.Length, 20)));

            GenUI.AbsorbClicksInRect(innerRect1);

            GUI.EndGroup();
        }