scroll on tools to rotate between variants
This commit is contained in:
parent
ed956ffbe4
commit
44017f4ed5
5 changed files with 145 additions and 69 deletions
|
@ -361,17 +361,10 @@ impl Machine {
|
|||
WireType::Vertical => WireType::Horizontal,
|
||||
WireType::Horizontal => WireType::Vertical,
|
||||
WireType::Cross => WireType::Cross,
|
||||
};
|
||||
}
|
||||
Tile::Mirror(mirror) => {
|
||||
*mirror = match *mirror {
|
||||
MirrorType::Forward => MirrorType::Back,
|
||||
MirrorType::Back => MirrorType::Forward,
|
||||
};
|
||||
}
|
||||
Tile::Arrow(dir) => {
|
||||
*dir = dir.opposite();
|
||||
}
|
||||
}
|
||||
Tile::Mirror(mirror) => mirror.flip(),
|
||||
Tile::Arrow(dir) => *dir = dir.opposite(),
|
||||
_ => (),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue