diff --git a/DiesalGUI-2.0/Objects/Input.lua b/DiesalGUI-2.0/Objects/Input.lua index 41af156..5d6e303 100644 --- a/DiesalGUI-2.0/Objects/Input.lua +++ b/DiesalGUI-2.0/Objects/Input.lua @@ -92,8 +92,7 @@ local function Constructor() self:FireEvent("OnHide") end) - ---@type Diesal.GUI.Region.EditBox - local editBox = self:CreateRegion("EditBox", "editBox", frame) + local editBox = self:CreateRegion("EditBox", "editBox", frame) --[[@as Diesal.GUI.Region.EditBox]] editBox:SetAllPoints() editBox:SetAutoFocus(false) editBox:SetJustifyH("LEFT") diff --git a/DiesalGUI-2.0/Objects/ObjectBase.lua b/DiesalGUI-2.0/Objects/ObjectBase.lua index c1d7f62..afce1cd 100644 --- a/DiesalGUI-2.0/Objects/ObjectBase.lua +++ b/DiesalGUI-2.0/Objects/ObjectBase.lua @@ -188,7 +188,8 @@ local ObjectBase = { end if regionType == "EditBox" then - local editBox = CreateFrame("EditBox", nil, parentRegion, ...) ---@cast editBox Diesal.GUI.Region.EditBox + local editBox = CreateFrame("EditBox", nil, parentRegion, ...) + ---@cast editBox Diesal.GUI.Region.EditBox -- set Default font properties editBox.defaultFontObject = defaultFontObject or _G.DiesalFontNormal editBox:SetFont(editBox.defaultFontObject:GetFont())