Please download the latest version of this plugin from the plugin store.![]()

Dummy.lua

Code: Select all Reset
-- prevent the draft loaded if the TheoTown version is not supported-- only for plugins that published outside plugin storeif Runtime.getVersionCode() >= 1937 then-- create a dummy drafts-- the drafts will be added while initfor i=1, 8 doDraft.append([[[{"id": "$dummy]]..i..[[","type": "award","title": "Dummy size ]]..i..[[ x ]]..i..[[","category": "$dummyfolder00","width": ]]..i..[[,"height": ]]..i..[[,"frames": [{"bmp": "dummy_frames.png"}],"script": "main.lua","draw ground": true,"max count": 1,"build time": 0}]]])endend-- dialog to select hidden draft-- the draft only can be selected with this toollocal function showDraftDialog()local dialog = GUI.createDialog{w = 256,h = 256,

Code: Select all Reset
local activeLayer = 1local buildingId = 'buildingId'local layer = Array{Array{1,'animationId',1,1,1,1,0,0,0,1}} -- Array with contentslocal temp = {} -- Empty tablelocal toDisplay = {} -- Empty tablelocal toFile = Array() -- Empty array-- create a table to store animation id from userlocal function userAnimationId()return Util.optStorage(TheoTown.getStorage(), 'userAnimationId')end-- functions to facilitate access to get and set values in nested arrays-- recommended for values that is stored on child table of tablelocal function getDirection(index)local index = index or activeLayerreturn layer[index][1]endlocal function setDirection(newState)layer[activeLayer][1] = newStateendlocal function getAnimationId(index)local index = index or activeLayerreturn layer[index][2]endlocal function setAnimationId(newState)layer[activeLayer][2] = newStateendlocal function getAbsX(index)
main.json

Code: Select all Reset
[{"id": "$dummyfolder00","type": "category","frames": [null],"hidden": "true"},{"id": "$dummy_generator_00","title": "Animation Dev. Tool","text": "Attach a night lights or animation to your plugin easily.","author": "ian`","type": "tool","script": "dummy.lua"}]