aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/button_array.cpp
diff options
context:
space:
mode:
authorAndreas Haas2017-06-03 12:47:54 +0200
committerGitHub2017-06-03 12:47:54 +0200
commit69bec86028f87307e549d7a2f49bbb7e2b1f3771 (patch)
tree30316ffea9d6321c6b8292a02b6db3dac9cd1053 /scene/gui/button_array.cpp
parent5a6d4971e13157cc5f0de199de7f6d257070fc66 (diff)
parent9bc534896135322a578118f433f0dc6265839082 (diff)
downloadgodot-69bec86028f87307e549d7a2f49bbb7e2b1f3771.tar.gz
godot-69bec86028f87307e549d7a2f49bbb7e2b1f3771.tar.zst
godot-69bec86028f87307e549d7a2f49bbb7e2b1f3771.zip
Diffstat (limited to 'scene/gui/button_array.cpp')
-rw-r--r--scene/gui/button_array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/button_array.cpp b/scene/gui/button_array.cpp
index 0d518059c..670246a20 100644
--- a/scene/gui/button_array.cpp
+++ b/scene/gui/button_array.cpp
@@ -313,7 +313,7 @@ void ButtonArray::_gui_input(const Ref<InputEvent> &p_event) {
if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) {
- int ofs = orientation == HORIZONTAL ? mb->get_pos().x : mb->get_pos().y;
+ int ofs = orientation == HORIZONTAL ? mb->get_position().x : mb->get_position().y;
for (int i = 0; i < buttons.size(); i++) {
@@ -330,7 +330,7 @@ void ButtonArray::_gui_input(const Ref<InputEvent> &p_event) {
if (mm.is_valid()) {
- int ofs = orientation == HORIZONTAL ? mm->get_pos().x : mm->get_pos().y;
+ int ofs = orientation == HORIZONTAL ? mm->get_position().x : mm->get_position().y;
int new_hover = -1;
for (int i = 0; i < buttons.size(); i++) {