From e56b18b7bdcd2f9ce1858a82141e447676221566 Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Tue, 11 Nov 2025 12:49:26 -0500 Subject: [PATCH] fixed prop typing --- FlexLove.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/FlexLove.lua b/FlexLove.lua index 3083478..62f1708 100644 --- a/FlexLove.lua +++ b/FlexLove.lua @@ -469,19 +469,19 @@ function Gui.update(dt) end Gui._activeEventElement = nil - + -- In immediate mode, save state after update so that cursor blink timer changes persist if Gui._immediateMode and Gui._currentFrameElements then for _, element in ipairs(Gui._currentFrameElements) do if element.id and element.id ~= "" and element.editable and element._focused then local state = StateManager.getState(element.id, {}) - + -- Save cursor blink state (updated during element:update()) state._cursorBlinkTimer = element._cursorBlinkTimer state._cursorVisible = element._cursorVisible state._cursorBlinkPaused = element._cursorBlinkPaused state._cursorBlinkPauseTimer = element._cursorBlinkPauseTimer - + StateManager.setState(element.id, state) end end @@ -582,12 +582,8 @@ function Gui.destroy() Gui._focusedElement = nil end --- ==================== --- Immediate Mode API --- ==================== - --- Create a new element (supports both immediate and retained mode) ----@param props table +---@param props ElementProps ---@return Element function Gui.new(props) props = props or {}