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:
parent
b7964a1002
commit
6cc6fe8527
1 changed files with 13 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue