patchBattle for Wesnoth - Patches: patch #2759, Lua wesnoth.set_dialog_markup...

 
 
Show feedback again

patch #2759: Lua wesnoth.set_dialog_markup function

Submitted by:  Aaron Keisch-Walter <exasperation>
Submitted on:  Sun 26 Jun 2011 07:30:08 PM UTC  
 
Priority: 5 - NormalStatus: Done
Privacy: PublicAssigned to: Ignacio R. Morelle <shadowmaster>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 13 Jan 2014 06:50:11 PM UTC, comment #2:

It was already possible to enable markup for GUI2 widgets in Lua by overriding their canvas configuration through clever use of wesnoth.set_dialog_canvas:

Since this patch has a lower maintenance cost than the rest of the Lua functions for GUI2 and provides a cleaner form to achieve the same task as the snippet above, it may as well be mainlined.

Therefore, this is now done in commit cc75d12088b3a074348d90b2075e9abcfc6edbb0 for version 1.11.9.

Ignacio R. Morelle <shadowmaster>
Project AdministratorIn charge of this item.
Tue 19 Jul 2011 03:04:35 PM UTC, comment #1:

This patch and the following related one are marked won't do now.
reason:
They should not linger around in undecided state and mordante disliked both approaches, unless an extra widget with markup enabled is created as suggested by mordante. I think you should post this as a new patch thread then.

Anonymissimus <anonymissimus>
Project Member
Sun 26 Jun 2011 07:30:08 PM UTC, original submission:

This patch adds a Lua function (wesnoth.set_dialog_markup) which allows Pango markup to be enabled/disabled in a GUI2 widget label from Lua.

Testcase:

wiki reference should be added to http://wiki.wesnoth.org/LuaWML#User_interface

Aaron Keisch-Walter <exasperation>

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #13350:  lua_gui_markup.patch added by exasperation (2kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by anonymissimus (Posted a comment)
  • -unavailable- added by exasperation (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 13 Feb 2014 02:41:14 PM UTCshadowmasterOpen/ClosedOpen=>Closed
    Mon 13 Jan 2014 06:50:11 PM UTCshadowmasterStatusWont Do=>Done
      Assigned toNone=>shadowmaster
      Open/ClosedClosed=>Open
    Mon 25 Jul 2011 09:22:40 PM UTCivanovicOpen/ClosedOpen=>Closed
    Tue 19 Jul 2011 03:04:35 PM UTCanonymissimusStatusNone=>Wont Do
    Sun 26 Jun 2011 07:30:09 PM UTCexasperationAttached File-=>Added lua_gui_markup.patch, #13350
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup