mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
Remove RenderedTarget.setSay + its test
This commit is contained in:
parent
1ba3181a9d
commit
05dcbc176f
2 changed files with 0 additions and 29 deletions
|
@ -1,4 +1,3 @@
|
|||
const log = require('../util/log');
|
||||
const MathUtil = require('../util/math-util');
|
||||
const StringUtil = require('../util/string-util');
|
||||
const Cast = require('../util/cast');
|
||||
|
@ -341,23 +340,6 @@ class RenderedTarget extends Target {
|
|||
this.runtime.requestTargetsUpdate(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a say bubble.
|
||||
* @param {?string} type Type of say bubble: "say", "think", or null.
|
||||
* @param {?string} message Message to put in say bubble.
|
||||
*/
|
||||
setSay (type, message) {
|
||||
if (this.isStage) {
|
||||
return;
|
||||
}
|
||||
// @todo: Render to stage.
|
||||
if (!type || !message) {
|
||||
log.info('Clearing say bubble');
|
||||
return;
|
||||
}
|
||||
log.info('Setting say bubble:', type, message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set visibility; i.e., whether it's shown or hidden.
|
||||
* @param {!boolean} visible True if should be shown.
|
||||
|
|
|
@ -56,17 +56,6 @@ test('direction', t => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('setSay', t => {
|
||||
const r = new Runtime();
|
||||
const s = new Sprite(null, r);
|
||||
const a = new RenderedTarget(s, r);
|
||||
const renderer = new FakeRenderer();
|
||||
a.renderer = renderer;
|
||||
a.setSay();
|
||||
a.setSay('types not specified', 'message');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('setVisible', t => {
|
||||
const r = new Runtime();
|
||||
const s = new Sprite(null, r);
|
||||
|
|
Loading…
Reference in a new issue