This commit is contained in:
Insality
2025-03-06 00:27:51 +02:00
parent 9bb7c6e8bd
commit 1a138f7020
53 changed files with 367 additions and 81 deletions

View File

@@ -0,0 +1,26 @@
# Container Quick API reference
```lua
container:add_container(node_or_container, [mode], [on_resize_callback])
container:clear_draggable_corners()
container:fit_into_size(target_size)
container:fit_into_window()
container:get_position()
container:get_scale()
container:get_size()
container:init(node, [mode], [callback])
container:on_late_init()
container:on_remove()
container:on_style_change(style)
container:on_window_resized()
container:refresh()
container:refresh_origins()
container:set_draggable_corners([is_draggable])
container:set_min_size([min_size_x], [min_size_y])
container:set_node_fill([fill_x], [fill_y])
container:set_node_offset([offset])
container:set_parent_container([container])
container:set_pivot(pivot)
container:set_position(pos_x, pos_y)
container:set_size([width], [height], [anchor_pivot])
container:update_child_containers()

View File

@@ -0,0 +1,16 @@
# Data List Quick API reference
```lua
data_list:add(data, [index], [shift_policy])
data_list:clear()
data_list:get_created_components()
data_list:get_created_nodes()
data_list:get_data()
data_list:get_index(data)
data_list:init(scroll, grid, create_function)
data_list:on_remove()
data_list:remove([index], [shift_policy])
data_list:remove_by_data(data, [shift_policy])
data_list:scroll_to_index(index)
data_list:set_data(data)
data_list:set_use_cache(is_use_cache)

View File

@@ -0,0 +1,10 @@
# Hotkey Quick API reference
```lua
hotkey:add_hotkey(keys, [callback_argument])
hotkey:init(keys, callback, [callback_argument])
hotkey:is_processing()
hotkey:on_focus_gained()
hotkey:on_input([action_id], [action])
hotkey:on_style_change(style)
hotkey:set_repeat(is_enabled_repeated)

View File

@@ -0,0 +1,23 @@
# Input Quick API reference
```lua
input:get_text()
input:get_text_selected()
input:get_text_selected_replaced(text)
input:init(click_node, text_node, [keyboard_type])
input:is_empty()
input:is_full()
input:is_selected()
input:on_focus_lost()
input:on_input([action_id], [action])
input:on_input_interrupt()
input:on_style_change(style)
input:select()
input:select_cursor([index])
input:set_allowed_characters([pattern])
input:set_keyboard_type([keyboard_type])
input:set_marked_text([text])
input:set_max_length([length])
input:set_text([text])
input:unselect()
```

View File

@@ -0,0 +1,9 @@
# Lang Text Quick API reference
```lua
lang_text:format(...)
lang_text:init(node, [locale_id], [adjust_type])
lang_text:on_language_change()
lang_text:set_text(text)
lang_text:set_to(text)
lang_text:translate(locale_id, ...)

View File

@@ -0,0 +1,18 @@
# Layout Quick API reference
```lua
layout:add(node_or_node_id)
layout:get_content_size()
layout:get_entities()
layout:get_size()
layout:init(node_or_node_id, layout_type)
layout:refresh_layout()
layout:remove(node_or_node_id)
layout:set_dirty()
layout:set_hug_content(is_hug_width, is_hug_height)
layout:set_justify(is_justify)
layout:set_margin([margin_x], [margin_y])
layout:set_node_index(node, index)
layout:set_padding([padding_x], [padding_y], [padding_z], [padding_w])
layout:set_type(type)
layout:update()

View File

@@ -0,0 +1,16 @@
# Progress Quick API reference
```lua
progress:empty()
progress:fill()
progress:get()
progress:init(node, key, [init_value])
progress:on_layout_change()
progress:on_remove()
progress:on_style_change(style)
progress:set_max_size(max_size)
progress:set_steps(steps, callback)
progress:set_to(to)
progress:to(to, [callback])
progress:update(dt)
```

View File

@@ -0,0 +1,13 @@
# Slider Quick API reference
```lua
slider:init(node, end_pos, [callback])
slider:is_enabled()
slider:on_input([action_id], [action])
slider:on_layout_change()
slider:on_remove()
slider:on_window_resized()
slider:set(value, [is_silent])
slider:set_enabled(is_enabled)
slider:set_input_node([input_node])
slider:set_steps(steps)

View File

@@ -0,0 +1,9 @@
# Swipe Quick API reference
```lua
swipe:init(node_or_node_id, on_swipe_callback)
swipe:on_input([action_id], [action])
swipe:on_input_interrupt()
swipe:on_late_init()
swipe:on_style_change(style)
swipe:set_click_zone([zone])

View File

@@ -0,0 +1,10 @@
# Timer Quick API reference
```lua
timer:init(node, [seconds_from], [seconds_to], [callback])
timer:on_layout_change()
timer:set_interval(from, to)
timer:set_state([is_on])
timer:set_to(set_to)
timer:update(dt)
```