Hi Frederick, so the little clusters of related commands like the circles is called a "command set".
There are 2 files that make up a command set, one is a .htm file for the UI and the other is an .xml file that lists the commands in it.
For the circles these are the files Circles.htm and Circles.xml which you can find in the commands folder inside MoI's install folder.
Edit the Circles.xml file by adding in an entry for "slot", like this:
<commandset>
<command>circle</command>
<command>circlediameter</command>
<command>circle3pt</command>
<command>circletangent</command>
<command>slot</command>
</commandset>
Edit the Circles.htm file by by putting in a command button like this:
<html>
<body class="CommandSetBody">
<moi:CommandButton icon="moi://ui/icons/CircleCenterIcon.png" command="circle"><moi:Text textid="CircleCenter"></moi:CommandButton>
<moi:SmallSpacer />
<moi:CommandButton icon="moi://ui/icons/CircleDiameterIcon.png" command="circlediameter"><moi:Text textid="CircleDiameter"></moi:CommandButton>
<moi:SmallSpacer />
<moi:CommandButton icon="moi://ui/icons/Circle3ptIcon.png" command="circle3pt"><moi:Text textid="Circle3pt"></moi:CommandButton>
<moi:SmallSpacer />
<moi:CommandButton icon="moi://ui/icons/CircleTangentIcon.png" command="circletangent"><moi:Text textid="CircleTangent"></moi:CommandButton>
<moi:SmallSpacer />
<moi:CommandButton icon="moi://ui/icons/SlotIcon.png" command="slot">Slot</moi:CommandButton>
</body>
</html>
Then the last thing is to create a bitmap image for button, that should be a 64x64 pixel sized PNG file named SlotIcon.png which goes in the /ui/icons directory.
With that set up you should then have a 5th entry for "Slot" added into the Draw curve > Circles command set.
You will need to repeat this process with installs for new versions.
- Michael
|