Commit c71c3351 authored by Loic Guegan's avatar Loic Guegan
Browse files

Update view

parent 5ef228c2
Pipeline #213054015 passed with stage
in 7 minutes and 38 seconds
......@@ -70,7 +70,7 @@ void MainFrame::OnClose(wxCloseEvent &event) {
void MainFrame::ChangeSquares(wxCommandEvent &event) {
wxMenu *menu = getSquaresMenu();
wxMenuItem *item = menu->FindItem(event.GetId());
// p->SetBoardSkin(item->GetItemLabel().ToStdString());
p->BP->SetBoardSkin(item->GetItemLabel().ToStdString());
(void) item;
}
......@@ -79,7 +79,7 @@ void MainFrame::ChangePieces(wxCommandEvent &event) {
wxMenu *menu = getPiecesMenu();
wxMenuItem *item = menu->FindItem(event.GetId());
(void) item;
// p->SetPiecesSkin(item->GetItemLabel().ToStdString());
p->BP->SetPiecesSkin(item->GetItemLabel().ToStdString());
}
void MainFrame::OnExit(wxCommandEvent &event) {
......
......@@ -12,8 +12,8 @@ namespace ochess {
namespace gui {
class BoardView: public wxPanel, public View {
private:
BoardPanel *BP;
public:
BoardPanel *BP;
BoardView(wxFrame *parent);
Controller* GetController() override;
};
......
......@@ -57,7 +57,7 @@ public:
* Configurable Members
*/
Skin *ActiveSkin;
double PiecesRatio = 0.78;
double PiecesRatio = 0.77;
double BorderRatio = 0;
int BoardPadding = 30;
wxMouseEvent MouseEvent;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment