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).

!7

cmodule TITBOT2 > DynPrintLogAndEnabled {
  transient Set<JWindow> windows = weakHashSet();
  Color color = Color.red;
  
  start {
    dm_onTopInput(voidfunc(S s) {
      if (!enabled) ret;
      showBigText(s);
    });
    dm_registerAs_direct('bigTextShower);
  }

  // API

  void showBigText(S s) q {
    print(s);
    disposeWindowsAndClearList(windows);
    S text = lines_rtrim(javaTokC(upper(s)));
    disposeWindowAfter(5.0, addAndReturn(windows, screenTextOverlay_withOutline_multiLine_centered(text,
      outlineWidth := 6f,
      fontSize := 120,
      +color)));
  }
}

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: 252 / 12244
Version history: 6 change(s)
Referenced in: [show references]