diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2017-05-03 00:04:44 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2017-05-03 00:04:44 +0200 |
| commit | 45cd557b3412ff9ed9187dd6536fdedcce27cbdb (patch) | |
| tree | 65d983cccc06a0321525933ffa938b11e2ce8fd5 /SymbolDummy.c4d/Script.c | |
| parent | 4f92fd5c1aed5e5db2b92614a415fe48b7824713 (diff) | |
| download | DTMenuDebug.c4d-45cd557b3412ff9ed9187dd6536fdedcce27cbdb.tar.gz DTMenuDebug.c4d-45cd557b3412ff9ed9187dd6536fdedcce27cbdb.zip | |
Update: many small fixes and more consistency
Diffstat (limited to 'SymbolDummy.c4d/Script.c')
| -rw-r--r-- | SymbolDummy.c4d/Script.c | 16 |
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; +} |
