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

26
LINES

< > BotCompany Repo | #1023071 // Top Input To Big Overlay Text v2 [multi-line]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (9956L/52K).

1  
!7
2  
3  
cmodule TITBOT2 > DynPrintLogAndEnabled {
4  
  transient Set<JWindow> windows = weakHashSet();
5  
  Color color = Color.red;
6  
  
7  
  start {
8  
    dm_onTopInput(voidfunc(S s) {
9  
      if (!enabled) ret;
10  
      showBigText(s);
11  
    });
12  
    dm_registerAs_direct('bigTextShower);
13  
  }
14  
15  
  // API
16  
17  
  void showBigText(S s) q {
18  
    print(s);
19  
    disposeWindowsAndClearList(windows);
20  
    S text = lines_rtrim(javaTokC(upper(s)));
21  
    disposeWindowAfter(5.0, addAndReturn(windows, screenTextOverlay_withOutline_multiLine_centered(text,
22  
      outlineWidth := 6f,
23  
      fontSize := 120,
24  
      +color)));
25  
  }
26  
}

Author comment

Began life as a copy of #1023018

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023071
Snippet name: Top Input To Big Overlay Text v2 [multi-line]
Eternal ID of this version: #1023071/7
Text MD5: f4c980cf70a1d1f1f88485c4dd506fdd
Transpilation MD5: f0c92f5b980eebca54d3fe45f08fed49
Author: stefan
Category: javax / gui
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-03 14:00:13
Source code size: 612 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 12248
Version history: 6 change(s)
Referenced in: [show references]