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

15
LINES

< > BotCompany Repo | #1025397 // Happy / Sad Module [Change Module Icon Transiently, Demo]

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

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

1  
!7
2  
3  
cmodule HappySadModuleIconTest > DynPrintLogAndEnabled {
4  
  transient int size = 64; // Java or OS will scale anyway
5  
  
6  
  start {
7  
    doEvery(2.0, r emotion);
8  
  }
9  
  
10  
  void emotion enter {
11  
    if (!dm_visible()) ret;
12  
    dm_transientModuleIcon(!enabled ? null
13  
      : keriyo_resized_cached(printWithDate("Emotion ", tossCoin() ? "07" : "22"), size));
14  
  }
15  
}

Author comment

Began life as a copy of #1025393

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025397
Snippet name: Happy / Sad Module [Change Module Icon Transiently, Demo]
Eternal ID of this version: #1025397/8
Text MD5: 8da1d2f764b97624c47b07c6edfbc1c4
Transpilation MD5: ec1014c24a462dae3bee1b83425903c4
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-27 18:50:00
Source code size: 373 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 1455
Version history: 7 change(s)
Referenced in: [show references]