LDraw.org Discussion Forums

Full Version: New meta in LDConfig for default category icon in editors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys,

the following is addressed mainly to LDCad where the first part in a CATEGORY is used as mascot for it but all other editors. This leads to very strange results where "Slope" is represented by a Duplo Slope 2x2x1,5 or "PLate" by a Duplo Plate 1x2 with overhang. In LDCad this is editable through the pbg files in the AppData folder - not very user friendly.

I suggest adding a new meta to the LDConfig.ldr defining the mascot for the single LDraw categories:

0 !CATEGORY Plate MASCOT 1 16 0 0 0 1 0 0 0 1 0 0 0 1 part.dat DESCRIPTION Plates

Thoughts?

w.
I'd do:
Code:
!MASCOT CATEGORY <Category> DESCRIPTION <description> PART <Matrix> <Part>

Example:
!MASCOT CATEGORY Plate DESCRIPTION Plates PART 1 0 0 0 1 0 0 0 1 part.dat

Reason:
Some Categories are 2 words. This makes parsing much easier.
(2024-04-28, 14:41)Orion Pobursky Wrote: [ -> ]I'd do:
Code:
!MASCOT CATEGORY <Category> DESCRIPTION <description> PART <Matrix> <Part>

Example:
!MASCOT CATEGORY Plate DESCRIPTION Plates PART 1 0 0 0 1 0 0 0 1 part.dat

Reason:
Some Categories are 2 words. This makes parsing much easier.

I would suggest using quotes for easier parsing so:
!MASCOT CATEGORY "Plate" DESCRIPTION "Plates" PART 1 0 0 0 1 0 0 0 1 "part.dat"

Also the matrix part could be optional.