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

@@ -5,6 +5,7 @@ local druid_instance = require("druid.system.druid_instance")
local default_style = require("druid.styles.default.style")
---Entry point for Druid UI Framework. Create a new Druid instance and adjust the settings.
---@class druid
local M = {}
@@ -87,7 +88,7 @@ end
local WRAPPED_WIDGETS = {}
---Set a widget to the current game object. The game object can acquire the widget by calling `bindings.get_widget`
---It wraps with events only top level functions cross-context, so no access to nested widgets functions
---It wraps with events only top level functions cross-context, so you will have no access to nested widgets functions
---@param widget druid.widget
function M.set_widget(widget)
local object = msg.url()