예제 #1
0
        private void ShowFactions(IWorld world)
        {
            if (world == null)
            {
                ShowMessage("No World", "No game is currently loaded");
                return;
            }

            var v = new FactionsView();

            v.InitializeComponent(world, DlgWidth, DlgHeight);
            var dlg = new ModalDialog(this, "Factions", v);

            Application.Run(dlg);
        }
예제 #2
0
        public void ShowStats(IHasStats of)
        {
            if (of == null)
            {
                ShowMessage("No World", "No game is currently loaded");
                return;
            }

            var v = new HasStatsView();

            v.InitializeComponent(of as IActor ?? World.Player, of, DlgWidth, DlgHeight);
            var dlg = new ModalDialog(this, of.Name, v);

            Application.Run(dlg);
        }