Rename ButtonList enum and members to MouseButton
This commit is contained in:
parent
70eff30c5f
commit
10d7fccb54
75 changed files with 468 additions and 473 deletions
|
|
@ -4836,15 +4836,15 @@ void EditorNode::_scene_tab_input(const Ref<InputEvent> &p_input) {
|
|||
|
||||
if (mb.is_valid()) {
|
||||
if (scene_tabs->get_hovered_tab() >= 0) {
|
||||
if (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed()) {
|
||||
if (mb->get_button_index() == MOUSE_BUTTON_MIDDLE && mb->is_pressed()) {
|
||||
_scene_tab_closed(scene_tabs->get_hovered_tab());
|
||||
}
|
||||
} else {
|
||||
if ((mb->get_button_index() == BUTTON_LEFT && mb->is_doubleclick()) || (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed())) {
|
||||
if ((mb->get_button_index() == MOUSE_BUTTON_LEFT && mb->is_doubleclick()) || (mb->get_button_index() == MOUSE_BUTTON_MIDDLE && mb->is_pressed())) {
|
||||
_menu_option_confirm(FILE_NEW_SCENE, true);
|
||||
}
|
||||
}
|
||||
if (mb->get_button_index() == BUTTON_RIGHT && mb->is_pressed()) {
|
||||
if (mb->get_button_index() == MOUSE_BUTTON_RIGHT && mb->is_pressed()) {
|
||||
// context menu
|
||||
scene_tabs_context_menu->clear();
|
||||
scene_tabs_context_menu->set_size(Size2(1, 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue