Adding a context menu option via lua

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

Moderator: Forum Moderators

Post Reply
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Adding a context menu option via lua

Post by Choicerer »

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?
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Adding a context menu option via lua

Post by Ravana »

With 1.13 there is support for it. 1.12 needs hacky solutions like EoHS and ageless use.
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: Adding a context menu option via lua

Post by Choicerer »

I'll take a look at them, then. Thanks!
User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Re: Adding a context menu option via lua

Post by Sapient »

"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."
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: Adding a context menu option via lua

Post by Choicerer »

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.
Post Reply