Skip to content
Snippets Groups Projects
Commit e53827e9 authored by FarawayVision's avatar FarawayVision
Browse files

OpponentDisplay: handle silent players in updateText

parent 33977fd3
No related branches found
No related tags found
No related merge requests found
......@@ -599,6 +599,11 @@ OpponentDisplay.prototype.onResize = function () {
}
OpponentDisplay.prototype.updateText = function (player) {
if (!player.chosenState.dialogue) {
this.dialogue.empty();
return;
}
var displayElems = parseStyleSpecifiers(player.chosenState.dialogue).map(function (comp) {
/* {'text': 'foo', 'classes': 'cls1 cls2 cls3'} --> <span class="cls1 cls2 cls3">foo</span> */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment