URL:
  <http://gna.org/patch/?2760>

                 Summary: allows use_markup to be declared in WML/Lua for
gui2 widget labels
                 Project: Battle for Wesnoth
            Submitted by: exasperation
            Submitted on: Sun 26 Jun 2011 04:56:37 PM EDT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Widgets can declare whether Pango markup can be used in their labels through
use of the use_markup= attribute.

Testcase:

local T = helper.set_wml_tag_metatable {}
wesnoth.synchronize_choice(function()
        local dialog = {
                T.tooltip { id = "tooltip_large" },
                T.helptip { id = "tooltip_large" },
                T.grid {
                        T.row { T.column {
                                T.label { id = "test_label", label = "<span 
color='#BCB088' size='large'
font-style='italic'>You are victorious!</span>" }
                        } },
                        T.row { T.column {
                                T.label { id = "test_label_2", label = "<span 
color='#BCB088'
size='large' font-style='italic'>You are victorious!</span>", use_markup =
true }
                        } },
                        T.row { T.column {
                                T.button { id = "ok", label = "OK" }
                        } }
                }
        }
        wesnoth.show_dialog(dialog)
end)


documentation should be auto-generated



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 26 Jun 2011 04:56:37 PM EDT  Name: gui_use_markup.patch  Size: 2kB 
 By: exasperation

<http://gna.org/patch/download.php?file_id=13351>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2760>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to