Пример #1
0
        public void OpenWindow()
        {
            var dialog = new BeginRitualProxy(
                null,
                data.ritualLabel,
                data.ritual,
                data.target,
                map,
                data.action,
                data.organizer,
                data.obligation,
                null,
                data.confirmText,
                null,
                null,
                null,
                data.outcome,
                data.extraInfos,
                null
                )
            {
                assignments = data.assignments
            };

            Find.WindowStack.Add(dialog);
        }
Пример #2
0
        public override void DoWindowContents(Rect inRect)
        {
            drawing = this;

            try
            {
                var session = Session;

                if (session == null)
                {
                    soundClose = SoundDefOf.Click;
                    Close();
                }

                // Make space for the "Switch to map" button
                inRect.yMin += 20f;

                base.DoWindowContents(inRect);
            }
            finally
            {
                drawing = null;
            }
        }