CINXE.COM
[solved] Gui2 dialog formatting - The Battle for Wesnoth Forums
<!DOCTYPE html> <html dir="ltr" lang="en-gb"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>[solved] Gui2 dialog formatting - The Battle for Wesnoth Forums</title> <link rel="alternate" type="application/atom+xml" title="Feed - The Battle for Wesnoth Forums" href="/app.php/feed?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <link rel="alternate" type="application/atom+xml" title="Feed - News" href="/app.php/feed/news?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <link rel="alternate" type="application/atom+xml" title="Feed - All forums" href="/app.php/feed/forums?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <link rel="alternate" type="application/atom+xml" title="Feed - New Topics" href="/app.php/feed/topics?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <link rel="alternate" type="application/atom+xml" title="Feed - Forum - Lua Labs" href="/app.php/feed/forum/58?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <link rel="alternate" type="application/atom+xml" title="Feed - Topic - [solved] Gui2 dialog formatting" href="/app.php/feed/topic/58239?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <link rel="canonical" href="https://forums.wesnoth.org/viewtopic.php?t=58239"> <!-- phpBB style name: prosilver Special Edition Based on style: prosilver (this is the default phpBB3 style) Original author: Tom Beddard ( http://www.subBlue.com/ ) Modified by: phpBB Limited ( https://www.phpbb.com/ ) --> <link href="./../styles/prosilver/theme/normalize.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/base.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/utilities.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/common.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/links.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/content.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/buttons.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/cp.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/forms.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/icons.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/colours.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/responsive.css?assets_version=264" rel="stylesheet"> <link href="./../assets/css/font-awesome.min.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver_se/theme/stylesheet.css?assets_version=264" rel="stylesheet"> <link href="./../styles/prosilver/theme/en/stylesheet.css?assets_version=264" rel="stylesheet"> <link href="./../assets/cookieconsent/cookieconsent.min.css?assets_version=264" rel="stylesheet"> <!--[if lte IE 9]> <link href="./../styles/prosilver/theme/tweaks.css?assets_version=264" rel="stylesheet"> <![endif]--> <link rel="apple-touch-icon" type="image/png" href="https://www.wesnoth.org/wesmere/img/apple-touch-icon.png" sizes="180x180" /> <link rel="icon" type="image/png" href="https://www.wesnoth.org/wesmere/img/favicon-32.png" sizes="32x32" /> <link rel="icon" type="image/png" href="https://www.wesnoth.org/wesmere/img/favicon-16.png" sizes="16x16" /> <meta name="theme-color" content="#0f1421" /> <link href="https://www.wesnoth.org/wesmere/css/forums-1.2.0.css" rel="stylesheet" type="text/css" /> <style> /* * phpBB overrides */ #page-header > .headerbar { display: none!important; } body { padding-top: 0; } /*.search-header { margin-top: 0; margin-right: 0; box-shadow: 0 0 2px #0075B0; }*/ </style> </head> <body id="phpbb" class="nojs notouch section-viewtopic//viewtopic ltr "> <div id="wesmere-embed"> <div id="nav" role="banner"> <div class="centerbox"> <div id="logo"> <a href="https://www.wesnoth.org/" aria-label="Wesnoth logo"></a> </div> <ul id="navlinks" role="navigation"> <li><a href="https://www.wesnoth.org/">Home</a></li> <li><a href="https://forums.wesnoth.org/viewforum.php?f=62">News</a></li> <li><a href="https://wiki.wesnoth.org/Play">Play</a></li> <li><a href="https://wiki.wesnoth.org/Create">Create</a></li> <li><a href="https://forums.wesnoth.org/">Forums</a></li> <li><a href="https://wiki.wesnoth.org/Project">About</a></li> </ul> <div id="sitesearch" role="search"> <form method="get" action="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <input id="searchbox" class="has-advanced-search" type="search" name="keywords" placeholder="Search" title="Search these forums [Alt+Shift+f]" accesskey="f" /> <span id="searchbox-controls"> <button id="search-go" class="search-button" type="submit" title="Search"> <i class="fa fa-fw fa-search search-icon" aria-hidden="true"></i> <span class="sr-label">Search</span> </button> <a id="search-opts" class="search-button" href="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Advanced search"> <i class="fa fa-fw fa-cog advsearch-icon" aria-hidden="true"></i> <span class="sr-label">Advanced search</span> </a> </span> </form> </div> <div class="reset"></div> </div> </div> </div> <div id="content"> <div id="wrap" class="wrap"> <a id="top" class="top-anchor" accesskey="t"></a> <div id="page-header"> <div class="headerbar" role="banner"> <div class="inner"> <div id="site-description" class="site-description"> <a id="logo" class="logo" href="./../index.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Forums"> <span class="site_logo"></span> </a> <h1>The Battle for Wesnoth Forums</h1> <p>The official forums for The Battle for Wesnoth.</p> <p class="skiplink"><a href="#start_here">Skip to content</a></p> </div> <div id="search-box" class="search-box search-header" role="search"> <form action="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" method="get" id="search"> <fieldset> <input name="keywords" id="keywords" type="search" maxlength="128" title="Search for keywords" class="inputbox search tiny" size="20" value="" placeholder="Search…" /> <button class="button button-search" type="submit" title="Search"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span> </button> <a href="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="button button-search-end" title="Advanced search"> <i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">Advanced search</span> </a> <input type="hidden" name="sid" value="2b9323c5a1d98a2994ef5fb44c6e3664" /> </fieldset> </form> </div> </div> </div> <div class="navbar" role="navigation"> <div class="inner"> <ul id="nav-main" class="nav-main linklist" role="menubar"> <li id="quick-links" class="quick-links dropdown-container responsive-menu" data-skip-responsive="true"> <a href="#" class="dropdown-trigger"> <i class="icon fa-bars fa-fw" aria-hidden="true"></i><span>Quick links</span> </a> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <ul class="dropdown-contents" role="menu"> <li class="separator"></li> <li> <a href="./../search.php?search_id=unanswered&sid=2b9323c5a1d98a2994ef5fb44c6e3664" role="menuitem"> <i class="icon fa-file-o fa-fw icon-gray" aria-hidden="true"></i><span>Unanswered topics</span> </a> </li> <li> <a href="./../search.php?search_id=active_topics&sid=2b9323c5a1d98a2994ef5fb44c6e3664" role="menuitem"> <i class="icon fa-file-o fa-fw icon-blue" aria-hidden="true"></i><span>Active topics</span> </a> </li> <li class="separator"></li> <li> <a href="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" role="menuitem"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span>Search</span> </a> </li> <li class="separator"></li> </ul> </div> </li> <li data-skip-responsive="true"> <a href="/app.php/help/faq?sid=2b9323c5a1d98a2994ef5fb44c6e3664" rel="help" title="Frequently Asked Questions" role="menuitem"> <i class="icon fa-question-circle fa-fw" aria-hidden="true"></i><span>FAQ</span> </a> </li> <li data-last-responsive="true"> <a href="https://forums.wesnoth.org/viewtopic.php?t=24277&sid=2b9323c5a1d98a2994ef5fb44c6e3664" rel="help" title="View the Community Guidelines" role="menuitem"> <i class="icon fa-book fa-fw" aria-hidden="true"></i><span>Community Guidelines</span> </a> </li> <li class="rightside" data-skip-responsive="true"> <a href="./../ucp.php?mode=login&redirect=viewtopic.php%2F%2Fviewtopic.php%3Fp%3D689793&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Login" accesskey="x" role="menuitem"> <i class="icon fa-power-off fa-fw" aria-hidden="true"></i><span>Login</span> </a> </li> <li class="rightside" data-skip-responsive="true"> <a href="./../ucp.php?mode=register&sid=2b9323c5a1d98a2994ef5fb44c6e3664" role="menuitem"> <i class="icon fa-pencil-square-o fa-fw" aria-hidden="true"></i><span>Register</span> </a> </li> </ul> <ul id="nav-breadcrumbs" class="nav-breadcrumbs linklist navlinks" role="menubar"> <li class="breadcrumbs" itemscope itemtype="https://schema.org/BreadcrumbList"> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope><a itemprop="item" href="./../index.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" accesskey="h" data-navbar-reference="index"><i class="icon fa-home fa-fw"></i><span itemprop="name">Forums</span></a><meta itemprop="position" content="1" /></span> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope data-forum-id="26"><a itemprop="item" href="./../viewforum.php?f=26&sid=2b9323c5a1d98a2994ef5fb44c6e3664"><span itemprop="name">Development</span></a><meta itemprop="position" content="2" /></span> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope data-forum-id="58"><a itemprop="item" href="./../viewforum.php?f=58&sid=2b9323c5a1d98a2994ef5fb44c6e3664"><span itemprop="name">Lua Labs</span></a><meta itemprop="position" content="3" /></span> </li> <li class="rightside responsive-search"> <a href="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="View the advanced search options" role="menuitem"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span> </a> </li> </ul> </div> </div> </div> <a id="start_here" class="anchor"></a> <div id="page-body" class="page-body" role="main"> <h2 class="topic-title"><a href="./../viewtopic.php?t=58239&sid=2b9323c5a1d98a2994ef5fb44c6e3664">[solved] Gui2 dialog formatting</a></h2> <!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body --> <div style="display: none !important;">Discussion of Lua and <a class="postlink" href="//wiki.wesnoth.org/LuaWML">LuaWML</a> support, development, and ideas.<br /></div> <p> <strong>Moderator:</strong> <a style="color:#008000;" href="./../memberlist.php?mode=group&g=6643&sid=2b9323c5a1d98a2994ef5fb44c6e3664">Forum Moderators</a> </p> <div class="action-bar bar-top"> <a href="./../posting.php?mode=reply&t=58239&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="button" title="Post a reply"> <span>Post Reply</span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i> </a> <div class="search-box" role="search"> <form method="get" id="topic-search" action="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <fieldset> <input class="inputbox search tiny" type="search" name="keywords" id="search_keywords" size="20" placeholder="Search this topic…" /> <button class="button button-search" type="submit" title="Search"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span> </button> <a href="./../search.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="button button-search-end" title="Advanced search"> <i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">Advanced search</span> </a> <input type="hidden" name="t" value="58239" /> <input type="hidden" name="sf" value="msgonly" /> <input type="hidden" name="sid" value="2b9323c5a1d98a2994ef5fb44c6e3664" /> </fieldset> </form> </div> <div class="pagination"> 15 posts • Page <strong>1</strong> of <strong>1</strong> </div> </div> <div id="p689724" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689724"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689724"> <h3 class="first"> <a href="./../viewtopic.php?p=689724&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689724">[solved] Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689724&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689724&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689724" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-12T15:56:19+00:00">May 12th, 2024, 3:56 pm</time> </p> <div class="content">Hi<br> Could someone help me with my dialog? <div class="inline-attachment"> <dl class="thumbnail"> <dt><a href="./../download/file.php?id=97445&sid=2b9323c5a1d98a2994ef5fb44c6e3664&mode=view"><img src="./../download/file.php?id=97445&t=1&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="postimage" alt="Screenshot_20240512_171736.png" title="Screenshot_20240512_171736.png (798.09 KiB) Viewed 1977 times" /></a></dt> </dl> </div> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>-- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_size_message = 70000 local font_family_title = "Oldania ADF Std" local font_family_message = "Oldania ADF Std" -- metatable for GUI tags local T = wml.tag -- [narration] -- an alternative interface for messages -- TODO add [options], [text_input] function wml_actions.narration( cfg ) local show_when_unit_hidden = cfg.show_when_unit_hidden or false local speaker_unit = true if cfg.speaker_unit == false then speaker_unit = false local left_image = cfg.left_image local right_image = cfg.right_image local unit local is_unit_hidden if speaker_unit == true then local filter = wml.shallow_literal(cfg) filter.title = nil filter.left_image = nil filter.right_image = nil filter.message = nil table.insert(filter, wml.tag.filter_vision{side = 1}) --wml.remove_children(filter, 'tag_you_want_to_remove', 'another_tag_you_want_to_remove') filter = wml.tovconfig(filter) unit = wesnoth.units.find(filter)[1] if unit == nil then if show_when_unit_hidden == false then return else is_unit_hidden = true local filter = wml.shallow_literal(cfg) filter.title = nil filter.image = nil filter.message = nil filter = wml.tovconfig(filter) unit = wesnoth.units.find(filter)[1] if unit == nil then return end end else is_unit_hidden = false end end --TODO NOW SET IMAGE, IF ANY IMAGE IS PASSED, TO IT, ELSE LEFT FRIEND, RIGHT ENEMY if (speaker_unit == true) and (left_image == nil or left_image == "") and (cfg.right_image == nil or cfg.right_image == "") then left_image = unit.portrait std_print(filesystem.image_size(left_image)) --for original values end -- if unit is hidden is_unit_hidden = local narration = { T.helptip { id="tooltip_large" }, -- mandatory field T.tooltip { id="tooltip_large" }, -- mandatory field maximum_height = "(gamemap_height)", maximum_width = "(gamemap_width)", height = "(gamemap_height)", width = "(gamemap_width)", automatic_placement = false, x=0, y="(screen_height-gamemap_height)", vertical_grow = true, click_dismiss = true, -- T.background{ -- T.draw{} -- }, -- T.foreground{ -- T.draw{ -- T.image{ -- x = 100, -- y = 100, -- w = 100, -- h = 100, -- name = "items/ring-gold.png", -- mirror = true, -- } -- } -- }, T.grid { T.row { T.column { vertical_alignment="bottom", horizontal_alignment = "left", grow_factor = 1, border = "all", border_size = 5, T.image { id = "left_image" } }, T.column { vertical_alignment="bottom", T.stacked_widget{ id = "narration_stacked_widget", definition = "default", T.layer{ T.row { T.column { horizontal_alignment = "center", grow_factor = 1, border = "all", border_size = 5, T.label { definition = "title", text_alignment = "center", id = "narration_title" } } }, T.row { --grow_factor = 0, --TODO idk what this does T.column { horizontal_alignment = "center", grow_factor = 1, border = "all", border_size = 5, T.label { definition = "text", text_alignment = "center", id = "narration_message" } } --TODO Why two columns doest work, 2 columns everywhere needed } }, T.layer{ T.row { T.column { horizontal_placement = "left", vertical_placement = "bottom", grow_factor = 1, border = "all", border_size = 5, T.text_box { id = "space_closing" } } } } } } } } } local function narration_preshow(dialog) -- here set all widget starting values dialog:set_canvas(1, { } ) dialog.space_closing:focus() dialog.space_closing.on_modified = function() if dialog.space_closing.text == " " then dialog:close() end dialog.space_closing.text ="" end dialog.narration_stacked_widget.narration_message.visible = true dialog.narration_stacked_widget.narration_title.visible = true dialog.narration_stacked_widget.space_closing.visible = false --dialog.on_left_click = dialog:close() BREAKS WESNOTH dialog.narration_title.use_markup = true dialog.narration_message.use_markup = true local title if unit == nil then title = cfg.title or "Narrator" else title = cfg.title or unit.name end dialog.left_image.label = "portraits/humans/mage-arch.webp" dialog.narration_title.label = "<span size='"..font_size_title.."' font_family='"..font_family_title.."' >"..title.."</span>" local message = cfg.message or "" dialog.narration_message.label = "<span size='"..font_size_message.."' font_family='"..font_family_message.."' >"..message.."</span>" --dialog.image_name.label = cfg.image or "" end local function narration_postshow(dialog) -- here get all widget values end -- close_func = function close_dialog(dialog) -- dialog:close() -- end -- dialog:find("narration_message").on_left_click = close_func gui.show_dialog( narration, narration_preshow, narration_postshow ) end</code></pre></div> called with <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>[narration] speaker_unit=no message=_"This is short message" [/narration]</code></pre></div> Any idea how to: 1. Align the image to the bottom of the screen?<br> 2. Center the text right into the center between image and right border?<br> <br> (I'm planning to add an option to add even image from the right)</div> <div class="notice"> Last edited by <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> on May 16th, 2024, 7:20 am, edited 1 time in total. </div> <div id="sig689724" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689725" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689725"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689725"> <h3 > <a href="./../viewtopic.php?p=689725&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689725">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689725&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689725&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689725" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-12T16:06:07+00:00">May 12th, 2024, 4:06 pm</time> </p> <div class="content">I'm sorry I'm pinging you, Vultraz, but you're quite hard to contact and I'm not sure if you check Lua Labs<br> If that disturbs you, tell me and I won't repeat that ^^<br> (I've been told you know gui2 a lot) <blockquote><div><cite><a href="./../memberlist.php?mode=viewprofile&u=125235&sid=2b9323c5a1d98a2994ef5fb44c6e3664">vultraz</a> wrote:</cite></div></blockquote></div> <div id="sig689725" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689730" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689730"> <dt class="no-profile-rank no-avatar"> <div class="avatar-container"> </div> <a href="./../memberlist.php?mode=viewprofile&u=165464&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">white_haired_uncle</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=165464&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">1456</a></dd> <dd class="profile-joined"><strong>Joined:</strong> August 26th, 2018, 11:46 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> A country place, far outside the Wire</dd> </dl> <div class="postbody"> <div id="post_content689730"> <h3 > <a href="./../viewtopic.php?p=689730&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689730">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689730&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689730&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689730" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=165464&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">white_haired_uncle</a></strong> » </span><time datetime="2024-05-12T16:55:41+00:00">May 12th, 2024, 4:55 pm</time> </p> <div class="content">Well, I'm terrible with lining things up, but it looks like this column is right justified:<br> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code> T.column { -- SHOULD HORIZONTAL_ALIGNMENT = "CENTER" GO HERE??? vertical_alignment="bottom", T.stacked_widget{ id = "narration_stacked_widget",</code></pre></div> So, while it looks like you've centered your text inside that column, it's the column itself that (also) needs to be centered. You might add a colored border so you can see what part of the gui the column resides (something I've wanted to test but haven't done yet). If you do try the borders I'd be interested to see the code/results.<br> <br> Also, and again I'm terrible at this, I would be tempted to go ahead and add the right image (or a spacer of the same size), set grow_factor=0 on the columns of the images and grow factor=1 on the center/text column.<br> <br> BTW, I doubt it matters but I notice you're using *_placement on your text_box. Is that even valid? I thought placement was only for dialogs.</div> <div id="sig689730" class="signature"><div style="text-align:center">Speak softly, and carry <a class="postlink" href="//wiki.wesnoth.org/LotI_Items#Doombringer_.E2.80.93_sword">Doombringer</a>.</div></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689731" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689731"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689731"> <h3 > <a href="./../viewtopic.php?p=689731&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689731">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689731&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689731&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689731" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-12T17:40:01+00:00">May 12th, 2024, 5:40 pm</time> </p> <div class="content"><blockquote cite="./../viewtopic.php?p=689730&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689730"><div><cite><a href="./../memberlist.php?mode=viewprofile&u=165464&sid=2b9323c5a1d98a2994ef5fb44c6e3664">white_haired_uncle</a> wrote: <a href="./../viewtopic.php?p=689730&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689730" data-post-id="689730" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a><span class="responsive-hide">May 12th, 2024, 4:55 pm</span></cite> Well, I'm terrible with lining things up, but it looks like this column is right justified:<br> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code> T.column { -- SHOULD HORIZONTAL_ALIGNMENT = "CENTER" GO HERE??? vertical_alignment="bottom", T.stacked_widget{ id = "narration_stacked_widget",</code></pre></div> So, while it looks like you've centered your text inside that column, it's the column itself that (also) needs to be centered. You might add a colored border so you can see what part of the gui the column resides (something I've wanted to test but haven't done yet). If you do try the borders I'd be interested to see the code/results.<br> <br> Also, and again I'm terrible at this, I would be tempted to go ahead and add the right image (or a spacer of the same size), set grow_factor=0 on the columns of the images and grow factor=1 on the center/text column.<br> <br> BTW, I doubt it matters but I notice you're using *_placement on your text_box. Is that even valid? I thought placement was only for dialogs. </div></blockquote> You were right! (I had no idea what grow factor actually is) <div class="inline-attachment"> <dl class="thumbnail"> <dt><a href="./../download/file.php?id=97449&sid=2b9323c5a1d98a2994ef5fb44c6e3664&mode=view"><img src="./../download/file.php?id=97449&t=1&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="postimage" alt="Screenshot_20240512_193833.png" title="Screenshot_20240512_193833.png (788.8 KiB) Viewed 1928 times" /></a></dt> </dl> </div> Thanks <3<br> Any idea how to move it to the VERY bottom now? ^^</div> <div id="sig689731" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689732" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689732"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689732"> <h3 > <a href="./../viewtopic.php?p=689732&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689732">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689732&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689732&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689732" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-12T17:40:41+00:00">May 12th, 2024, 5:40 pm</time> </p> <div class="content">About that box... idk it's just for skiping messages and I don't really care where it is.</div> <div id="sig689732" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689734" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689734"> <dt class="no-profile-rank no-avatar"> <div class="avatar-container"> </div> <a href="./../memberlist.php?mode=viewprofile&u=165464&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">white_haired_uncle</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=165464&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">1456</a></dd> <dd class="profile-joined"><strong>Joined:</strong> August 26th, 2018, 11:46 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> A country place, far outside the Wire</dd> </dl> <div class="postbody"> <div id="post_content689734"> <h3 > <a href="./../viewtopic.php?p=689734&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689734">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689734&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689734&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689734" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=165464&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">white_haired_uncle</a></strong> » </span><time datetime="2024-05-12T18:07:41+00:00">May 12th, 2024, 6:07 pm</time> </p> <div class="content"><blockquote cite="./../viewtopic.php?p=689731&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689731"><div><cite><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664">ZombieKnight</a> wrote: <a href="./../viewtopic.php?p=689731&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689731" data-post-id="689731" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a><span class="responsive-hide">May 12th, 2024, 5:40 pm</span></cite> Any idea how to move it to the VERY bottom now? ^^ </div></blockquote> I think it is at the very bottom, but it has a border:<br> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>border = "all", border_size = 5,</code></pre></div> Try border = "left,right,top" ?<br> <blockquote class="uncited"><div>About that box... idk it's just for skiping messages and I don't really care where it is.</div></blockquote> Yes, you do. It is a layer of a stacked_widget so wherever it is is where the other layers are too. At least, I think that's how it works.<br> <br> I don't think those placement lines do anything since (I believe) they are invalid for a column, so they shouldn't change where it is. But if they don't do anything it'd be less confusing if they weren't there.<br> <br> BTW, when you get this working, please post the completed code. I want to write up some examples using alignment/grow/etc but I have a hard time coming up with them. This would might make a good one.</div> <div id="sig689734" class="signature"><div style="text-align:center">Speak softly, and carry <a class="postlink" href="//wiki.wesnoth.org/LotI_Items#Doombringer_.E2.80.93_sword">Doombringer</a>.</div></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689738" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689738"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689738"> <h3 > <a href="./../viewtopic.php?p=689738&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689738">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689738&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689738&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689738" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-12T19:26:10+00:00">May 12th, 2024, 7:26 pm</time> </p> <div class="content"><blockquote cite="./../viewtopic.php?p=689734&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689734"><div><cite><a href="./../memberlist.php?mode=viewprofile&u=165464&sid=2b9323c5a1d98a2994ef5fb44c6e3664">white_haired_uncle</a> wrote: <a href="./../viewtopic.php?p=689734&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689734" data-post-id="689734" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a><span class="responsive-hide">May 12th, 2024, 6:07 pm</span></cite> I think it is at the very bottom, but it has a border: <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>border = "all", border_size = 5,</code></pre></div> Try border = "left,right,top" ? </div></blockquote> No, didn't worked (I've tried to set them all to 0 (default value))<br> Any other idea?</div> <div id="sig689738" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689739" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689739"> <dt class="has-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=129456_1408535541.png" width="72" height="72" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a> </dt> <dd class="profile-rank">Forum Moderator</dd> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=129456&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">3207</a></dd> <dd class="profile-joined"><strong>Joined:</strong> January 29th, 2012, 12:49 am</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Estonia</dd> <dd class="profile-contact"> <strong>Contact:</strong> <div class="dropdown-container dropdown-left"> <a href="#" class="dropdown-trigger" title="Contact Ravana"> <i class="icon fa-commenting-o fa-fw icon-lg" aria-hidden="true"></i><span class="sr-only">Contact Ravana</span> </a> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <div class="dropdown-contents contact-icons"> <div> <a href="https://github.com/ProditorMagnus" title="Website" class="last-cell"> <span class="contact-icon phpbb_website-icon">Website</span> </a> </div> </div> </div> </div> </dd> </dl> <div class="postbody"> <div id="post_content689739"> <h3 > <a href="./../viewtopic.php?p=689739&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689739">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689739&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689739&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689739" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a></strong> » </span><time datetime="2024-05-12T19:56:41+00:00">May 12th, 2024, 7:56 pm</time> </p> <div class="content">Cant explain why it works but it does <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code># lua wesnoth.require("wml-utils").handle_event_commands(wml.load("~add-ons/EventLoader/action.cfg")) [lua] code=<< -- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_size_message = 70000 local font_family_title = "Oldania ADF Std" local font_family_message = "Oldania ADF Std" -- metatable for GUI tags local T = wml.tag -- [narration] -- an alternative interface for messages -- TODO add [options], [text_input] function wml_actions.narration( cfg ) local show_when_unit_hidden = cfg.show_when_unit_hidden or false local speaker_unit = true if cfg.speaker_unit == false then speaker_unit = false end local left_image = cfg.left_image local right_image = cfg.right_image local unit local is_unit_hidden if speaker_unit == true then local filter = wml.shallow_literal(cfg) filter.title = nil filter.left_image = nil filter.right_image = nil filter.message = nil table.insert(filter, wml.tag.filter_vision{side = 1}) filter = wml.tovconfig(filter) unit = wesnoth.units.find(filter)[1] if unit == nil then if show_when_unit_hidden == false then return else is_unit_hidden = true local filter = wml.shallow_literal(cfg) filter.title = nil filter.image = nil filter.message = nil filter = wml.tovconfig(filter) unit = wesnoth.units.find(filter)[1] if unit == nil then return end end else is_unit_hidden = false end end --TODO NOW SET IMAGE, IF ANY IMAGE IS PASSED, TO IT, ELSE LEFT FRIEND, RIGHT ENEMY if (speaker_unit == true) and (left_image == nil or left_image == "") and (cfg.right_image == nil or cfg.right_image == "") then left_image = unit.portrait std_print(filesystem.image_size(left_image)) --for original values end -- if unit is hidden is_unit_hidden = local narration = { T.helptip { id="tooltip_large" }, -- mandatory field T.tooltip { id="tooltip_large" }, -- mandatory field maximum_height = "(screen_height)", maximum_width = "(gamemap_width)", height = "(screen_height)", width = "(gamemap_width)", automatic_placement = false, x=0, y="((screen_height-gamemap_height)/2)", vertical_grow = true, click_dismiss = true, T.grid { T.row { T.column { vertical_alignment="bottom", horizontal_alignment = "left", grow_factor = 1, border = "all", border_size = 0, T.image { id = "left_image" } }, T.column { vertical_alignment="bottom", T.stacked_widget{ id = "narration_stacked_widget", definition = "default", T.layer{ T.row { T.column { horizontal_alignment = "center", grow_factor = 1, border = "all", border_size = 0, T.label { definition = "title", text_alignment = "center", id = "narration_title" } } }, T.row { --grow_factor = 0, --TODO idk what this does T.column { horizontal_alignment = "center", grow_factor = 1, border = "all", border_size = 0, T.label { definition = "text", text_alignment = "center", id = "narration_message" } } --TODO Why two columns doest work, 2 columns everywhere needed } } } } } } } local function narration_preshow(dialog) -- here set all widget starting values dialog:set_canvas(1, { } ) dialog.narration_stacked_widget.narration_message.visible = true dialog.narration_stacked_widget.narration_title.visible = true --dialog.on_left_click = dialog:close() BREAKS WESNOTH dialog.narration_title.use_markup = true dialog.narration_message.use_markup = true local title if unit == nil then title = cfg.title or "Narrator" else title = cfg.title or unit.name end dialog.left_image.label = "portraits/humans/mage-arch.webp" dialog.narration_title.label = "<span size='"..font_size_title.."' font_family='"..font_family_title.."' >"..title.."</span>" local message = cfg.message or "" dialog.narration_message.label = "<span size='"..font_size_message.."' font_family='"..font_family_message.."' >"..message.."</span>" --dialog.image_name.label = cfg.image or "" end local function narration_postshow(dialog) -- here get all widget values end -- close_func = function close_dialog(dialog) -- dialog:close() -- end -- dialog:find("narration_message").on_left_click = close_func gui.show_dialog( narration, narration_preshow, narration_postshow ) end wesnoth.wml_actions.narration{ speaker_unit=false, message="This is short message" } >> [/lua] </code></pre></div></div> <div id="sig689739" class="signature">Maintainer of <a href="https://forums.wesnoth.org/viewtopic.php?t=25274" class="postlink">Ageless Era</a>. <a href="https://forums.wesnoth.org/viewtopic.php?f=15&t=39116" class="postlink">Ravana's Multiplayer Works</a><br> <br> <a href="https://forums.wesnoth.org/viewtopic.php?t=56440" class="postlink">Quick WML testing guide</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689752" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689752"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689752"> <h3 > <a href="./../viewtopic.php?p=689752&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689752">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689752&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689752&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689752" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-13T10:53:26+00:00">May 13th, 2024, 10:53 am</time> </p> <div class="content">Great, works<br> Thanks ^^<br> Now any idea how to remove that cancel button (one due to the text input window)<div class="inline-attachment"> <dl class="thumbnail"> <dt><a href="./../download/file.php?id=97460&sid=2b9323c5a1d98a2994ef5fb44c6e3664&mode=view"><img src="./../download/file.php?id=97460&t=1&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="postimage" alt="Screenshot_20240513_123535.png" title="Screenshot_20240513_123535.png (118.24 KiB) Viewed 1812 times" /></a></dt> </dl> </div></div> <div id="sig689752" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689755" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689755"> <dt class="has-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=129456_1408535541.png" width="72" height="72" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a> </dt> <dd class="profile-rank">Forum Moderator</dd> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=129456&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">3207</a></dd> <dd class="profile-joined"><strong>Joined:</strong> January 29th, 2012, 12:49 am</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Estonia</dd> <dd class="profile-contact"> <strong>Contact:</strong> <div class="dropdown-container dropdown-left"> <a href="#" class="dropdown-trigger" title="Contact Ravana"> <i class="icon fa-commenting-o fa-fw icon-lg" aria-hidden="true"></i><span class="sr-only">Contact Ravana</span> </a> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <div class="dropdown-contents contact-icons"> <div> <a href="https://github.com/ProditorMagnus" title="Website" class="last-cell"> <span class="contact-icon phpbb_website-icon">Website</span> </a> </div> </div> </div> </div> </dd> </dl> <div class="postbody"> <div id="post_content689755"> <h3 > <a href="./../viewtopic.php?p=689755&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689755">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689755&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689755&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689755" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a></strong> » </span><time datetime="2024-05-13T12:49:54+00:00">May 13th, 2024, 12:49 pm</time> </p> <div class="content">Remove text input.</div> <div id="sig689755" class="signature">Maintainer of <a href="https://forums.wesnoth.org/viewtopic.php?t=25274" class="postlink">Ageless Era</a>. <a href="https://forums.wesnoth.org/viewtopic.php?f=15&t=39116" class="postlink">Ravana's Multiplayer Works</a><br> <br> <a href="https://forums.wesnoth.org/viewtopic.php?t=56440" class="postlink">Quick WML testing guide</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689756" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689756"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689756"> <h3 > <a href="./../viewtopic.php?p=689756&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689756">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689756&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689756&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689756" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-13T13:14:32+00:00">May 13th, 2024, 1:14 pm</time> </p> <div class="content">I need it there.</div> <div id="sig689756" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689759" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689759"> <dt class="has-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=129456_1408535541.png" width="72" height="72" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a> </dt> <dd class="profile-rank">Forum Moderator</dd> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=129456&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">3207</a></dd> <dd class="profile-joined"><strong>Joined:</strong> January 29th, 2012, 12:49 am</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Estonia</dd> <dd class="profile-contact"> <strong>Contact:</strong> <div class="dropdown-container dropdown-left"> <a href="#" class="dropdown-trigger" title="Contact Ravana"> <i class="icon fa-commenting-o fa-fw icon-lg" aria-hidden="true"></i><span class="sr-only">Contact Ravana</span> </a> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <div class="dropdown-contents contact-icons"> <div> <a href="https://github.com/ProditorMagnus" title="Website" class="last-cell"> <span class="contact-icon phpbb_website-icon">Website</span> </a> </div> </div> </div> </div> </dd> </dl> <div class="postbody"> <div id="post_content689759"> <h3 > <a href="./../viewtopic.php?p=689759&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689759">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689759&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689759&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689759" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a></strong> » </span><time datetime="2024-05-13T13:31:02+00:00">May 13th, 2024, 1:31 pm</time> </p> <div class="content">Why?</div> <div id="sig689759" class="signature">Maintainer of <a href="https://forums.wesnoth.org/viewtopic.php?t=25274" class="postlink">Ageless Era</a>. <a href="https://forums.wesnoth.org/viewtopic.php?f=15&t=39116" class="postlink">Ravana's Multiplayer Works</a><br> <br> <a href="https://forums.wesnoth.org/viewtopic.php?t=56440" class="postlink">Quick WML testing guide</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689760" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689760"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689760"> <h3 > <a href="./../viewtopic.php?p=689760&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689760">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689760&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689760&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689760" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-13T14:23:30+00:00">May 13th, 2024, 2:23 pm</time> </p> <div class="content">Okay, maybe I don't but it took me so much time to ad it there...<br> Ok I'll remove it.<br> Thanks for help Ravana and white uncle ^^ <3</div> <div id="sig689760" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689763" class="post has-profile bg1"> <div class="inner"> <dl class="postprofile" id="profile689763"> <dt class="has-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=129456_1408535541.png" width="72" height="72" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a> </dt> <dd class="profile-rank">Forum Moderator</dd> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=129456&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">3207</a></dd> <dd class="profile-joined"><strong>Joined:</strong> January 29th, 2012, 12:49 am</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Estonia</dd> <dd class="profile-contact"> <strong>Contact:</strong> <div class="dropdown-container dropdown-left"> <a href="#" class="dropdown-trigger" title="Contact Ravana"> <i class="icon fa-commenting-o fa-fw icon-lg" aria-hidden="true"></i><span class="sr-only">Contact Ravana</span> </a> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <div class="dropdown-contents contact-icons"> <div> <a href="https://github.com/ProditorMagnus" title="Website" class="last-cell"> <span class="contact-icon phpbb_website-icon">Website</span> </a> </div> </div> </div> </div> </dd> </dl> <div class="postbody"> <div id="post_content689763"> <h3 > <a href="./../viewtopic.php?p=689763&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689763">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689763&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689763&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689763" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=129456&sid=2b9323c5a1d98a2994ef5fb44c6e3664" style="color: #008000;" class="username-coloured">Ravana</a></strong> » </span><time datetime="2024-05-13T18:43:41+00:00">May 13th, 2024, 6:43 pm</time> </p> <div class="content"><div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code># lua wesnoth.require("wml-utils").handle_event_commands(wml.load("~add-ons/EventLoader/action.cfg")) [lua] code=<< -- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_size_message = 70000 local font_family_title = "Oldania ADF Std" local font_family_message = "Oldania ADF Std" -- metatable for GUI tags local T = wml.tag function ct(c,t) if c then return t else return nil end end local enableRight = true -- [narration] -- an alternative interface for messages -- TODO add [options], [text_input] function wml_actions.narration( cfg ) local show_when_unit_hidden = cfg.show_when_unit_hidden or false local speaker_unit = true if cfg.speaker_unit == false then speaker_unit = false end local left_image = cfg.left_image local right_image = cfg.right_image local unit local is_unit_hidden if speaker_unit == true then local filter = wml.shallow_literal(cfg) filter.title = nil filter.left_image = nil filter.right_image = nil filter.message = nil table.insert(filter, wml.tag.filter_vision{side = 1}) filter = wml.tovconfig(filter) unit = wesnoth.units.find(filter)[1] if unit == nil then if show_when_unit_hidden == false then return else is_unit_hidden = true local filter = wml.shallow_literal(cfg) filter.title = nil filter.image = nil filter.message = nil filter = wml.tovconfig(filter) unit = wesnoth.units.find(filter)[1] if unit == nil then return end end else is_unit_hidden = false end end --TODO NOW SET IMAGE, IF ANY IMAGE IS PASSED, TO IT, ELSE LEFT FRIEND, RIGHT ENEMY if (speaker_unit == true) and (left_image == nil or left_image == "") and (cfg.right_image == nil or cfg.right_image == "") then left_image = unit.portrait std_print(filesystem.image_size(left_image)) --for original values end -- if unit is hidden is_unit_hidden = local narration = { T.helptip { id="tooltip_large" }, -- mandatory field T.tooltip { id="tooltip_large" }, -- mandatory field maximum_height = "(screen_height)", --maximum_height = "(gamemap_height)", maximum_width = "(gamemap_width)", --height = "(screen_height)", --height = "(gamemap_height)", --width = "(gamemap_width)", automatic_placement = true, --x=0, --y="((screen_height-gamemap_height)/2)", --y="42", vertical_placement="bottom", horizontal_placement="left", --vertical_grow = true, click_dismiss = true, T.grid { T.row { T.column { vertical_alignment="bottom", horizontal_alignment = "left", --grow_factor = 1, border = "all", border_size = 0, T.image { id = "left_image", x=0, y=500 } }, ct(enableRight,T.column { vertical_alignment="bottom", vertical_grow=false, T.stacked_widget{ id = "narration_stacked_widget", definition = "default", T.layer{ T.row { T.column { horizontal_alignment = "center", --grow_factor = 1, --border = "all", --border_size = 0, T.label { definition = "title", text_alignment = "center", id = "narration_title" } } }, T.row { --grow_factor = 0, --TODO idk what this does T.column { horizontal_alignment = "center", --grow_factor = 1, --border = "all", --border_size = 0, T.label { definition = "text", text_alignment = "center", id = "narration_message", wrap=true } } } } } }) } } } local function narration_preshow(dialog) -- here set all widget starting values --dialog:set_canvas(1, { } ) --dialog:set_canvas(1, {T.image{name="portraits/humans/mage-arch.webp" }} ) --dialog:set_canvas(1, {wml.tag.rectangle { x = 0, y = 0, w = "(width)", h = "(height)", fill_color= "0,0,255,255"} } ) dialog:set_canvas(1, {wml.tag.image { x = 0, y = "(height-image_height)", w = "(image_width)", h = "(image_height)", name= "portraits/humans/mage-arch.webp"} } ) --dialog.left_image.label = "portraits/humans/mage-arch.webp~CROP(200,200,200,200)~O(0)" dialog.left_image.label = "portraits/humans/mage-arch.webp~O(0)" if enableRight then dialog.narration_stacked_widget.narration_message.visible = true dialog.narration_stacked_widget.narration_title.visible = true dialog.narration_title.use_markup = true dialog.narration_message.use_markup = true local title if unit == nil then title = cfg.title or "Narrator" else title = cfg.title or unit.name end dialog.narration_title.label = "<span size='"..font_size_title.."' font_family='"..font_family_title.."' >"..title.."</span>" local message = cfg.message or "" dialog.narration_message.label = "<span size='"..font_size_message.."' font_family='"..font_family_message.."' >"..message.."</span>" --dialog.image_name.label = cfg.image or "" end end local function narration_postshow(dialog) -- here get all widget values end gui.show_dialog( narration, narration_preshow, narration_postshow ) end wesnoth.wml_actions.narration{ speaker_unit=false, message="This is short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message short message" } >> [/lua] </code></pre></div></div> <div id="sig689763" class="signature">Maintainer of <a href="https://forums.wesnoth.org/viewtopic.php?t=25274" class="postlink">Ageless Era</a>. <a href="https://forums.wesnoth.org/viewtopic.php?f=15&t=39116" class="postlink">Ravana's Multiplayer Works</a><br> <br> <a href="https://forums.wesnoth.org/viewtopic.php?t=56440" class="postlink">Quick WML testing guide</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div id="p689793" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile689793"> <dt class="no-profile-rank has-avatar"> <div class="avatar-container"> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="avatar"><img class="avatar" src="./../download/file.php?avatar=248538_1713276765.png" width="100" height="76" alt="User avatar" /></a> </div> <a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a> </dt> <dd class="profile-posts"><strong>Posts:</strong> <a href="./../search.php?author_id=248538&sr=posts&sid=2b9323c5a1d98a2994ef5fb44c6e3664">348</a></dd> <dd class="profile-joined"><strong>Joined:</strong> June 27th, 2022, 2:26 pm</dd> <dd class="profile-custom-field profile-phpbb_location"><strong>Location:</strong> Czech Republic</dd> </dl> <div class="postbody"> <div id="post_content689793"> <h3 > <a href="./../viewtopic.php?p=689793&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689793">Re: Gui2 dialog formatting</a> </h3> <ul class="post-buttons"> <li> <a href="./../posting.php?mode=quote&p=689793&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./../viewtopic.php?p=689793&sid=2b9323c5a1d98a2994ef5fb44c6e3664#p689793" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><a href="./../memberlist.php?mode=viewprofile&u=248538&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="username">ZombieKnight</a></strong> » </span><time datetime="2024-05-14T17:43:16+00:00">May 14th, 2024, 5:43 pm</time> </p> <div class="content">Code showing two images for comparison of the grid and canvas<br> <br> Lua:<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>-- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_size_message = 70000 local font_family_title = "Oldania ADF Std" local font_family_message = "Oldania ADF Std" -- metatable for GUI tags local T = wml.tag -- [narration] -- an alternative interface for messages -- TODO add [options], [text_input] function wml_actions.narration( cfg ) local show_when_unit_hidden = cfg.show_when_unit_hidden or false local speaker_unit = true if cfg.speaker_unit == false then speaker_unit = false end local left_image = cfg.left_image local right_image = cfg.right_image local unit local is_unit_hidden if speaker_unit == true then local filter = wml.shallow_literal(cfg) table.insert(filter, wml.tag.filter_vision{side = 1}) filter = wml.tovconfig(filter) unit = wesnoth.units.find_on_map(filter)[1] if unit == nil then if show_when_unit_hidden == false then return else is_unit_hidden = true local filter = wml.shallow_literal(cfg) filter = wml.tovconfig(filter) unit = wesnoth.units.find_on_map(filter)[1] if unit == nil then return end end else wesnoth.interface.scroll_to_hex(unit.x,unit.y, false, false, true) wesnoth.interface.highlight_hex(unit.x,unit.y) wesnoth.interface.select_unit(unit,false,false) is_unit_hidden = false end end --TODO NOW SET IMAGE, IF ANY IMAGE IS PASSED, TO IT, ELSE LEFT FRIEND, RIGHT ENEMY if (speaker_unit == true) and (left_image == nil or left_image == "" ) and (cfg.right_image == nil or cfg.right_image == "") and (left_image ~= "no_image") then if wesnoth.units.find_on_map({id = unit.id, {'filter_side',{{'allied_with',{side = 1}}}}})[1] == nil then right_image = ""..unit.portrait.."~FL(horizontal)" else left_image = unit.portrait end end local left_image_table if left_image == nil or left_image == "" then left_image = "" left_image_table = T.label { definition = "invalid_image", id = "left_image" } else left_image_table = T.image { id = "left_image" } end local right_image_table if right_image == nil or right_image == "" then right_image = "" right_image_table = T.label { definition = "invalid_image", id = "right_image" } else right_image_table = T.image { id = "right_image" } end --if unit is hidden is_unit_hidden = local narration = { T.helptip { id="tooltip_large" }, -- mandatory field T.tooltip { id="tooltip_large" }, -- mandatory field maximum_height = "(screen_height)", maximum_width = "(gamemap_width)", height = "(screen_height)", width = "(gamemap_width)", automatic_placement = false, x=0, y="((screen_height-gamemap_height)/2)", vertical_grow = true, click_dismiss = true, T.grid { T.row { T.column { vertical_alignment="bottom", horizontal_alignment = "left", grow_factor = 0, border = "all", border_size = 0, left_image_table }, T.column { vertical_alignment="bottom", grow_factor = 1, T.stacked_widget{ id = "narration_stacked_widget", definition = "default", T.layer{ T.row { T.column { horizontal_alignment = "center", grow_factor = 1, border = "all", border_size = 0, T.label { definition = "title", text_alignment = "center", id = "narration_title" } } }, T.row { --grow_factor = 0, --TODO idk what this does T.column { horizontal_alignment = "center", grow_factor = 1, border = "all", border_size = 0, T.scroll_label { definition = "text", text_alignment = "center", id = "narration_message" } } --TODO Why two columns doest work, 2 columns everywhere needed } } } }, T.column { vertical_alignment="bottom", horizontal_alignment = "left", grow_factor = 0, border = "all", border_size = 0, right_image_table } } } } local function narration_preshow(dialog) -- here set all widget starting values dialog:set_canvas(1, {wml.tag.image { x = 0, y = "(screen_height-image_height)", w = "(image_width)", h = "(image_height)", name = left_image}, wml.tag.image { x = "(gamemap_width-image_width)", y = "(height-image_height)", w = "(image_width)", h = "(image_height)", name = right_image}} ) dialog.narration_stacked_widget.narration_message.visible = true dialog.narration_stacked_widget.narration_title.visible = true --dialog.on_left_click = dialog:close() BREAKS WESNOTH dialog.narration_title.use_markup = true dialog.narration_message.use_markup = true local title if unit == nil then title = cfg.title or "Narrator" else title = cfg.title or unit.name end dialog.left_image.label = left_image dialog.right_image.label = right_image dialog.narration_title.label = "<span size='"..font_size_title.."' font_family='"..font_family_title.."' >"..title.."</span>" local message = cfg.message or "" dialog.narration_message.label = "<span size='"..font_size_message.."' font_family='"..font_family_message.."' >"..message.."</span>" --dialog.image_name.label = cfg.image or "" end local function narration_postshow(dialog) -- here get all widget values end -- close_func = function close_dialog(dialog) -- dialog:close() -- end -- dialog:find("narration_message").on_left_click = close_func gui.show_dialog( narration, narration_preshow, narration_postshow ) end</code></pre></div> <br> <br> <br> called with: <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>[narration] speaker_unit=yes message=_"I'm really not sure if I want to leave the space behind blank or put there my own background" [/narration]</code></pre></div></div> <div id="sig689793" class="signature"><a href="https://forums.wesnoth.org/viewtopic.php?p=692527#p692527" class="postlink">Real Ranged Attacks</a><br> Working on campaign <a href="https://forums.wesnoth.org/viewtopic.php?p=685976" class="postlink">Bandits from Brown Hills</a></div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <div class="action-bar bar-bottom"> <a href="./../posting.php?mode=reply&t=58239&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="button" title="Post a reply"> <span>Post Reply</span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i> </a> <form method="post" action="./../viewtopic.php?t=58239&sid=2b9323c5a1d98a2994ef5fb44c6e3664"> <div class="dropdown-container dropdown-container-left dropdown-button-control sort-tools"> <span title="Display and sorting options" class="button button-secondary dropdown-trigger dropdown-select"> <i class="icon fa-sort-amount-asc fa-fw" aria-hidden="true"></i> <span class="caret"><i class="icon fa-sort-down fa-fw" aria-hidden="true"></i></span> </span> <div class="dropdown hidden"> <div class="pointer"><div class="pointer-inner"></div></div> <div class="dropdown-contents"> <fieldset class="display-options"> <label>Display: <select name="st" id="st"><option value="0" selected="selected">All posts</option><option value="1">1 day</option><option value="7">7 days</option><option value="14">2 weeks</option><option value="30">1 month</option><option value="90">3 months</option><option value="180">6 months</option><option value="365">1 year</option></select></label> <label>Sort by: <select name="sk" id="sk"><option value="a">Author</option><option value="t" selected="selected">Post time</option><option value="s">Subject</option></select></label> <label>Direction: <select name="sd" id="sd"><option value="a" selected="selected">Ascending</option><option value="d">Descending</option></select></label> <hr class="dashed" /> <input type="submit" class="button2" name="sort" value="Go" /> </fieldset> </div> </div> </div> </form> <div class="pagination"> 15 posts • Page <strong>1</strong> of <strong>1</strong> </div> </div> <div class="action-bar actions-jump"> <p class="jumpbox-return"> <a href="./../viewforum.php?f=58&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="left-box arrow-left" accesskey="r"> <i class="icon fa-angle-left fa-fw icon-black" aria-hidden="true"></i><span>Return to “Lua Labs”</span> </a> </p> <div class="jumpbox dropdown-container dropdown-container-right dropdown-up dropdown-left dropdown-button-control" id="jumpbox"> <span title="Jump to" class="button button-secondary dropdown-trigger dropdown-select"> <span>Jump to</span> <span class="caret"><i class="icon fa-sort-down fa-fw" aria-hidden="true"></i></span> </span> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <ul class="dropdown-contents"> <li><a href="./../viewforum.php?f=64&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-cat-link"> <span> Announcements</span></a></li> <li><a href="./../viewforum.php?f=62&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ News</span></a></li> <li><a href="./../viewforum.php?f=25&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-cat-link"> <span> General</span></a></li> <li><a href="./../viewforum.php?f=6&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Users’ Forum</span></a></li> <li><a href="./../viewforum.php?f=70&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ Tournaments</span></a></li> <li><a href="./../viewforum.php?f=5&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Release Announcements, Compiling & Installation</span></a></li> <li><a href="./../viewforum.php?f=4&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Technical Support</span></a></li> <li><a href="./../viewforum.php?f=67&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ iOS Support</span></a></li> <li><a href="./../viewforum.php?f=3&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Strategies & Tips</span></a></li> <li><a href="./../viewforum.php?f=37&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Gameplay Feedback</span></a></li> <li><a href="./../viewforum.php?f=22&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ Mainline Campaign Feedback</span></a></li> <li><a href="./../viewforum.php?f=46&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Tutorial</span></a></li> <li><a href="./../viewforum.php?f=40&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ A Tale of Two Brothers</span></a></li> <li><a href="./../viewforum.php?f=41&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ An Orcish Incursion</span></a></li> <li><a href="./../viewforum.php?f=42&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ The South Guard</span></a></li> <li><a href="./../viewforum.php?f=39&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Heir to the Throne</span></a></li> <li><a href="./../viewforum.php?f=43&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Liberty</span></a></li> <li><a href="./../viewforum.php?f=51&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Legend of Wesmere (single player)</span></a></li> <li><a href="./../viewforum.php?f=56&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Legend of Wesmere (multiplayer)</span></a></li> <li><a href="./../viewforum.php?f=49&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Eastern Invasion</span></a></li> <li><a href="./../viewforum.php?f=55&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ The Hammer of Thursagan</span></a></li> <li><a href="./../viewforum.php?f=54&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Descent into Darkness</span></a></li> <li><a href="./../viewforum.php?f=52&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Delfador’s Memoirs</span></a></li> <li><a href="./../viewforum.php?f=45&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Dead Water</span></a></li> <li><a href="./../viewforum.php?f=65&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Secrets of the Ancients</span></a></li> <li><a href="./../viewforum.php?f=48&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Sceptre of Fire</span></a></li> <li><a href="./../viewforum.php?f=53&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Son of the Black Eye</span></a></li> <li><a href="./../viewforum.php?f=44&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ The Rise of Wesnoth</span></a></li> <li><a href="./../viewforum.php?f=47&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Northern Rebirth</span></a></li> <li><a href="./../viewforum.php?f=50&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Under the Burning Suns</span></a></li> <li><a href="./../viewforum.php?f=71&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span><span class="spacer"></span> <span>↳ Winds of Fate</span></a></li> <li><a href="./../viewforum.php?f=31&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ Add-on Feedback</span></a></li> <li><a href="./../viewforum.php?f=17&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Website</span></a></li> <li><a href="./../viewforum.php?f=26&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-cat-link"> <span> Development</span></a></li> <li><a href="./../viewforum.php?f=9&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Art Contributions</span></a></li> <li><a href="./../viewforum.php?f=23&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Art Workshop</span></a></li> <li><a href="./../viewforum.php?f=32&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Writers’ Forum</span></a></li> <li><a href="./../viewforum.php?f=21&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ WML Workshop</span></a></li> <li><a href="./../viewforum.php?f=58&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Lua Labs</span></a></li> <li><a href="./../viewforum.php?f=19&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Faction & Era Development</span></a></li> <li><a href="./../viewforum.php?f=15&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Multiplayer Development</span></a></li> <li><a href="./../viewforum.php?f=8&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Scenario & Campaign Development</span></a></li> <li><a href="./../viewforum.php?f=38&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ Mainline Campaign Development</span></a></li> <li><a href="./../viewforum.php?f=68&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ UMC Replays</span></a></li> <li><a href="./../viewforum.php?f=14&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Music & Sound Development</span></a></li> <li><a href="./../viewforum.php?f=7&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Translations & Internationalization</span></a></li> <li><a href="./../viewforum.php?f=60&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ Translation Stats</span></a></li> <li><a href="./../viewforum.php?f=12&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Ideas</span></a></li> <li><a href="./../viewforum.php?f=10&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Coder’s Corner</span></a></li> <li><a href="./../viewforum.php?f=2&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Developers’ Discussions</span></a></li> <li><a href="./../viewforum.php?f=73&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span><span class="spacer"></span> <span>↳ Wesnoth Organizational Updates</span></a></li> <li><a href="./../viewforum.php?f=18&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Art Development</span></a></li> <li><a href="./../viewforum.php?f=28&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-cat-link"> <span> Miscellaneous</span></a></li> <li><a href="./../viewforum.php?f=13&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Game Development</span></a></li> <li><a href="./../viewforum.php?f=11&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Off-Topic</span></a></li> <li><a href="./../viewforum.php?f=61&sid=2b9323c5a1d98a2994ef5fb44c6e3664" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳ Forum Games</span></a></li> </ul> </div> </div> </div> </div> <div id="page-footer" class="page-footer" role="contentinfo"> <div class="navbar" role="navigation"> <div class="inner"> <ul id="nav-footer" class="nav-footer linklist" role="menubar"> <li class="breadcrumbs"> <span class="crumb"><a href="./../index.php?sid=2b9323c5a1d98a2994ef5fb44c6e3664" data-navbar-reference="index"><i class="icon fa-home fa-fw" aria-hidden="true"></i><span>Forums</span></a></span> </li> <li class="rightside">All times are <span title="UTC">UTC</span></li> <li class="rightside"> <a href="./../ucp.php?mode=delete_cookies&sid=2b9323c5a1d98a2994ef5fb44c6e3664" data-ajax="true" data-refresh="true" role="menuitem"> <i class="icon fa-trash fa-fw" aria-hidden="true"></i><span>Delete cookies</span> </a> </li> </ul> </div> </div> <div id="darkenwrapper" class="darkenwrapper" data-ajax-error-title="AJAX error" data-ajax-error-text="Something went wrong when processing your request." data-ajax-error-text-abort="User aborted request." data-ajax-error-text-timeout="Your request timed out; please try again." data-ajax-error-text-parsererror="Something went wrong with the request and the server returned an invalid reply."> <div id="darken" class="darken"> </div> </div> <div id="phpbb_alert" class="phpbb_alert" data-l-err="Error" data-l-timeout-processing-req="Request timed out."> <a href="#" class="alert_close"> <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i> </a> <h3 class="alert_title"> </h3><p class="alert_text"></p> </div> <div id="phpbb_confirm" class="phpbb_alert"> <a href="#" class="alert_close"> <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i> </a> <div class="alert_text"></div> </div> </div> </div> <div class="copyright"> <p class="footer-row"> <span class="footer-copyright">Powered by <a href="https://www.phpbb.com/">phpBB</a>® Forum Software © phpBB Limited</span> </p> <p class="footer-row" role="menu"> <a class="footer-link" href="./../ucp.php?mode=privacy&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Privacy" role="menuitem"> <span class="footer-link-text">Privacy</span> </a> | <a class="footer-link" href="./../ucp.php?mode=terms&sid=2b9323c5a1d98a2994ef5fb44c6e3664" title="Terms" role="menuitem"> <span class="footer-link-text">Terms</span> </a> </p> </div> <div> <a id="bottom" class="anchor" accesskey="z"></a> </div> <script src="./../assets/javascript/jquery-3.6.0.min.js?assets_version=264"></script> <script src="./../assets/javascript/core.js?assets_version=264"></script> <script type="text/javascript"> var CodeboxExpandText = "Expand"; var CodeboxCollapseText = "Collapse"; </script> <script src="./../assets/cookieconsent/cookieconsent.min.js?assets_version=264"></script> <script> if (typeof window.cookieconsent === "object") { window.addEventListener("load", function(){ window.cookieconsent.initialise({ "palette": { "popup": { "background": "#0F538A" }, "button": { "background": "#E5E5E5" } }, "theme": "classic", "content": { "message": "This\u0020website\u0020uses\u0020cookies\u0020to\u0020ensure\u0020you\u0020get\u0020the\u0020best\u0020experience\u0020on\u0020our\u0020website.", "dismiss": "Got\u0020it\u0021", "link": "Learn\u0020more", "href": "./../ucp.php?mode=privacy&sid=2b9323c5a1d98a2994ef5fb44c6e3664" } }); }); } </script> </div> <!-- #content --> <script src="./../styles/prosilver/template/forum_fn.js?assets_version=264"></script> <script src="./../styles/prosilver/template/ajax.js?assets_version=264"></script> </body> </html>