diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-02-13 21:13:36 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-02-13 22:32:44 +0100 |
| commit | edd1359010ce32d5ff6a3b77fcb6bbe7e21b5703 (patch) | |
| tree | 82c00ef38730af6fa4dee2aaafc152922f2e7848 /DTMenu.c4d/IconDummy.c4d | |
| parent | 8bb8f4eea328e75b5a2e17fa82d9392df034e4bc (diff) | |
| download | ObjectsAppend-edd1359010ce32d5ff6a3b77fcb6bbe7e21b5703.tar.gz ObjectsAppend-edd1359010ce32d5ff6a3b77fcb6bbe7e21b5703.zip | |
Update to map based DTMenu
Diffstat (limited to 'DTMenu.c4d/IconDummy.c4d')
| -rw-r--r-- | DTMenu.c4d/IconDummy.c4d/DefCore.txt | 5 | ||||
| -rw-r--r-- | DTMenu.c4d/IconDummy.c4d/Graphics.png | bin | 0 -> 126 bytes | |||
| -rw-r--r-- | DTMenu.c4d/IconDummy.c4d/Script.c | 16 |
3 files changed, 21 insertions, 0 deletions
diff --git a/DTMenu.c4d/IconDummy.c4d/DefCore.txt b/DTMenu.c4d/IconDummy.c4d/DefCore.txt new file mode 100644 index 0000000..3758e17 --- /dev/null +++ b/DTMenu.c4d/IconDummy.c4d/DefCore.txt @@ -0,0 +1,5 @@ +[DefCore]
+id=ID7I
+Name=Menu icon dummy
+Version=4,9,5
+Category=C4D_StaticBack
diff --git a/DTMenu.c4d/IconDummy.c4d/Graphics.png b/DTMenu.c4d/IconDummy.c4d/Graphics.png Binary files differnew file mode 100644 index 0000000..6b1b504 --- /dev/null +++ b/DTMenu.c4d/IconDummy.c4d/Graphics.png 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; +} |
