Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
7c71bab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a long line. Can you split the expression across multiple lines?
7c71bab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are c macros involved and i'm unsure whicher i'd need to use
//
here. and since i didn't test this commit, i wanted to minimize the chance of breaking things.