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

!7

abstract !include once #1016461 // Katze

sclass Katze2 extends Katze {
  transient BakedBot bot;
  
  start {
    imageID = #1101382;
  }
  
  void setIcon(S imageID) {
    this.imageID = imageID;
    revisualize();
  }
  
  JComponent centerPart() {
    ret withMargin(40, jimage(scaleImage(2.0, loadImage2(imageID))));
  }
  
  void actuallyLoadCat {
    dm_useLocalMechListCopies();
    if (bot == null) {
      bot = bakedBotWithRules(mL_raw("Demo Cat Rules"));
      bot.useIterate(true);
      bot.useDiskCache(true);
      setCreatorTo(bot.bot, this);
    }
    catModule = runDependentWithParams(#1013936,
      denkmodulID := null, denkmodul := bot.bot,
      speakFunction := voidfunc(S s) { dm_say(s) });
    setOpt(catModule, defaultText := "");
  }
}

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: 409 / 657
Version history: 11 change(s)
Referenced in: #1018558 - Standard Function Cat [Dyn Module, use #1018551 or #1019326 with this]