public void SelectFaction(Faction faction)
    {
        IGuiService service = Services.GetService <IGuiService>();

        if (service != null)
        {
            MenuNewGameScreen guiPanel = service.GetGuiPanel <MenuNewGameScreen>();
            if (guiPanel != null)
            {
                guiPanel.SelectFaction(this.EmpireIndex, faction);
            }
        }
    }
Exemple #2
0
    private bool FocusOutGameConsolePanel()
    {
        MenuNewGameScreen guiPanel = base.GetGuiPanel <MenuNewGameScreen>();

        return((guiPanel != null || guiPanel.IsVisible) && guiPanel.FocusOutGameConsolePanel());
    }
 public void Bind(global::Session session, int empireIndex, MenuNewGameScreen parent)
 {
     this.Session     = session;
     this.EmpireIndex = empireIndex;
 }