The-Boardgame-Insert-Toolkit icon indicating copy to clipboard operation
The-Boardgame-Insert-Toolkit copied to clipboard

Documentation Problems

Open leberschnitzel opened this issue 4 years ago • 0 comments

I'm just starting out with this and noticed some problems / mistakes in the example:

https://github.com/IdoMagal/The-Boardgame-Insert-Toolkit/#some-explanation The example is missing a "," after the box-lid closing bracket, causing an error. The example code also doesn't result in the image below it, it results in this one: image So there seems to be something wrong with the label part.

After some tinkering I think this is the right code for the example:

[   "example 1",
    [
        [ BOX_SIZE_XYZ,             [110.0, 180.0, 22.0] ],
        [ ENABLED_B,                t],
        [ BOX_LID,
            [
                [ LID_FIT_UNDER_B,      f],
                [ LID_CUTOUT_SIDES_4B, [f,f,t,t]],
                [ LID_SOLID_B, f],
                [ LID_HEIGHT, 15 ],
				[ LABEL,
					[
						[ LBL_TEXT,     "Skull     and"],
						[ LBL_SIZE,     AUTO ],
						[ ROTATION,     45 ],
						[ POSITION_XY, [ 2,-2]],
					]
				],
				[ LABEL,
					[
						[ LBL_TEXT,     "Crossbones"],
						[ LBL_SIZE,     AUTO ],
						[ ROTATION,     315 ],
						[ POSITION_XY, [ -4,-0]],
					]
				],      
            ]
        ],
        [   BOX_COMPONENT,
            [
                [CMP_COMPARTMENT_SIZE_XYZ,              [ 22, 60.0, 20.0] ],
                [CMP_NUM_COMPARTMENTS_XY,               [2,2] ],
                [CMP_SHAPE,                             SQUARE],
                [CMP_SHAPE_ROTATED_B,                   f],
                [CMP_SHAPE_VERTICAL_B,                  f],
                [CMP_PADDING_XY,                        [15,12]],
                [CMP_PADDING_HEIGHT_ADJUST_XY,          [-5, 0] ],
                [CMP_MARGIN_4B,                         [t,f,f,f]],
                [CMP_CUTOUT_SIDES_4B,                   [f,f,f,t]],
                [ROTATION,                              5 ],
                [POSITION_XY,                           [CENTER,CENTER]],
                [LABEL,               
                    [
                        [LBL_TEXT,        [   
                                            ["backleft", "backright"],
                                            ["frontleft", "frontright"],
                                        ]
                        ],
                        [LBL_PLACEMENT,     FRONT],
                        [ ROTATION,         10],
                        [ LBL_SIZE,         AUTO],
                        [ POSITION_XY,      [ -4,-2]],
                        [ LBL_FONT,         "Times New Roman:style=bold italic"],
                    ]
                ],  
            ]
        ],
       [ BOX_COMPONENT,
            [
                [CMP_NUM_COMPARTMENTS_XY,       [1,1]],
                [CMP_COMPARTMENT_SIZE_XYZ,      [ 60.0, 10.0, 5.0] ],
                [POSITION_XY,                   [CENTER,2]],
            ]
        ],                              
    ]
]

image

As you can see there are still differences though: The bottom "latch" from the example picture is missing and the indents on the lid are different.

leberschnitzel avatar Sep 27 '20 11:09 leberschnitzel