This commit is contained in:
Insality
2025-03-05 21:28:56 +02:00
parent 94d1d64dc3
commit 2c2789f1f9
8 changed files with 121 additions and 190 deletions

View File

@@ -181,15 +181,17 @@ end
function M:set_input_priority(value, is_temporary)
assert(value)
if self._component.input_priority == value then
local component = self._component
if component.input_priority == value then
return self
end
self._component.input_priority = value
self._component._is_input_priority_changed = true
component.input_priority = value
component._is_input_priority_changed = true
if not is_temporary then
self._component.default_input_priority = value
component.default_input_priority = value
end
local children = self:get_childrens()