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") self:FireEvent("OnHide")
end) end)
---@type Diesal.GUI.Region.EditBox local editBox = self:CreateRegion("EditBox", "editBox", frame) --[[@as Diesal.GUI.Region.EditBox]]
local editBox = self:CreateRegion("EditBox", "editBox", frame)
editBox:SetAllPoints() editBox:SetAllPoints()
editBox:SetAutoFocus(false) editBox:SetAutoFocus(false)
editBox:SetJustifyH("LEFT") editBox:SetJustifyH("LEFT")

@ -188,7 +188,8 @@ local ObjectBase = {
end end
if regionType == "EditBox" then 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 -- set Default font properties
editBox.defaultFontObject = defaultFontObject or _G.DiesalFontNormal editBox.defaultFontObject = defaultFontObject or _G.DiesalFontNormal
editBox:SetFont(editBox.defaultFontObject:GetFont()) editBox:SetFont(editBox.defaultFontObject:GetFont())

Loading…
Cancel
Save