diff options
Diffstat (limited to 'DTMenu.c4d/IconDummy.c4d/Script.c')
| -rw-r--r-- | DTMenu.c4d/IconDummy.c4d/Script.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/DTMenu.c4d/IconDummy.c4d/Script.c b/DTMenu.c4d/IconDummy.c4d/Script.c new file mode 100644 index 0000000..58e5f2e --- /dev/null +++ b/DTMenu.c4d/IconDummy.c4d/Script.c @@ -0,0 +1,16 @@ +#strict 2 + +static const DT_Menu_IconDummy = ID7I; + +func SetIcon(id icon, int nr) +{ + SetGraphics(0, this, icon); + SetPicture(GetDefCoreVal("Picture", "DefCore", icon, 0) + nr * GetDefCoreVal("Picture", "DefCore", icon, 2), GetDefCoreVal("Picture", "DefCore", icon, 1), GetDefCoreVal("Picture", "DefCore", icon, 2), GetDefCoreVal("Picture", "DefCore", icon, 3)); + return this; +} + +func SetColor(int color) +{ + SetClrModulation(color); + return this; +} |
