flags for flipping (unimplemented)

This commit is contained in:
Crispy 2024-05-03 13:12:54 +02:00
parent e066025836
commit 970eb402a2
2 changed files with 25 additions and 14 deletions

View file

@ -125,6 +125,8 @@ const CSIZE: f32 = 24.;
const OUTLINE: (f32, Color32) = (3., Color32::GRAY);
fn rule_editor(ui: &mut Ui, rule: &mut Rule, cells: &[CellData]) {
ui.checkbox(&mut rule.enabled, "enable rule");
ui.checkbox(&mut rule.flip_h, "flip H");
ui.checkbox(&mut rule.flip_v, "flip V");
let cells_y = rule.from.height();
let cells_x = rule.from.width();