Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1036368 // G22ScriptView

JavaX fragment (include) [tags: use-pretranspiled]

Uses 2164K of libraries. Click here for Pure Java version (69795L/371K).

1  
sclass G22ScriptView extends JOnDemandWithReloadButton {
2  
  G22LAScript script;
3  
  settable bool mustBeAutoRunnable;
4  
  
5  
  *(G22LAScript *script) {
6  
    if (script != null)
7  
      makeComponent = -> mustBeAutoRunnable
8  
        ? g22utils().visualizeAutoRunnableScript(script)
9  
        : g22utils().visualizeSavedScript(script);
10  
  }
11  
  
12  
  G22Utils g22utils() { ret script.g22utils(); }
13  
  
14  
  void makeControls :: after {
15  
    if (script != null)
16  
      controls.add(g22utils().editScriptButton(script));
17  
  }
18  
}

Author comment

Began life as a copy of #1036191

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036368
Snippet name: G22ScriptView
Eternal ID of this version: #1036368/5
Text MD5: 849d29722ee5cd528984d3139653ecb3
Transpilation MD5: 7606a7bebe3c320229fdaf475c6474d4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-07-27 00:02:02
Source code size: 514 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 83 / 137
Version history: 4 change(s)
Referenced in: [show references]