|
|
@@ -1,3 +1,6 @@ |
|
|
|
import CommonModule from './common_module.js'; |
|
|
|
|
|
|
|
|
|
|
|
class |
|
|
|
Talk |
|
|
|
{ |
|
|
@@ -46,10 +49,27 @@ Canvas |
|
|
|
this.putText (0, 0, 15, $ ('#dt').val ()); |
|
|
|
this.putImage (this.nizika, 370, 260, 1.1); |
|
|
|
this.putImage (this.talking, 0, 0, 640 / 1024); |
|
|
|
this.putText (75, 43.75, 20, '> ' + $ ('#chat').val (), |
|
|
|
this.putText (75, 43.75, 20, |
|
|
|
('> ' + ((CommonModule.lenByFull ($ ('#chat').val ()) <= 21) |
|
|
|
? $ ('#chat').val () |
|
|
|
: (CommonModule.midByFull ($ ('#chat').val (), 0, 19.5) |
|
|
|
+ '...'))), |
|
|
|
undefined, undefined, |
|
|
|
true); |
|
|
|
this.putText (62.5, 93.75, 31.25, $ ('#answer').val (), 'Nikumaru', '#c00000'); |
|
|
|
this.putText (62.5, 93.75, 31.25, |
|
|
|
((CommonModule.lenByFull ($ ('#answer').val ()) <= 16) |
|
|
|
? $ ('#answer').val () |
|
|
|
: CommonModule.midByFull ($ ('#answer').val (), 0, 16)), |
|
|
|
'Nikumaru', '#c00000'); |
|
|
|
if (CommonModule.lenByFull ($ ('#answer').val ()) > 16) |
|
|
|
{ |
|
|
|
this.putText (62.5, 125, 31.25, |
|
|
|
((CommonModule.lenByFull ($ ('#answer').val ()) <= 32) |
|
|
|
? CommonModule.midByFull ($ ('#answer').val (), 16, 16) |
|
|
|
: (CommonModule.midByFull ($ ('#answer').val (), 16, 14.5) |
|
|
|
+ '...')), |
|
|
|
'Nikumaru', '#c00000'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
putBG () |
|
|
|