from retail
This commit is contained in:
@@ -43,7 +43,7 @@ local function createOptions(id, data)
|
||||
__order = 1,
|
||||
__dynamicTextCodes = function()
|
||||
local widget = dynamicTextInputs["displayText"]
|
||||
OptionsPrivate.ToggleTextReplacements(data, nil, widget)
|
||||
OptionsPrivate.ToggleTextReplacements(data, widget, "ToggleButton")
|
||||
end,
|
||||
displayText = {
|
||||
type = "input",
|
||||
@@ -65,7 +65,10 @@ local function createOptions(id, data)
|
||||
callbacks = {
|
||||
OnEditFocusGained = function(self)
|
||||
local widget = dynamicTextInputs["displayText"]
|
||||
OptionsPrivate.ToggleTextReplacements(data, true, widget)
|
||||
OptionsPrivate.ToggleTextReplacements(data, widget, "OnEditFocusGained")
|
||||
end,
|
||||
OnEditFocusLost = function(self)
|
||||
OptionsPrivate.ToggleTextReplacements(nil, nil, "OnEditFocusLost")
|
||||
end,
|
||||
OnShow = function(self)
|
||||
dynamicTextInputs["displayText"] = self
|
||||
|
||||
Reference in New Issue
Block a user