This commit is contained in:
Insality
2025-03-13 23:39:43 +02:00
parent c13a31711f
commit 1aa96d8dbc
29 changed files with 1278 additions and 291 deletions

View File

@@ -1,42 +1,3 @@
-- Copyright (c) 2022 Maksim Tuprikov <insality@gmail.com>. This code is licensed under MIT license
---Druid Rich Input custom component.
-- It's wrapper on Input component with cursor and placeholder text
-- @module RichInput
-- @alias druid.rich_input
---The component druid instance
-- @tfield DruidInstance druid DruidInstance
---Root node
-- @tfield node root
---On input field text change callback(self, input_text)
-- @tfield Input input Input
---On input field text change to empty string callback(self, input_text)
-- @tfield node cursor
---On input field text change to empty string callback(self, input_text)
-- @tfield node cursor_text
---On input field text change to empty string callback(self, input_text)
-- @tfield vector3 cursor_position
---On input field text change to empty string callback(self, input_text)
-- @tfield druid.text input_text
---On input field text change to empty string callback(self, input_text)
-- @tfield druid.drag drag
---On input field text change to empty string callback(self, input_text)
-- @tfield druid.text placeholder
---On input field text change to empty string callback(self, input_text)
-- @tfield vector3 text_position
---
local component = require("druid.component")
local helper = require("druid.helper")
local const = require("druid.const")