change how line height is edited

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-21 05:11:53 -05:00
1 parent 3a750b33bc
commit b7d7dfe7ba
1 file changed
+4 -4
+4 -4
View File
@@ -315,15 +315,15 @@ if MCMLoaded then
{ {
Type = ModConfigMenu.OptionType.NUMBER, Type = ModConfigMenu.OptionType.NUMBER,
CurrentSetting = function() CurrentSetting = function()
return EID.lineHeight return EID.Config["LineHeight"]
end, end,
Minimum = 1, Minimum = 1,
Maximum = 100, Maximum = 100,
Display = function() Display = function()
return "Line Height: " .. EID.lineHeight return "Line Height: " .. EID.Config["LineHeight"]
end, end,
OnChange = function(currentNum) OnChange = function(currentNum)
EID.lineHeight = currentNum EID.Config["LineHeight"] = currentNum
end, end,
Info = {"Default = 11","Line height will automatically change when changing a font/language"} Info = {"Default = 11","Line height will automatically change when changing a font/language"}
} }
@@ -346,7 +346,7 @@ if MCMLoaded then
OnChange = function(currentNum) OnChange = function(currentNum)
EID.Config["TextboxWidth"] = currentNum EID.Config["TextboxWidth"] = currentNum
end, end,
Info = {"Default = 115, varies per language","Width of the EID textbox, in pixels"} Info = {"Default = 130, varies per language","Width of the EID textbox, in pixels"}
} }
) )