Merge pull request #671 from MihailRis/debugging-client

Debugging client
This commit is contained in:
MihailRis
2025-11-20 22:55:16 +03:00
committed by GitHub
35 changed files with 430 additions and 73 deletions
+5
View File
@@ -159,6 +159,11 @@ app.get_setting_info(name: str) -> {
Returns a table with information about a setting. Throws an exception if the setting does not exist.
```lua
app.focus()
```
Brings the window to front and sets input focus.
```lua
app.create_memory_device(
+10 -1
View File
@@ -13,7 +13,16 @@ input.mousecode(mousename: str) --> int
Returns mouse button code or -1 if unknown
```lua
input.add_callback(bindname: str, callback: function)
input.add_callback(
-- Binding name
bindname: str,
-- Handler
callback: function
-- UI element that owns the handler (responsible for the handler's lifetime)
[optional] owner: Element,
-- Ignore input capture by UI elements
[optional] istoplevel: bool
)
```
Add binding activation callback. Example:
+11 -1
View File
@@ -82,6 +82,16 @@ socket:recv(
-- Returns nil on error (socket is closed or does not exist).
-- If there is no data yet, returns an empty byte array.
-- Asynchronous version for use in coroutines.
-- Waits for the entire specified number of bytes to be received.
-- If socket closes, function works like socket:recv
socket:recv_async(
-- Size of the byte array to read
length: int,
-- Use table instead of Bytearray
[optional] usetable: bool=false
) -> nil|table|Bytearray
-- Closes the connection
socket:close()
@@ -137,5 +147,5 @@ network.get_total_download() --> int
```lua
-- Looks for a free port to use.
network.find_free_port() --> int
network.find_free_port() --> int or nil
```