Update to Input Element

main
jeffi 11 months ago
parent e50fc7f72e
commit cdfd19362f
  1. 3
      DiesalGUI-2.0/Objects/Input.lua
  2. 3
      DiesalGUI-2.0/Objects/ObjectBase.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")

@ -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())

Loading…
Cancel
Save