You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {number} x - The horizontal position of this Game Object in the world.
19
-
* @param {number} y - The vertical position of this Game Object in the world.
20
-
* @param {string} element - The DOM element.
20
+
* @param {number} x - The horizontal position of this DOM Element in the world.
21
+
* @param {number} y - The vertical position of this DOM Element in the world.
22
+
* @param {(HTMLElement|string)} [element] - An existing DOM element, or a string. If a string starting with a # it will do a `getElementById` look-up on the string (minus the hash). Without a hash, it represents the type of element to create, i.e. 'div'.
23
+
* @param {(string|any)} [style] - If a string, will be set directly as the elements `style` property value. If a plain object, will be iterated and the values transferred. In both cases the values replacing whatever CSS styles may have been previously set.
24
+
* @param {string} [innerText] - If given, will be set directly as the elements `innerText` property value, replacing whatever was there before.
21
25
*
22
26
* @return {Phaser.GameObjects.DOMElement} The Game Object that was created.
0 commit comments