| 94 | |
| 95 | (q as MutableList<Box>).clear() |
| 96 | } |
| 97 | |
| 98 | var beginCount: Int = 0 |
| 99 | |
| 100 | fun begin() { |
| 101 | if (beginCount == 0) { |
| 102 | val q = parent.properties.computeIfAbsent(contents) { k -> ArrayList() } |
| 103 | q.forEach { x -> x.properties.put(mark, false) } |
| 104 | |
| 105 | RunLoop.main.mainLoop.attach(Scene.perform(100, { |
| 106 | end() |
| 107 | false |
| 108 | })) |
| 109 | beginCount++ |
| 110 | } |