from retail

This commit is contained in:
NoM0Re
2025-01-25 18:42:10 +01:00
parent 103dc2137a
commit e8451987a3
9 changed files with 113 additions and 42 deletions
@@ -59,7 +59,13 @@ local function createOptions(parentData, data, index, subIndex)
callbacks = {
OnEditFocusGained = function(self)
local widget = dynamicTextInputs[subIndex]
OptionsPrivate.ToggleTextReplacements(parentData, true, widget)
OptionsPrivate.ToggleTextReplacements(parentData, widget, "OnEditFocusGained")
end,
OnEditFocusLost = function(self)
OptionsPrivate.ToggleTextReplacements(nil, nil, "OnEditFocusLost")
end,
OnEnterPressed = function(self)
OptionsPrivate.ToggleTextReplacements(nil, nil, "OnEnterPressed")
end,
OnShow = function(self)
dynamicTextInputs[subIndex] = self
@@ -74,7 +80,7 @@ local function createOptions(parentData, data, index, subIndex)
order = 11.1,
func = function()
local widget = dynamicTextInputs[subIndex]
OptionsPrivate.ToggleTextReplacements(parentData, nil, widget)
OptionsPrivate.ToggleTextReplacements(parentData, widget, "ToggleButton")
end,
imageWidth = 24,
imageHeight = 24,