From 8ccad004939fc95b2bd92226c300c85c9abae28f Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Wed, 3 May 2017 00:05:10 +0200 Subject: Update: many small fixes and more consistency --- SymbolDummy.c4d/Script.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SymbolDummy.c4d/Script.c (limited to 'SymbolDummy.c4d/Script.c') 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; +} -- cgit v1.2.3-54-g00ecf