mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-16 02:47:36 +02:00
Merge pull request #53 from xyzz/fix_1907
Fixed "Hex grid" button crash, partially fixes 1907.
This commit is contained in:
commit
176e029cd1
@ -263,14 +263,14 @@ CBattleOptionsWindow::CBattleOptionsWindow(const SDL_Rect & position, CBattleInt
|
|||||||
background = new CPicture("comopbck.bmp");
|
background = new CPicture("comopbck.bmp");
|
||||||
background->colorize(owner->getCurrentPlayerInterface()->playerID);
|
background->colorize(owner->getCurrentPlayerInterface()->playerID);
|
||||||
|
|
||||||
viewGrid = new CToggleButton(Point(25, 56), "sysopchk.def", CGI->generaltexth->zelp[427], [&](bool on){owner->setPrintCellBorders(on);} );
|
viewGrid = new CToggleButton(Point(25, 56), "sysopchk.def", CGI->generaltexth->zelp[427], [=](bool on){owner->setPrintCellBorders(on);} );
|
||||||
viewGrid->setSelected(settings["battle"]["cellBorders"].Bool());
|
viewGrid->setSelected(settings["battle"]["cellBorders"].Bool());
|
||||||
movementShadow = new CToggleButton(Point(25, 89), "sysopchk.def", CGI->generaltexth->zelp[428], [&](bool on){owner->setPrintStackRange(on);});
|
movementShadow = new CToggleButton(Point(25, 89), "sysopchk.def", CGI->generaltexth->zelp[428], [=](bool on){owner->setPrintStackRange(on);});
|
||||||
movementShadow->setSelected(settings["battle"]["stackRange"].Bool());
|
movementShadow->setSelected(settings["battle"]["stackRange"].Bool());
|
||||||
mouseShadow = new CToggleButton(Point(25, 122), "sysopchk.def", CGI->generaltexth->zelp[429], [&](bool on){owner->setPrintMouseShadow(on);});
|
mouseShadow = new CToggleButton(Point(25, 122), "sysopchk.def", CGI->generaltexth->zelp[429], [=](bool on){owner->setPrintMouseShadow(on);});
|
||||||
mouseShadow->setSelected(settings["battle"]["mouseShadow"].Bool());
|
mouseShadow->setSelected(settings["battle"]["mouseShadow"].Bool());
|
||||||
|
|
||||||
animSpeeds = new CToggleGroup([&](int value){ owner->setAnimSpeed(value);});
|
animSpeeds = new CToggleGroup([=](int value){ owner->setAnimSpeed(value);});
|
||||||
animSpeeds->addToggle(40, new CToggleButton(Point( 28, 225), "sysopb9.def", CGI->generaltexth->zelp[422]));
|
animSpeeds->addToggle(40, new CToggleButton(Point( 28, 225), "sysopb9.def", CGI->generaltexth->zelp[422]));
|
||||||
animSpeeds->addToggle(63, new CToggleButton(Point( 92, 225), "sysob10.def", CGI->generaltexth->zelp[423]));
|
animSpeeds->addToggle(63, new CToggleButton(Point( 92, 225), "sysob10.def", CGI->generaltexth->zelp[423]));
|
||||||
animSpeeds->addToggle(100, new CToggleButton(Point(156, 225), "sysob11.def", CGI->generaltexth->zelp[424]));
|
animSpeeds->addToggle(100, new CToggleButton(Point(156, 225), "sysob11.def", CGI->generaltexth->zelp[424]));
|
||||||
|
Loading…
Reference in New Issue
Block a user