(weak: Weak<MainWindow>)
| 54 | "-1" | "sl" => 0.0, |
| 55 | "0" | "m" => 0.33, |
| 56 | "1" | "sr" => 0.66, |
| 57 | "2" | "vr" => 0.5, |
| 58 | _ => 0.33, |
| 59 | }; |
| 60 | if distance == "no" { |
| 61 | (0.375, default_base_y) |
| 62 | } else { |
| 63 | (bx, default_base_y) |
| 64 | } |
| 65 | }; |
| 66 | |
| 67 | (base_x, base_y, width_ratio) |
| 68 | } |
| 69 | |
| 70 | #[derive(Clone)] |
| 71 | pub(crate) struct Executor { |
| 72 | script: Rc<RefCell<Script>>, |
| 73 | media_player: Rc<RefCell<MediaPlayer>>, |
| 74 | cg: Rc<RefCell<u64>>, |
| 75 | weak: Weak<MainWindow>, |