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
Copy file name to clipboardExpand all lines: src/gameobjects/Text.js
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@
34
34
* @param {number} [style.strokeThickness=0] - A number that represents the thickness of the stroke. Default is 0 (no stroke).
35
35
* @param {boolean} [style.wordWrap=false] - Indicates if word wrap should be used.
36
36
* @param {number} [style.wordWrapWidth=100] - The width in pixels at which text will wrap.
37
+
* @param {number} [style.maxLines=0] - The maximum number of lines to be shown for wrapped text.
37
38
* @param {number} [style.tabs=0] - The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
38
39
*/
39
40
Phaser.Text=function(game,x,y,text,style){
@@ -284,6 +285,7 @@ Phaser.Text.prototype.setShadow = function (x, y, color, blur, shadowStroke, sha
284
285
* @param {number} [style.strokeThickness=0] - A number that represents the thickness of the stroke. Default is 0 (no stroke).
285
286
* @param {boolean} [style.wordWrap=false] - Indicates if word wrap should be used.
286
287
* @param {number} [style.wordWrapWidth=100] - The width in pixels at which text will wrap.
288
+
* @param {number} [style.maxLines=0] - The maximum number of lines to be shown for wrapped text.
287
289
* @param {number|array} [style.tabs=0] - The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
288
290
* @return {Phaser.Text} This Text instance.
289
291
*/
@@ -300,6 +302,7 @@ Phaser.Text.prototype.setStyle = function (style) {
0 commit comments