WML [message]: Limit the text width for messages with portraits on both sides as already done for messages with one portrait.

(cherry-picked from commit 3809b64cf4)
This commit is contained in:
josteph 2018-09-07 17:33:24 +00:00 committed by Gregory A Lundberg
parent b7964a1002
commit 6cc6fe8527

View file

@ -771,6 +771,19 @@ where left_padding = if(gamemap_width - ({__GUI_IMAGE_WIDTH} + ({__GUI_IMAGE_WID
{_GUI_WML_MESSAGE_CONTENT}
[column]
[spacer]
width = "(
if(gamemap_width - ({__GUI_IMAGE_WIDTH} + ({__GUI_IMAGE_WIDTH})) > {MAX_TEXT_WIDTH}
, gamemap_width - ({__GUI_IMAGE_WIDTH} + ({__GUI_IMAGE_WIDTH}) + {MAX_TEXT_WIDTH})
, 0
))"
height = 75
[/spacer]
[/column]
[column]
[spacer]