Can now undo/redo grid operations
This commit is contained in:
parent
36253d8f23
commit
6b3ce01e94
5 changed files with 64 additions and 5 deletions
|
|
@ -690,8 +690,9 @@ void Toolbar::grid_menu(bool justOpened) {
|
|||
}) {
|
||||
if(gui.svg_icon_button_transparent("visibility eye", grid.visible ? "data/icons/eyeopen.svg" : "data/icons/eyeclose.svg", false, entryHeight, false)) {
|
||||
miniButtonClicked = true;
|
||||
WorldGrid oldGrid = grid;
|
||||
grid.visible = !grid.visible;
|
||||
main.world->gridMan.send_grid_info(gridID);
|
||||
main.world->gridMan.send_grid_info(oldGrid, gridID);
|
||||
}
|
||||
if(gui.svg_icon_button_transparent("edit pencil", "data/icons/pencil.svg", false, entryHeight, false)) {
|
||||
miniButtonClicked = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue