Update docs

This commit is contained in:
Insality
2022-03-12 09:03:45 +02:00
parent 18eb52b92b
commit 58a877f8a7
44 changed files with 6673 additions and 5150 deletions

View File

@@ -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)

View File

@@ -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)