Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lua/gui/transient_message.lua | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
- diff --git a/lua/gui/transient_message.lua b/lua/gui/transient_message.lua
- index a4ec928..1ce4050 100644
- --- a/lua/gui/transient_message.lua
- +++ b/lua/gui/transient_message.lua
- @@ -19,6 +19,11 @@ function wesnoth.wml_actions.transient_message(cfg)
- if cfg.image ~= nil then
- image_margin = 5
- end
- +
- + local caption_margin = 0
- + if cfg.caption ~= nil then
- + caption_margin = 5
- + end
- local dd = {
- maximum_width = 800,
- @@ -39,7 +44,7 @@ function wesnoth.wml_actions.transient_message(cfg)
- T.grid {
- T.row {
- T.column {
- - border = "all", border_size = 5,
- + border = "all", border_size = caption_margin,
- vertical_alignment = "top",
- horizontal_alignment = "left",
- T.label {
Advertisement
Add Comment
Please, Sign In to add comment