Uses 3874K of libraries. Click here for Pure Java version (7911L/54K/194K).
!7 static Smiley smiley; svoid initConsole { swing { veryBigConsole(); showControls(jCenteredLine( jbutton("!happy", r { consoleSend("!happy") }), jbutton("!sad", r { consoleSend("!sad") }), jbutton("!angry", r { consoleSend("!angry") }), jbutton("!random", r { consoleSend("!random") }), jbutton("!list", r { consoleSend("!list") }) )); } } p-subst { bot(); initConsole(); clearConsole(); smiley = new Smiley; coActivateFrames(consoleFrame(), smiley.show()); focusConsole(); sleepQuietly(); } answer { if (eq(s, "!list")) ret join(", ", map(func(S s) { "!" + s }, values(smiley.names))); if (startsWith(s, "!")) { int i = smiley.emotionToIndex(s); if (i != 0) { smiley.emotion(i); ret "Yo"; } } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv
No comments. add comment
Snippet ID: | #1007335 |
Snippet name: | Dialog With Smiley 1 [WORKS] |
Eternal ID of this version: | #1007335/22 |
Text MD5: | 8c3113fcdc31c3bea9be4ec3edee3e51 |
Transpilation MD5: | b148358e900c2bba303d04a41f76c82a |
Author: | stefan |
Category: | javax / gui / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-22 22:35:15 |
Source code size: | 832 bytes / 38 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 759 |
Version history: | 21 change(s) |
Referenced in: | [show references] |