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

This commit is contained in:
josteph 2018-09-07 17:33:24 +00:00 committed by Gregory A Lundberg
parent fc9e5f0484
commit 3809b64cf4

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]