Vultraz

Untitled

Apr 5th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. lua/gui/transient_message.lua | 7 ++++++-
  2. 1 file changed, 6 insertions(+), 1 deletion(-)
  3.  
  4. diff --git a/lua/gui/transient_message.lua b/lua/gui/transient_message.lua
  5. index a4ec928..1ce4050 100644
  6. --- a/lua/gui/transient_message.lua
  7. +++ b/lua/gui/transient_message.lua
  8. @@ -19,6 +19,11 @@ function wesnoth.wml_actions.transient_message(cfg)
  9. if cfg.image ~= nil then
  10. image_margin = 5
  11. end
  12. +
  13. + local caption_margin = 0
  14. + if cfg.caption ~= nil then
  15. + caption_margin = 5
  16. + end
  17.  
  18. local dd = {
  19. maximum_width = 800,
  20. @@ -39,7 +44,7 @@ function wesnoth.wml_actions.transient_message(cfg)
  21. T.grid {
  22. T.row {
  23. T.column {
  24. - border = "all", border_size = 5,
  25. + border = "all", border_size = caption_margin,
  26. vertical_alignment = "top",
  27. horizontal_alignment = "left",
  28. T.label {
Advertisement
Add Comment
Please, Sign In to add comment