Improve UI

This commit is contained in:
Loic Guegan 2022-12-30 16:24:44 +01:00
parent a762ff6521
commit fc9f6bd6a2
4 changed files with 11 additions and 0 deletions

View file

@ -60,6 +60,8 @@ void GameTab::OnToolClick(wxCommandEvent &event){
related_file = newFileDialog.GetPath().ToStdString();
}
SaveGame(related_file,game);
} else if(id==1){
wxLogDebug("Not yet implemented");
}
}

View file

@ -7,6 +7,8 @@ GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game)
// Configure toolbal
game_toolbar->AddTool(0, wxT("Save As"),
wxArtProvider::GetBitmap(wxART_FILE_SAVE, wxART_TOOLBAR));
game_toolbar->AddTool(1, wxT("Duplicate Game"),
wxArtProvider::GetBitmap(wxART_COPY, wxART_TOOLBAR));
// Add board
board_canvas = new BoardCanvas((wxFrame *)this);