mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
#125 Now set_input_priority affects on all children of component
This commit is contained in:
parent
a014fca1a1
commit
19ece205f8
@ -169,6 +169,11 @@ function BaseComponent.set_input_priority(self, value)
|
||||
if self._component.input_priority ~= value then
|
||||
self._component.input_priority = value
|
||||
self._component._is_input_priority_changed = true
|
||||
|
||||
local children = self:get_childrens()
|
||||
for i = 1, #children do
|
||||
children[i]:set_input_priority(value)
|
||||
end
|
||||
end
|
||||
|
||||
return self
|
||||
|
Loading…
x
Reference in New Issue
Block a user