Skip to content

Commit e8204d3

Browse files
authored
Change character limit for ConfigTab "count" object from 7 to 10 (#9697)
* Increase character limit for EditControl "count" input "count" value limited to 7 characters constrains correct DPS calculation, especially with Minion Pact in consideration. * Increase max length for EditControl "count" input 10 characters for futureproof (2^31-1 = 10 char)
1 parent 2fca8f4 commit e8204d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/ConfigTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ local ConfigTabClass = newClass("ConfigTab", "UndoHandler", "ControlHost", "Cont
168168
self.build.buildFlag = true
169169
end)
170170
elseif varData.type == "count" or varData.type == "integer" or varData.type == "countAllowZero" or varData.type == "float" then
171-
control = new("EditControl", {"TOPLEFT",lastSection,"TOPLEFT"}, {234, 0, 90, 18}, "", nil, (varData.type == "integer" and "^%-%d") or (varData.type == "float" and "^%d.") or "%D", 7, function(buf, placeholder)
171+
control = new("EditControl", {"TOPLEFT",lastSection,"TOPLEFT"}, {234, 0, 90, 18}, "", nil, (varData.type == "integer" and "^%-%d") or (varData.type == "float" and "^%d.") or "%D", 10, function(buf, placeholder)
172172
if placeholder then
173173
self.configSets[self.activeConfigSetId].placeholder[varData.var] = tonumber(buf)
174174
else

0 commit comments

Comments
 (0)