#125 Now set_input_priority affects on all children of component

This commit is contained in:
Insality 2021-10-17 18:28:11 +03:00
parent a014fca1a1
commit 19ece205f8

View File

@ -169,6 +169,11 @@ function BaseComponent.set_input_priority(self, value)
if self._component.input_priority ~= value then if self._component.input_priority ~= value then
self._component.input_priority = value self._component.input_priority = value
self._component._is_input_priority_changed = true 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 end
return self return self