Ticket #19: _DEBUGTOOLBOX.lua

File _DEBUGTOOLBOX.lua, 1.2 KB (added by finticemo, 9 years ago)

minimalized version of _DBTOOLBOX.lua that triggers the crash

Line 
1TITLE = "TOOLBOX v1.3"
2
3--dofile("dawnbringer_lib.lua")
4
5-- Once the library is loaded, the individual scripts will work without loading it themselves
6dofile("../libs/dawnbringer_lib.lua")
7
8function sf_brush()
9 selectbox("Brush",
10 ">RECURSE", sf_brush,
11-- if you comment out the following line, doing the BRUSH, Back, Quit sequence will not crash. Otherwise, it will.
12 ">RECURSE2", sf_brush,
13 "Brush Info (t)", function () dofile("inf_db_BrushInfo.lua"); end,
14 "Crop margins (b)", function () dofile("bru_db_CropMargins.lua"); end,
15 "Brush 2 Image (i)", function () dofile("pic_db_Brush2Picture.lua"); end,
16 "Scale Simple (b)", function () dofile("bru_db_BrushScaleSimple.lua"); end,
17 "Scale Advanced (b)", function () dofile("bru_db_AdvancedScaling.lua"); end,
18 "Extract PenColor (b)", function () dofile("bru_db_ExtractPenColor.lua"); end,
19 "Apply PenColor (b)", function () dofile("bru_db_ApplyColor.lua");end,
20 "Smart Outline WIP (b)", function () dofile("bru_db_smartOutline.lua");end,
21 "[Back]", main
22 );
23end
24-- brush
25
26function _quit()
27 -- nada
28end
29
30function _back(caller)
31 --caller()
32end
33
34function main()
35selectbox(TITLE,
36 ">BRUSH", sf_brush,
37 "[Quit]", _quit
38
39);
40end
41
42main()