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

34
LINES

< > BotCompany Repo | #1018412 // Demo Cat [Dyn Module]

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

Libraryless. Click here for Pure Java version (21146L/114K).

1  
!7
2  
3  
abstract !include once #1016461 // Katze
4  
5  
sclass Katze2 extends Katze {
6  
  transient BakedBot bot;
7  
  
8  
  start {
9  
    imageID = #1101382;
10  
  }
11  
  
12  
  void setIcon(S imageID) {
13  
    this.imageID = imageID;
14  
    revisualize();
15  
  }
16  
  
17  
  JComponent centerPart() {
18  
    ret withMargin(40, jimage(scaleImage(2.0, loadImage2(imageID))));
19  
  }
20  
  
21  
  void actuallyLoadCat {
22  
    dm_useLocalMechListCopies();
23  
    if (bot == null) {
24  
      bot = bakedBotWithRules(mL_raw("Demo Cat Rules"));
25  
      bot.useIterate(true);
26  
      bot.useDiskCache(true);
27  
      setCreatorTo(bot.bot, this);
28  
    }
29  
    catModule = runDependentWithParams(#1013936,
30  
      denkmodulID := null, denkmodul := bot.bot,
31  
      speakFunction := voidfunc(S s) { dm_say(s) });
32  
    setOpt(catModule, defaultText := "");
33  
  }
34  
}

Author comment

Began life as a copy of #1017843

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018412
Snippet name: Demo Cat [Dyn Module]
Eternal ID of this version: #1018412/12
Text MD5: b2170f6a986ed5b3cb29d33aa112517b
Transpilation MD5: f87e6f016a6e66ff38a0dd23ebbe5888
Author: stefan
Category: javax / speech
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-27 15:22:22
Source code size: 801 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 578
Version history: 11 change(s)
Referenced in: [show references]