@dc1248's fixes from #18 for pie menu appearing non-3D screens #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit is @dc1248's fixes for the issue with the Z pie menu appearing on screens other than the 3D view and not allowing the z key to be pressed in the Script editor. I changed the variable name to be slightly more accurate than _is_active. I also chose it to be true by default since typically Godot opens with the 3D view. This has the side effect of it always working the first time so if you disable/enable the plugin in the Script editor, it will still appear. However, setting it to false means that it never works the first time when you're in the 3D view, which feels worse since the former situation is a lot less likely.
I tried fixing #19, where pressing the Z button again causes the pie menu to disappear but the options are still present and invisible until you press the Escape key. I don't know enough about Godot. I think if the item_cancelled signal could be sent to the pie menu too, that would fix it.