WML [message]: Add left padding when the portrait is shown on the right.
The text is now shown at exactly the same place regardless of which side
the portrait is on.
Fixes #1938.
(cherry-picked from commit fc9e5f0484
)
This commit is contained in:
parent
23df7b262f
commit
b7964a1002
1 changed files with 8 additions and 4 deletions
|
@ -633,7 +633,9 @@ if(gamemap_width - ({__GUI_IMAGE_WIDTH}) > {MAX_TEXT_WIDTH}
|
|||
[column]
|
||||
|
||||
[spacer]
|
||||
width = 10
|
||||
width = "(
|
||||
if(gamemap_width - ({__GUI_IMAGE_WIDTH} + ({__GUI_IMAGE_WIDTH})) > {MAX_TEXT_WIDTH} , {__GUI_IMAGE_WIDTH} , 10)
|
||||
)"
|
||||
height = 75
|
||||
[/spacer]
|
||||
|
||||
|
@ -645,10 +647,12 @@ if(gamemap_width - ({__GUI_IMAGE_WIDTH}) > {MAX_TEXT_WIDTH}
|
|||
|
||||
[spacer]
|
||||
width = "(
|
||||
if(gamemap_width - (10 + ({__GUI_IMAGE_WIDTH})) > {MAX_TEXT_WIDTH}
|
||||
, gamemap_width - (10 + ({__GUI_IMAGE_WIDTH}) + {MAX_TEXT_WIDTH})
|
||||
if(gamemap_width - (left_padding + ({__GUI_IMAGE_WIDTH})) > {MAX_TEXT_WIDTH}
|
||||
, gamemap_width - (left_padding + ({__GUI_IMAGE_WIDTH}) + {MAX_TEXT_WIDTH})
|
||||
, 0
|
||||
))"
|
||||
)
|
||||
where left_padding = if(gamemap_width - ({__GUI_IMAGE_WIDTH} + ({__GUI_IMAGE_WIDTH})) > {MAX_TEXT_WIDTH} , {__GUI_IMAGE_WIDTH} , 10)
|
||||
)"
|
||||
height = 75
|
||||
[/spacer]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue