[Commits] [wesnoth/wesnoth] 7c71ba: add wesnoth.current.user_can_invoke_commands
GitHub
noreply at github.com
Wed Sep 20 08:46:30 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 7c71bab57c6c67f3e8f0c8e345733c6ca0ee476c
https://github.com/wesnoth/wesnoth/commit/7c71bab57c6c67f3e8f0c8e345733c6ca0ee476c
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2017-09-20 (Wed, 20 Sep 2017)
Changed paths:
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
add wesnoth.current.user_can_invoke_commands
this attribute return whether we are in a context where the user coudl issue new commands.
This is mainly intended to be used to check whethere we can use [do_command] in the currently situation (for exampel if one wants to use [do_command] in a unsycned menu item)
More information about the Commits
mailing list