@@ -32,13 +32,13 @@ local CalcsTabClass = newClass("CalcsTab", "UndoHandler", "ControlHost", "Contro
3232 self .colWidth = 230
3333 self .sectionList = { }
3434
35- self .controls .search = new (" EditControl" , {" TOPLEFT" ,self ," TOPLEFT" }, 4 , 5 , 260 , 20 , " " , " Search" , " %c" , 100 , nil , nil , nil , true )
35+ self .controls .search = new (" EditControl" , {" TOPLEFT" ,self ," TOPLEFT" }, { 4 , 5 , 260 , 20 } , " " , " Search" , " %c" , 100 , nil , nil , nil , true )
3636 t_insert (self .controls , self .controls .search )
3737
3838 -- Special section for skill/mode selection
3939 self :NewSection (3 , " SkillSelect" , 1 , colorCodes .NORMAL , {{ defaultCollapsed = false , label = " View Skill Details" , data = {
4040 { label = " Socket Group" , { controlName = " mainSocketGroup" ,
41- control = new (" DropDownControl" , nil , 0 , 0 , 300 , 16 , nil , function (index , value )
41+ control = new (" DropDownControl" , nil , { 0 , 0 , 300 , 16 } , nil , function (index , value )
4242 self .input .skill_number = index
4343 self :AddUndoState ()
4444 self .build .buildFlag = true
@@ -52,22 +52,22 @@ local CalcsTabClass = newClass("CalcsTab", "UndoHandler", "ControlHost", "Contro
5252 }
5353 }, },
5454 { label = " Active Skill" , { controlName = " mainSkill" ,
55- control = new (" DropDownControl" , nil , 0 , 0 , 300 , 16 , nil , function (index , value )
55+ control = new (" DropDownControl" , nil , { 0 , 0 , 300 , 16 } , nil , function (index , value )
5656 local mainSocketGroup = self .build .skillsTab .socketGroupList [self .input .skill_number ]
5757 mainSocketGroup .mainActiveSkillCalcs = index
5858 self .build .buildFlag = true
5959 end )
6060 }, },
6161 { label = " Skill Part" , playerFlag = " multiPart" , { controlName = " mainSkillPart" ,
62- control = new (" DropDownControl" , nil , 0 , 0 , 250 , 16 , nil , function (index , value )
62+ control = new (" DropDownControl" , nil , { 0 , 0 , 250 , 16 } , nil , function (index , value )
6363 local mainSocketGroup = self .build .skillsTab .socketGroupList [self .input .skill_number ]
6464 local srcInstance = mainSocketGroup .displaySkillListCalcs [mainSocketGroup .mainActiveSkillCalcs ].activeEffect .srcInstance
6565 srcInstance .skillPartCalcs = index
6666 self :AddUndoState ()
6767 self .build .buildFlag = true
6868 end )
6969 }, },{ label = " Skill Stages" , playerFlag = " multiStage" , { controlName = " mainSkillStageCount" ,
70- control = new (" EditControl" , nil , 0 , 0 , 52 , 16 , nil , nil , " %D" , nil , function (buf )
70+ control = new (" EditControl" , nil , { 0 , 0 , 52 , 16 } , nil , nil , " %D" , nil , function (buf )
7171 local mainSocketGroup = self .build .skillsTab .socketGroupList [self .input .skill_number ]
7272 local srcInstance = mainSocketGroup .displaySkillListCalcs [mainSocketGroup .mainActiveSkillCalcs ].activeEffect .srcInstance
7373 srcInstance .skillStageCountCalcs = tonumber (buf )
@@ -76,7 +76,7 @@ local CalcsTabClass = newClass("CalcsTab", "UndoHandler", "ControlHost", "Contro
7676 end )
7777 }, },
7878 { label = " Active Mines" , playerFlag = " mine" , { controlName = " mainSkillMineCount" ,
79- control = new (" EditControl" , nil , 0 , 0 , 52 , 16 , nil , nil , " %D" , nil , function (buf )
79+ control = new (" EditControl" , nil , { 0 , 0 , 52 , 16 } , nil , nil , " %D" , nil , function (buf )
8080 local mainSocketGroup = self .build .skillsTab .socketGroupList [self .input .skill_number ]
8181 local srcInstance = mainSocketGroup .displaySkillListCalcs [mainSocketGroup .mainActiveSkillCalcs ].activeEffect .srcInstance
8282 srcInstance .skillMineCountCalcs = tonumber (buf )
@@ -85,13 +85,13 @@ local CalcsTabClass = newClass("CalcsTab", "UndoHandler", "ControlHost", "Contro
8585 end )
8686 }, },
8787 { label = " Show Minion Stats" , flag = " haveMinion" , { controlName = " showMinion" ,
88- control = new (" CheckBoxControl" , nil , 0 , 0 , 18 , nil , function (state )
88+ control = new (" CheckBoxControl" , nil , { 0 , 0 , 18 } , nil , function (state )
8989 self .input .showMinion = state
9090 self :AddUndoState ()
9191 end , " Show stats for the minion instead of the player." )
9292 }, },
9393 { label = " Minion" , flag = " minion" , { controlName = " mainSkillMinion" ,
94- control = new (" DropDownControl" , nil , 0 , 0 , 160 , 16 , nil , function (index , value )
94+ control = new (" DropDownControl" , nil , { 0 , 0 , 160 , 16 } , nil , function (index , value )
9595 local mainSocketGroup = self .build .skillsTab .socketGroupList [self .input .skill_number ]
9696 local srcInstance = mainSocketGroup .displaySkillListCalcs [mainSocketGroup .mainActiveSkillCalcs ].activeEffect .srcInstance
9797 if value .itemSetId then
@@ -104,12 +104,12 @@ local CalcsTabClass = newClass("CalcsTab", "UndoHandler", "ControlHost", "Contro
104104 end )
105105 } },
106106 { label = " Spectre Library" , flag = " spectre" , { controlName = " mainSkillMinionLibrary" ,
107- control = new (" ButtonControl" , nil , 0 , 0 , 100 , 16 , " Manage Spectres..." , function ()
107+ control = new (" ButtonControl" , nil , { 0 , 0 , 100 , 16 } , " Manage Spectres..." , function ()
108108 self .build :OpenSpectreLibrary ()
109109 end )
110110 } },
111111 { label = " Minion Skill" , flag = " haveMinion" , { controlName = " mainSkillMinionSkill" ,
112- control = new (" DropDownControl" , nil , 0 , 0 , 200 , 16 , nil , function (index , value )
112+ control = new (" DropDownControl" , nil , { 0 , 0 , 200 , 16 } , nil , function (index , value )
113113 local mainSocketGroup = self .build .skillsTab .socketGroupList [self .input .skill_number ]
114114 local srcInstance = mainSocketGroup .displaySkillListCalcs [mainSocketGroup .mainActiveSkillCalcs ].activeEffect .srcInstance
115115 srcInstance .skillMinionSkillCalcs = index
@@ -119,7 +119,7 @@ local CalcsTabClass = newClass("CalcsTab", "UndoHandler", "ControlHost", "Contro
119119 } },
120120 { label = " Calculation Mode" , {
121121 controlName = " mode" ,
122- control = new (" DropDownControl" , nil , 0 , 0 , 100 , 16 , buffModeDropList , function (index , value )
122+ control = new (" DropDownControl" , nil , { 0 , 0 , 100 , 16 } , buffModeDropList , function (index , value )
123123 self .input .misc_buffMode = value .buffMode
124124 self :AddUndoState ()
125125 self .build .buildFlag = true
@@ -149,7 +149,7 @@ Effective DPS: Curses and enemy properties (such as resistances and status condi
149149
150150 self .controls .breakdown = new (" CalcBreakdownControl" , self )
151151
152- self .controls .scrollBar = new (" ScrollBarControl" , {" TOPRIGHT" ,self ," TOPRIGHT" }, 0 , 0 , 18 , 0 , 50 , " VERTICAL" , true )
152+ self .controls .scrollBar = new (" ScrollBarControl" , {" TOPRIGHT" ,self ," TOPRIGHT" }, { 0 , 0 , 18 , 0 } , 50 , " VERTICAL" , true )
153153 self .powerBuilderInitialized = nil
154154end )
155155
0 commit comments