summaryrefslogtreecommitdiffstats
path: root/SymbolDummy.c4d/Script.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2017-05-03 00:05:10 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2017-05-03 00:05:10 +0200
commit8ccad004939fc95b2bd92226c300c85c9abae28f (patch)
tree2b5a7fa1e1dc985f235a307c7839353239e8bbda /SymbolDummy.c4d/Script.c
parent500e5129648d4631720cab8f639dbdfcf96e4311 (diff)
downloadDTMenu.c4d-8ccad004939fc95b2bd92226c300c85c9abae28f.tar.gz
DTMenu.c4d-8ccad004939fc95b2bd92226c300c85c9abae28f.zip
Update: many small fixes and more consistency
Diffstat (limited to 'SymbolDummy.c4d/Script.c')
-rw-r--r--SymbolDummy.c4d/Script.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/SymbolDummy.c4d/Script.c b/SymbolDummy.c4d/Script.c
new file mode 100644
index 0000000..4032726
--- /dev/null
+++ b/SymbolDummy.c4d/Script.c
@@ -0,0 +1,16 @@
+#strict 2
+
+static const DT_Menu_SymbolDummy = MS7I;
+
+func SetSymbol(id symbol, int nr)
+{
+ SetGraphics(0, this, symbol);
+ SetPicture(GetDefCoreVal("Picture", "DefCore", symbol, 0) + nr * GetDefCoreVal("Picture", "DefCore", symbol, 2), GetDefCoreVal("Picture", "DefCore", symbol, 1), GetDefCoreVal("Picture", "DefCore", symbol, 2), GetDefCoreVal("Picture", "DefCore", symbol, 3));
+ return this;
+}
+
+func SetColor(int color)
+{
+ SetClrModulation(color);
+ return this;
+}