Remove tabs and newlines from displaying in holo

fixes #12
This commit is contained in:
Kevin Ramharak
2018-01-01 16:31:41 +01:00
committed by GitHub
parent 71687cdc9f
commit a1f467576f

View File

@@ -344,7 +344,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/, ''), {
fontSize: 27, fontSize: 27,
fill: color ? color : colorScheme.hologramFill, fill: color ? color : colorScheme.hologramFill,
stroke: colorScheme.hologramStroke, stroke: colorScheme.hologramStroke,