Skip to content

Commit

Permalink
Use MultiLineEditBoxWithEnter for custom trigger's events field
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and InfusOnWoW committed Sep 14, 2023
1 parent 5620be3 commit a21a47f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions WeakAurasOptions/GenericTrigger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ local function GetCustomTriggerOptions(data, triggernum)
check = {
type = "select",
name = L["Check On..."],
width = WeakAuras.doubleWidth / 3,
width = WeakAuras.doubleWidth,
order = 8,
values = OptionsPrivate.Private.check_types,
hidden = function() return not (trigger.type == "custom"
Expand Down Expand Up @@ -74,7 +74,9 @@ local function GetCustomTriggerOptions(data, triggernum)
},
events = {
type = "input",
width = WeakAuras.doubleWidth * 2 / 3,
multiline = true,
control = "WeakAuras-MultiLineEditBoxWithEnter",
width = WeakAuras.doubleWidth,
name = L["Event(s)"],
desc = L["Custom trigger status tooltip"],
order = 8.1,
Expand All @@ -89,6 +91,8 @@ local function GetCustomTriggerOptions(data, triggernum)
},
events2 = {
type = "input",
multiline = true,
control = "WeakAuras-MultiLineEditBoxWithEnter",
name = L["Event(s)"],
desc = L["Custom trigger event tooltip"],
width = WeakAuras.doubleWidth,
Expand Down

0 comments on commit a21a47f

Please sign in to comment.