mirror of
https://github.com/gmod-integration/lua.git
synced 2025-08-02 11:22:42 +00:00
fix: update input value handling in openConfigMenu function
This commit is contained in:
parent
30116f1f5c
commit
85f77106b6
|
@ -363,6 +363,7 @@ function gmInte.openConfigMenu(data)
|
||||||
input.OnLoseFocus = function(self) if actualConfig.secret then self:SetText(gmInte.getTranslation("admin.click_to_show", "*** Click to show ***")) end end
|
input.OnLoseFocus = function(self) if actualConfig.secret then self:SetText(gmInte.getTranslation("admin.click_to_show", "*** Click to show ***")) end end
|
||||||
local isLastID = 0
|
local isLastID = 0
|
||||||
input.OnChange = function(self)
|
input.OnChange = function(self)
|
||||||
|
value = self:GetValue()
|
||||||
if actualConfig.resetIfEmpty && self:GetValue() == "" && actualConfig.defaultValue then
|
if actualConfig.resetIfEmpty && self:GetValue() == "" && actualConfig.defaultValue then
|
||||||
self:SetText(actualConfig.defaultValue)
|
self:SetText(actualConfig.defaultValue)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user