LUA Option Menus
Moderator: Forum Moderators
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
LUA Option Menus
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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Re: LUA Option Menus
wesnoth.show_dialog is the powerful way.
You can still use wesnoth.wml_actions.message though.
You can still use wesnoth.wml_actions.message though.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: LUA Option Menus
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.
- 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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Re: LUA Option Menus
T.row and T.column. Check wiki example.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: LUA Option Menus
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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
- Pentarctagon
- Project Manager
- Posts: 5579
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: LUA Option Menus
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
take one down, patch it around
-2,147,483,648 little bugs in the code