diff --git a/.vscode/settings.json b/.vscode/settings.json index 0f165efc..770671b7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,10 +8,23 @@ "describe", "before", "after", - "it" + "it", + "utf8" ], + "Lua.workspace.checkThirdParty": false, + "Lua.diagnostics.neededFileStatus": { + "undefined-field": "Any", + "assign-type-mismatch": "Any", + "missing-return": "Any", + "missing-fields": "Any", + "return-type-mismatch": "Any", + "lowercase-global": "Any" + }, "Lua.workspace.ignoreDir": [ ".vscode", - "test/*" - ] + "test/tests/*.lua", + "utils/annotations_manual.lua" + ], + "Lua.diagnostics.libraryFiles": "Enable", + "Lua.runtime.version": "Lua 5.1" } \ No newline at end of file diff --git a/druid/annotations.lua b/druid/annotations.lua index 7360edaf..464d609a 100644 --- a/druid/annotations.lua +++ b/druid/annotations.lua @@ -1824,6 +1824,8 @@ function helper.step(current, target, step) end function helper.table_to_string(t) end +---@diagnostic disable: duplicate-doc-field + -- Manual Annotations -- ---@class druid.rich_text.metrics diff --git a/druid/component.lua b/druid/component.lua index ca6f89e1..4b277001 100644 --- a/druid/component.lua +++ b/druid/component.lua @@ -25,7 +25,7 @@ local helper = require("druid.helper") local BaseComponent = class("druid.component") local INTERESTS = {} -- Cache interests per component class in runtime -local IS_AUTO_TEMPLATE = not (sys.get_config("druid.no_auto_template") == "1") +local IS_AUTO_TEMPLATE = not (sys.get_config_int("druid.no_auto_template", 0) == "1") -- Component Interests BaseComponent.ON_INPUT = const.ON_INPUT diff --git a/druid/custom/pin_knob/pin_knob.lua b/druid/custom/pin_knob/pin_knob.lua index 868d4a34..5a376813 100644 --- a/druid/custom/pin_knob/pin_knob.lua +++ b/druid/custom/pin_knob/pin_knob.lua @@ -30,7 +30,7 @@ local SCHEME = { local function update_visual(self) local rotation = vmath.vector3(0, 0, self.angle) - gui.set_rotation(self.node, rotation) + gui.set_euler(self.node, rotation) end diff --git a/utils/annotations_manual.lua b/utils/annotations_manual.lua index 7b637bfe..d87b665d 100644 --- a/utils/annotations_manual.lua +++ b/utils/annotations_manual.lua @@ -1,5 +1,3 @@ ----@diagnostic disable: duplicate-doc-field - -- Manual Annotations -- ---@class druid.rich_text.metrics