@@ -80,7 +80,6 @@ function CraftSim.CONTROL_PANEL:ForgeFinderExportAll()
80
80
local jb = CraftSim .JSONBuilder ()
81
81
jb .json = jb .json .. " [\n "
82
82
for index , recipeData in pairs (data ) do
83
- print (" skill: " .. tostring (recipeData .professionStats .skill .value ))
84
83
local recipeJson = recipeData :GetForgeFinderExport (1 )
85
84
if index == # data then
86
85
jb .json = jb .json .. recipeJson
@@ -110,24 +109,24 @@ function CraftSim.CONTROL_PANEL:ForgeFinderExportAll()
110
109
end
111
110
currentIndex = currentIndex + 1
112
111
113
- -- update button
114
- local currentPercent = GUTIL :Round (currentIndex / (numRecipes / 100 ))
112
+ -- -- update button
113
+ -- local currentPercent = GUTIL:Round(currentIndex / (numRecipes / 100))
115
114
116
- CraftSim .CONTROL_PANEL .frame .content .exportForgeFinderButton :SetText (CraftSim .LOCAL :GetText (CraftSim
117
- .CONST .TEXT .CONTROL_PANEL_FORGEFINDER_EXPORTING ) .. " " .. currentPercent .. " %" )
115
+ -- CraftSim.CONTROL_PANEL.frame.content.exportForgeFinderButton:SetText(CraftSim.LOCAL:GetText(CraftSim
116
+ -- .CONST.TEXT.CONTROL_PANEL_FORGEFINDER_EXPORTING) .. " " .. currentPercent .. "%")
118
117
RunNextFrame (mapRecipe )
119
118
else
120
119
-- if finished
121
120
finishExport ()
122
- CraftSim .CONTROL_PANEL .frame .content .exportForgeFinderButton :SetStatus (" READY" )
121
+ -- CraftSim.CONTROL_PANEL.frame.content.exportForgeFinderButton:SetStatus("READY")
123
122
CraftSim .DEBUG :StopProfiling (" FORGEFINDER_EXPORT" )
124
123
end
125
124
end
126
125
127
126
CraftSim .DEBUG :StartProfiling (" FORGEFINDER_EXPORT" )
128
- CraftSim .CONTROL_PANEL .frame .content .exportForgeFinderButton :SetText (CraftSim .LOCAL :GetText (CraftSim .CONST .TEXT
129
- .CONTROL_PANEL_FORGEFINDER_EXPORTING ) .. " 0%" )
130
- CraftSim .CONTROL_PANEL .frame .content .exportForgeFinderButton :SetEnabled (false )
127
+ -- CraftSim.CONTROL_PANEL.frame.content.exportForgeFinderButton:SetText(CraftSim.LOCAL:GetText(CraftSim.CONST.TEXT
128
+ -- .CONTROL_PANEL_FORGEFINDER_EXPORTING) .. " 0%")
129
+ -- CraftSim.CONTROL_PANEL.frame.content.exportForgeFinderButton:SetEnabled(false)
131
130
mapRecipe ()
132
131
end
133
132
end
@@ -174,14 +173,6 @@ function CraftSim.CONTROL_PANEL:EasycraftExportAll()
174
173
return false
175
174
end
176
175
177
- -- -- keeping this for later usage
178
- -- -- finally check if its a dragon isle recipe
179
-
180
- -- local isDragonIsleRecipe = CraftSim.UTIL:IsDragonflightRecipe(recipeInfo.recipeID)
181
- -- if not isDragonIsleRecipe then
182
- -- return false
183
- -- end
184
-
185
176
-- finally check if its a The War Within recipe
186
177
187
178
local isTWWRecipe = CraftSim .UTIL :IsTWWRecipe (recipeInfo .recipeID )
@@ -244,24 +235,24 @@ function CraftSim.CONTROL_PANEL:EasycraftExportAll()
244
235
end
245
236
currentIndex = currentIndex + 1
246
237
247
- -- update button
248
- local currentPercent = GUTIL :Round (currentIndex / (numRecipes / 100 ))
238
+ -- -- update button
239
+ -- local currentPercent = GUTIL:Round(currentIndex / (numRecipes / 100))
249
240
250
- CraftSim .CONTROL_PANEL .frame .content .exportEasycraftButton :SetText (CraftSim .LOCAL :GetText (CraftSim
251
- .CONST .TEXT .CONTROL_PANEL_EASYCRAFT_EXPORTING ) .. " " .. currentPercent .. " %" )
241
+ -- CraftSim.CONTROL_PANEL.frame.content.exportEasycraftButton:SetText(CraftSim.LOCAL:GetText(CraftSim
242
+ -- .CONST.TEXT.CONTROL_PANEL_EASYCRAFT_EXPORTING) .. " " .. currentPercent .. "%")
252
243
RunNextFrame (mapRecipe )
253
244
else
254
245
-- if finished
255
246
finishExport ()
256
- CraftSim .CONTROL_PANEL .frame .content .exportEasycraftButton :SetStatus (" READY" )
247
+ -- CraftSim.CONTROL_PANEL.frame.content.exportEasycraftButton:SetStatus("READY")
257
248
CraftSim .DEBUG :StopProfiling (" EASYCRAFT_EXPORT" )
258
249
end
259
250
end
260
251
261
252
CraftSim .DEBUG :StartProfiling (" EASYCRAFT_EXPORT" )
262
- CraftSim .CONTROL_PANEL .frame .content .exportEasycraftButton :SetText (CraftSim .LOCAL :GetText (CraftSim .CONST .TEXT
263
- .CONTROL_PANEL_EASYCRAFT_EXPORTING ) .. " 0%" )
264
- CraftSim .CONTROL_PANEL .frame .content .exportEasycraftButton :SetEnabled (false )
253
+ -- CraftSim.CONTROL_PANEL.frame.content.exportEasycraftButton:SetText(CraftSim.LOCAL:GetText(CraftSim.CONST.TEXT
254
+ -- .CONTROL_PANEL_EASYCRAFT_EXPORTING) .. " 0%")
255
+ -- CraftSim.CONTROL_PANEL.frame.content.exportEasycraftButton:SetEnabled(false)
265
256
mapRecipe ()
266
257
end
267
258
end
270
261
function CraftSim .CONTROL_PANEL :HandleModuleClose (moduleOption )
271
262
return function ()
272
263
CraftSim .DB .OPTIONS :Save (moduleOption , false )
273
- CraftSim .CONTROL_PANEL .frame .content [moduleOption ]:SetChecked (false )
274
264
end
275
265
end
0 commit comments