mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Added Camera.setName method for chaining.
This commit is contained in:
parent
08ce1c37da
commit
3e3599d03f
3 changed files with 12 additions and 1 deletions
|
@ -75,6 +75,7 @@ var Camera = new Class({
|
|||
removeBounds: require('./components/RemoveBounds'),
|
||||
setBackgroundColor: require('./components/SetBackgroundColor'),
|
||||
setBounds: require('./components/SetBounds'),
|
||||
setName: require('./components/SetName'),
|
||||
setPosition: require('./components/SetPosition'),
|
||||
setRotation: require('./components/SetRotation'),
|
||||
setRoundPixels: require('./components/SetRoundPixels'),
|
||||
|
|
10
v3/src/camera/components/SetName.js
Normal file
10
v3/src/camera/components/SetName.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
var SetName = function (value)
|
||||
{
|
||||
if (value === undefined) { value = ''; }
|
||||
|
||||
this.name = value;
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
module.exports = SetName;
|
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: '4bd62f10-73f1-11e7-b8d9-bbb34810695d'
|
||||
build: 'c4c460d0-73f7-11e7-8118-7df32620cd19'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
Loading…
Reference in a new issue