Well, I ripped this DirList function out of the Diagram Editor with Scalable Graphics, which I made before the Play-Test Applet (which only became useful after I had equiped the ID with a generic AI). The 'type' and xDef stuff are a legacy from that, because it did have inputs to select the piece set (e.g. alfaerie or xboard), piece and board colors. The Play-Test Applet always uses the alfaeriePNG35 set, and fixed colors, so I probably replaced the use of 'type' by a hard-coded directory name, and the xDef parameters are never used. (The were used in the URL to an off-site rendering engine to request the colors it should use in rendering the pieces and their background. This currently does not work unless you disable the feauter of your browser that forbids access to http sites from https pages.)
Well, I ripped this DirList function out of the Diagram Editor with Scalable Graphics, which I made before the Play-Test Applet (which only became useful after I had equiped the ID with a generic AI). The 'type' and xDef stuff are a legacy from that, because it did have inputs to select the piece set (e.g. alfaerie or xboard), piece and board colors. The Play-Test Applet always uses the alfaeriePNG35 set, and fixed colors, so I probably replaced the use of 'type' by a hard-coded directory name, and the xDef parameters are never used. (The were used in the URL to an off-site rendering engine to request the colors it should use in rendering the pieces and their background. This currently does not work unless you disable the feauter of your browser that forbids access to http sites from https pages.)