Adding a context menu option via lua

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

Moderators: Forum Moderators, Developers

Adding a context menu option via lua

Postby Choicerer » December 9th, 2017, 5:50 pm

I want people to be able to access a rigt-click menu item while another player is playing their turn in multiplayer. The WML [Set_Menu_Item] function doesn't allow it. Is there a way to do this with lua?
Creator of The Better Names Mod - viewtopic.php?f=15&t=47658
Curse of Satan Claus - viewtopic.php?f=15&t=47692
Randomized Isar's Cross Map Pack - viewtopic.php?f=15&t=46767
And the Mushroom Isar Map Pack.
Choicerer
 
Posts: 75
Joined: April 29th, 2017, 11:37 pm

Re: Adding a context menu option via lua

Postby Ravana » December 9th, 2017, 6:52 pm

With 1.13 there is support for it. 1.12 needs hacky solutions like EoHS and ageless use.
User avatar
Ravana
Moderator
 
Posts: 1510
Joined: January 29th, 2012, 12:49 am
Location: Estonia

Re: Adding a context menu option via lua

Postby Choicerer » December 9th, 2017, 7:11 pm

I'll take a look at them, then. Thanks!
Creator of The Better Names Mod - viewtopic.php?f=15&t=47658
Curse of Satan Claus - viewtopic.php?f=15&t=47692
Randomized Isar's Cross Map Pack - viewtopic.php?f=15&t=46767
And the Mushroom Isar Map Pack.
Choicerer
 
Posts: 75
Joined: April 29th, 2017, 11:37 pm

Re: Adding a context menu option via lua

Postby Sapient » December 11th, 2017, 4:05 pm

"You can open this menu by clicking and rightclicking your unit quickly"
https://github.com/ProditorMagnus/Agele ... d_menu.cfg
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."
User avatar
Sapient
Developer
 
Posts: 4383
Joined: November 26th, 2005, 7:41 am

Re: Adding a context menu option via lua

Postby Choicerer » December 28th, 2017, 10:11 pm

I've only just noticed this post now. Thanks! Ravana had told me about the menu, too, but in the end I settled for another solution.
Creator of The Better Names Mod - viewtopic.php?f=15&t=47658
Curse of Satan Claus - viewtopic.php?f=15&t=47692
Randomized Isar's Cross Map Pack - viewtopic.php?f=15&t=46767
And the Mushroom Isar Map Pack.
Choicerer
 
Posts: 75
Joined: April 29th, 2017, 11:37 pm


Return to Lua Labs

Who is online

Users browsing this forum: No registered users and 1 guest