OSDN Git Service
(root)
/
mmo
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ceb18c
)
隠れているUIListの項目がマウスクリックに反応してしまう不具合を修正
author
h2so5
<h2so5@git.sourceforge.jp>
Sat, 15 Sep 2012 16:34:23 +0000
(
01:34
+0900)
committer
h2so5
<h2so5@git.sourceforge.jp>
Sat, 15 Sep 2012 16:34:23 +0000
(
01:34
+0900)
client/ui/UIList.cpp
patch
|
blob
|
history
diff --git
a/client/ui/UIList.cpp
b/client/ui/UIList.cpp
index
ad00dea
..
8efeb37
100644
(file)
--- a/
client/ui/UIList.cpp
+++ b/
client/ui/UIList.cpp
@@
-136,7
+136,10
@@
void UIList::ProcessInput(InputManager* input)
for (auto it = items_.begin(); it != items_.end(); ++it) {
auto item = *it;
UIBasePtr item_ptr = *static_cast<UIBasePtr*>(item->GetPointerFromInternalField(0));
- item_ptr->ProcessInput(input);
+ if (item_ptr->absolute_y() > absolute_y() &&
+ item_ptr->absolute_y() + item_ptr->absolute_height() < absolute_y() + absolute_height()) {
+ item_ptr->ProcessInput(input);
+ }
}
UpdateScrollBar(input);