mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-04-19 18:46:41 +00:00
Merge pull request #13 from KevinRamharak/patch-4
Remove newlines and tabs in hologram
This commit is contained in:
commit
aac9fb8f47
@ -345,7 +345,7 @@ function updateGameObject(object, responseObj) {
|
|||||||
|
|
||||||
} else if (responseObj.holoMode === 2) {
|
} else if (responseObj.holoMode === 2) {
|
||||||
//String
|
//String
|
||||||
object.hologram = game.make.text(0, 32, responseObj.holoStr, {
|
object.hologram = game.make.text(0, 32, responseObj.holoStr.replace(/[\n|\t]/g, ''), {
|
||||||
fontSize: 27,
|
fontSize: 27,
|
||||||
fill: color ? color : colorScheme.hologramFill,
|
fill: color ? color : colorScheme.hologramFill,
|
||||||
stroke: colorScheme.hologramStroke,
|
stroke: colorScheme.hologramStroke,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user