Exemple #1
0
        private void AddItems()
        {
            var dialog = new MpFormingCaravanWindow(map, reform, null, mapAboutToBeRemoved);

            dialog.CalculateAndRecacheTransferables();
            transferables = dialog.transferables;
        }
Exemple #2
0
        public override void DoWindowContents(Rect inRect)
        {
            drawing = this;

            try
            {
                var session = Session;

                if (session == null)
                {
                    Close();
                }
                else if (session.uiDirty)
                {
                    CountToTransferChanged();
                    startingTile    = session.startingTile;
                    destinationTile = session.destinationTile;

                    session.uiDirty = false;
                }

                base.DoWindowContents(inRect);
            }
            finally
            {
                drawing = null;
            }
        }
Exemple #3
0
        private MpFormingCaravanWindow PrepareDummyDialog()
        {
            var dialog = new MpFormingCaravanWindow(map, reform, null, mapAboutToBeRemoved)
            {
                transferables   = transferables,
                startingTile    = startingTile,
                destinationTile = destinationTile,
                thisWindowInstanceEverOpened = true
            };

            return(dialog);
        }