Transpiled version (20801L) is out of date.
1 | // script that makes randomized images |
2 | concept G22Challenge > G22LAScript {
|
3 | S type = "Single Image"; |
4 | bool usesRNG; |
5 | |
6 | // types |
7 | sS type_singleImage = "Single Image"; |
8 | sS type_animation = "Animation"; |
9 | static LS types = ll(type_singleImage, type_animation); |
10 | |
11 | void _onChange :: after {
|
12 | lvType?.set(type); |
13 | lvUsesRNG?.set(usesRNG); |
14 | } |
15 | |
16 | transient SimpleLiveValue<S> lvType; |
17 | synchronized SimpleLiveValue<S> lvType() {
|
18 | ret lvType if null = new SimpleLiveValue(S, type).onChange(r {
|
19 | setField(type := lvType!); |
20 | }); |
21 | } |
22 | |
23 | transient SimpleLiveValue<Bool> lvUsesRNG; |
24 | synchronized SimpleLiveValue<Bool> lvUsesRNG() {
|
25 | ret lvUsesRNG if null = new SimpleLiveValue(Bool, usesRNG).onChange(r {
|
26 | setField(usesRNG := lvUsesRNG!); |
27 | }); |
28 | } |
29 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034204 |
| Snippet name: | G22Challenge |
| Eternal ID of this version: | #1034204/13 |
| Text MD5: | 2d4ecae3c3c993b59b9c9acd2ed13118 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-03 09:51:48 |
| Source code size: | 807 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 687 / 885 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |