aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/texture_region_editor_plugin.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2018-03-23 21:55:40 +0100
committerHein-Pieter van Braam2018-04-28 22:16:25 +0200
commita525ea128dc9aa4574b7b219d4043286e6c6c6e2 (patch)
tree75b23f719d3ab63a766873bd578c1703e9ee7f3a /editor/plugins/texture_region_editor_plugin.cpp
parent3b57b95efbaa5b376e02369bb250bbad60634e6a (diff)
downloadgodot-a525ea128dc9aa4574b7b219d4043286e6c6c6e2.tar.gz
godot-a525ea128dc9aa4574b7b219d4043286e6c6c6e2.tar.zst
godot-a525ea128dc9aa4574b7b219d4043286e6c6c6e2.zip
Add radio-button-looking entries to PopupMenu
They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually. `is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button. Keeping check in the name adds an additional clue about these facts. Closes #13055. (cherry picked from commit ab3b1d9f3ed5c8a4dda885d84ed5949b0146639d)
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.cpp')
0 files changed, 0 insertions, 0 deletions