phaser4-rex-plugins
Version:
13 lines (11 loc) • 347 B
JavaScript
import TextEdit from './TextEdit.js';
var Edit = function (gameObject, config, onCloseCallback) {
if (!gameObject._edit) {
gameObject._edit = new TextEdit(gameObject, {
clickEnable: false
});
}
gameObject._edit.open(config, onCloseCallback);
return gameObject._edit;
}
export default Edit;