LUA Option Menus

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

LUA Option Menus

Post by LordAwsomeness »

Hey all! How do you use lua for creating option menus such as:

Code: Select all

	[command]
	[message]
	speaker=narrator
	message=""
[option]
image=""
label=""
[/option]


	[/message]

	[/command]
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2949
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: LUA Option Menus

Post by Ravana »

wesnoth.show_dialog is the powerful way.

You can still use wesnoth.wml_actions.message though.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: LUA Option Menus

Post by LordAwsomeness »

how would I use it to change the format of how options are displayed though? such as the photo below with the big box being the narrator and the smaller boxes being the options.
Attachments
forum.png
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2949
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: LUA Option Menus

Post by Ravana »

T.row and T.column. Check wiki example.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: LUA Option Menus

Post by LordAwsomeness »

Thank you so much! Hope I can figure it out! Do you have a link to the wiki? Where would I find the wiki if not?
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Pentarctagon
Project Manager
Posts: 5527
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: LUA Option Menus

Post by Pentarctagon »

The lua UI-related functions are on the wiki here.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply