Solve #182 add table pool for events

This commit is contained in:
Insality
2022-04-05 18:57:40 +03:00
parent 2779f9cf7a
commit dff522fbaa
24 changed files with 244 additions and 6 deletions

View File

@@ -41,6 +41,12 @@ function LangText.init(self, node, locale_id, no_adjust)
end
function LangText.on_internal_remove(self)
component.on_internal_remove(self)
self.on_change:clear()
end
function LangText.on_language_change(self)
if self.last_locale then
self:translate(self.last_locale, unpack(self.last_locale_args))