Skip to content

Commit

Permalink
Enabling manual space width for TextViewFacingMarker (#1261)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Moore <[email protected]>
  • Loading branch information
ayrton04 authored Aug 21, 2024
1 parent 37cf805 commit db7e7f8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ void TextViewFacingMarker::onNewMessage(
scene_node_->setVisible(true);

setPosition(pos);
if (new_message->scale.x != 0.0) {
text_->setSpaceWidth(new_message->scale.x);
}
text_->setCharacterHeight(new_message->scale.z);
text_->setColor(
Ogre::ColourValue(
Expand Down

0 comments on commit db7e7f8

Please sign in to comment.