Update annotations

This commit is contained in:
Insality
2024-10-05 02:27:30 +03:00
parent 4a8bb214d2
commit 3c9f539376
5 changed files with 59 additions and 7 deletions

View File

@@ -18,6 +18,12 @@
--- The current progress of scroll posititon
-- @tfield number scroll_progress
--- The current top index of visual elements
-- @tfield number top_index
--- The current last index of visual elements
-- @tfield number last_index
--- Event triggered when scroll progress is changed; event(self, progress_value)
-- @tfield DruidEvent on_scroll_progress_change @{DruidEvent}

View File

@@ -303,7 +303,7 @@ function Input.on_input(self, action_id, action)
return false
end
return false
return self.is_selected
end
@@ -484,7 +484,7 @@ end
--- Set cursor position in input field
-- @tparam Input self @{Input}
-- @tparam number|nil cursor_index Cursor index for cursor position, if nil - will be set to the end of the text
-- @tparam number|nils start_index Start index for cursor position, if nil - will be set to the end of the text
-- @tparam number|nil start_index Start index for cursor position, if nil - will be set to the end of the text
-- @tparam number|nil end_index End index for cursor position, if nil - will be set to the start_index
-- @treturn druid.input Current input instance
function Input.select_cursor(self, cursor_index, start_index, end_index)