protected override void InitGameWidget(MoveDetails details) { board = new CairoPlayerBoard (details.pos); board.MoveEvent += OnMoveEvent; gameWidget = new ChessGameWidget (board); }
public GameViewerUI() : base() { menubar = new ViewerMenuBar (); // this will be enabled as and when menubar.moveCommentMenuItem.Sensitive = false; chessGameWidget = new ChessGameWidget (this); PackStart (chessGameWidget, true, true, 2); statusBar = new Statusbar (); progressBar = new ProgressBar (); progressBar.Stop (); HBox box = new HBox (); box.PackStart (progressBar, false, false, 2); box.PackStart (statusBar, true, true, 2); PackStart (box, false, true, 2); }
protected virtual void InitGameWidget(MoveDetails details) { board = new CairoViewerBoard (details.pos); board.showAnimations = App.Session.showAnimations; gameWidget = new ChessGameWidget (board); }
protected virtual void InitGameWidget(MoveDetails details) { board = new CairoViewerBoard (details.pos); gameWidget = new ChessGameWidget (board); }
public GameViewerWidget(GameViewerUI viewer) { gamesListWidget = new SearchableGamesListWidget (viewer); chessGameWidget = new ChessGameWidget (); chessGameWidget.BoardWidget.Board. highLightMove = App.Session.HighLightMove; int pos = App.Session.ViewerSplitPanePosition; int height = App.Session.ViewerHeight; if (pos > height) pos = height / 2; chessGameWidget.SplitPane.Position = pos; gamesListWidget.View.GameSelectionEvent += OnGameSelectionEvent; AppendPage (gamesListWidget, new Label (Catalog. GetString ("Games"))); AppendPage (chessGameWidget, new Label (Catalog. GetString ("Current Game"))); ShowAll (); viewer.GamesLoadedEvent += OnGamesLoaded; }