diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2018-10-31 16:44:20 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2018-10-31 16:44:20 +0100 |
| commit | c9844e36e79a7fcf995c6c1593b987cff538f00a (patch) | |
| tree | a6df5b3cf008af20709f8b67d0945f3da2a02f69 /IconDummy.c4d | |
| parent | 111506601493325aeefb01df6502a4ca27fceb03 (diff) | |
| download | DTMenu.c4d-c9844e36e79a7fcf995c6c1593b987cff538f00a.tar.gz DTMenu.c4d-c9844e36e79a7fcf995c6c1593b987cff538f00a.zip | |
Add Menu_Closable allows menus to be closed without returning Menu_React_Close in the callbacks (was broken since always setting the native menu to permanent)
Rename Symbol -> Icon, InfoCaption -> Description and Caption to Title or Text (Menu_Title, but Menu_Entry_Text)
Add Menu_InstantDescription (shows the description of the current entry instantly in a separate dialog)
Fix deletion of object icons (the object was always deleted regardless if specified or not)
Diffstat (limited to 'IconDummy.c4d')
| -rw-r--r-- | IconDummy.c4d/DefCore.txt | 5 | ||||
| -rw-r--r-- | IconDummy.c4d/Graphics.png | bin | 0 -> 126 bytes | |||
| -rw-r--r-- | IconDummy.c4d/Script.c | 16 |
3 files changed, 21 insertions, 0 deletions
diff --git a/IconDummy.c4d/DefCore.txt b/IconDummy.c4d/DefCore.txt new file mode 100644 index 0000000..3758e17 --- /dev/null +++ b/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/IconDummy.c4d/Graphics.png b/IconDummy.c4d/Graphics.png Binary files differnew file mode 100644 index 0000000..6b1b504 --- /dev/null +++ b/IconDummy.c4d/Graphics.png diff --git a/IconDummy.c4d/Script.c b/IconDummy.c4d/Script.c new file mode 100644 index 0000000..58e5f2e --- /dev/null +++ b/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; +} |
