UNPKG

phaser3-rex-plugins

Version:
23 lines (17 loc) 521 B
import CreateSeparator from '../builders/CreateSeparator.js'; const GetValue = Phaser.Utils.Objects.GetValue; var AddSeparator = function (config) { if (config === undefined) { config = {}; } // Create separator var separatorStyle = GetValue(this.styles, 'separator'); var separator = CreateSeparator(this, config, separatorStyle); // Add separator this.add( separator, { expand: true } ); return this; } export default AddSeparator;