From 45cd557b3412ff9ed9187dd6536fdedcce27cbdb Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Wed, 3 May 2017 00:04:44 +0200 Subject: Update: many small fixes and more consistency --- SymbolDummy.c4d/DefCore.txt | 5 +++++ SymbolDummy.c4d/Graphics.png | Bin 0 -> 126 bytes SymbolDummy.c4d/Script.c | 16 ++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 SymbolDummy.c4d/DefCore.txt create mode 100644 SymbolDummy.c4d/Graphics.png create mode 100644 SymbolDummy.c4d/Script.c (limited to 'SymbolDummy.c4d') diff --git a/SymbolDummy.c4d/DefCore.txt b/SymbolDummy.c4d/DefCore.txt new file mode 100644 index 0000000..5592096 --- /dev/null +++ b/SymbolDummy.c4d/DefCore.txt @@ -0,0 +1,5 @@ +[DefCore] +id=MS7I +Name=Menu symbol dummy +Version=4,9,5 +Category=C4D_StaticBack diff --git a/SymbolDummy.c4d/Graphics.png b/SymbolDummy.c4d/Graphics.png new file mode 100644 index 0000000..6b1b504 Binary files /dev/null and b/SymbolDummy.c4d/Graphics.png differ 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