patchBattle for Wesnoth - Patches: patch #3813, Add default message option...

Show feedback again

patch #3813: Add default message option capability to WML

Submitted by:  David Mikos <coffee>
Submitted on:  Sat Mar 30 02:19:02 2013  
Priority: 4Status: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sat Apr 13 23:45:31 2013, comment #3:

Thanks SigurdFireDragon. That works as you say. I'll go add some documentation if I can't find any for this.

David Mikos <coffee>
Project Member
Sat Apr 13 20:10:24 2013, comment #2:

Lines are in Random_Campaign/utils_sp/start_menu.cfg

SigurdFireDragon <sigurdfdragon>
Sat Apr 13 20:07:17 2013, comment #1:

I think what you're asking CABD in a way,
by placing a "*" in front of the option to be default

The following is from lines 24-49 in the add-on Random Campaign v0.9.0

message={MENU_IMG_TXT "terrain/flat/road.png" _"Clear"}
message={MENU_IMG_TXT "terrain/fog/fog1.png" _"Fog"}
message="*"+{MENU_IMG_TXT "terrain/void/void.png" _"Shroud"}

when the choice is presented, the 3rd option is highlighted.

SigurdFireDragon <sigurdfdragon>
Sat Mar 30 02:19:02 2013, original submission:

Here's a patch so that when you have in WML messages with options to choose from, a default can be specified. e.g. to set a default for the second option:


I've tested and this works with input_text also (not taking focus away from it, but setting still the default button).

Not sure who to assign to.

David Mikos <coffee>
Project Member


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

Attach File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by sigurdfdragon (Posted a comment)
  • -unavailable- added by coffee (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.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Apr 13 23:45:31 2013coffeeStatusNone=>Invalid
    Sat Mar 30 02:19:02 2013coffeeAttached File-=>Added 2013.03.30_default_message_option.patch, #17607
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup