mirror of
https://github.com/Insality/druid
synced 2025-11-26 19:00:52 +01:00
Update docs
This commit is contained in:
@@ -260,8 +260,8 @@ function Input.set_text(self, input_text)
|
||||
self.text:set_to(final_text)
|
||||
|
||||
-- measure it
|
||||
self.text_width = self.text:get_text_width(value)
|
||||
self.marked_text_width = self.text:get_text_width(marked_value)
|
||||
self.text_width = self.text:get_text_size(value)
|
||||
self.marked_text_width = self.text:get_text_size(marked_value)
|
||||
self.total_width = self.text_width + self.marked_text_width
|
||||
|
||||
self.on_input_text:trigger(self:get_context(), final_text)
|
||||
|
||||
@@ -189,7 +189,7 @@ end
|
||||
-- move at this position and node drag will start.
|
||||
-- This function require the Defold version 1.3.0+
|
||||
-- @tparam Slider self @{Slider}
|
||||
-- @tparam input_node Node
|
||||
-- @tparam Node input_node
|
||||
-- @treturn Slider @{Slider}
|
||||
function Slider.set_input_node(self, input_node)
|
||||
self._input_node = self:get_node(input_node)
|
||||
|
||||
Reference in New Issue
Block a user