2 lines
1.8 KiB
Plaintext
2 lines
1.8 KiB
Plaintext
[1,{"AltLookAngle":{"x":0,"y":0,"z":0},"Autoraise":true,"ColorDiffuse":{"a":1,"b":1,"g":1,"r":1},"CustomImage":{"CustomToken":{"MergeDistancePixels":15,"Stackable":false,"StandUp":false,"Thickness":0.1},"ImageScalar":1,"ImageSecondaryURL":"","ImageURL":"https://i.ibb.co/YXjvkMn/Arkham-Uptown-Jokubas-Uogintas.jpg","WidthScale":0},"Description":"Click the 'Apply' button to load this image.","DragSelectable":true,"GMNotes":"","Grid":true,"GridProjection":false,"GUID":"f4a462","Hands":true,"HideWhenFaceDown":false,"IgnoreFoW":false,"LayoutGroupSortIndex":0,"Locked":false,"LuaScript":"function onLoad()\n local params = {}\n params.click_function = 'updatePlayarea'\n params.function_owner = self\n params.label = 'Apply'\n params.tooltip = 'Left-Click: Apply image\\nRight-Click: Revert to default'\n params.position = { 0, 0.06, -1.45 }\n params.height = 300\n params.width = 675\n params.color = { 0, 0, 0 }\n params.font_size = 200\n params.font_color = { 1, 1, 1 }\n self.createButton(params)\nend\n\nfunction updatePlayarea(_, _, isRightClick)\n local imageswapper = getObjectFromGUID(\"b7b45b\")\n\n -- error handling\n if imageswapper == nil then\n printToAll(\"Image swapper could not be found!\", \"Orange\")\n return\n end\n\n -- get default image when right-clicked, else load its own image\n if isRightClick then\n imageswapper.call(\"updateSurface\")\n else\n imageswapper.call(\"updateSurface\", self.getCustomObject().image)\n end\nend\n","LuaScriptState":"","MeasureMovement":false,"Name":"Custom_Token","Nickname":"Uptown","Snap":true,"Sticky":true,"Tags":["ImageSwapperTile"],"Tooltip":true,"Transform":{"posX":0,"posY":2,"posZ":0,"rotX":0,"rotY":270,"rotZ":0,"scaleX":1,"scaleY":1,"scaleZ":1},"Value":0,"XmlUI":""}]
|