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 30 Mar 2013 02:19:02 AM UTC  
 
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 13 Apr 2013 11:45:31 PM UTC, 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 13 Apr 2013 08:10:24 PM UTC, comment #2:

Lines are in Random_Campaign/utils_sp/start_menu.cfg

SigurdFireDragon <sigurdfdragon>
Sat 13 Apr 2013 08:07:17 PM UTC, 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 30 Mar 2013 02:19:02 AM UTC, 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:

[message]
[option]
message=message1
[/option]
[option]
message=message2
default=yes
[/option]
[option]
message=message3
[/option]
[/message]

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):
   
   
Comment:
   

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.

     

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

     

     

    Follow 2 latest changes.

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

    Back to the top


    Powered by Savane 3.1-cleanup