Add text_metrics args on change text scale text event

This commit is contained in:
Insality 2022-12-03 17:53:57 +02:00
parent 0368260d16
commit 2196cc3e17

View File

@ -10,7 +10,7 @@
--- On set text callback(self, text) --- On set text callback(self, text)
-- @tfield DruidEvent on_set_text @{DruidEvent} -- @tfield DruidEvent on_set_text @{DruidEvent}
--- On adjust text size callback(self, new_scale) --- On adjust text size callback(self, new_scale, text_metrics)
-- @tfield DruidEvent on_update_text_scale @{DruidEvent} -- @tfield DruidEvent on_update_text_scale @{DruidEvent}
--- On change pivot callback(self, pivot) --- On change pivot callback(self, pivot)
@ -100,7 +100,7 @@ local function update_text_area_size(self)
update_text_size(self) update_text_size(self)
self.on_update_text_scale:trigger(self:get_context(), new_scale) self.on_update_text_scale:trigger(self:get_context(), new_scale, metrics)
end end