ST UI Button - ironmonk88/monks-module-wiki GitHub Wiki

UI Button

Changes the image of the tile for the triggering player only. Other players will still see the original image unless they trigger the tile themselves.

Add your desired click trigger method, then add the respective auto-landing for that click trigger following the second Temporary Tile Image action to make it into a button; make sure the Stop When Reached In Code box is checked on the landing. Any actions you want running on the click trigger should follow the landing.

Setup Required

Setup Tab

  • When: Hover In & Hover Out, and whatever click trigger you want.

Actions

Click here to view Tile Template JSON Data

Copy & paste this into Notepad and save it as a .JSON file. Then import it using MATT's Tile Templates.

{
  "flags": {
    "monks-active-tiles": {
      "name": "",
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "all",
      "trigger": [
        "",
        "hoverin",
        "hoverout"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "vision": true,
      "pertoken": false,
      "minrequired": 0,
      "cooldown": null,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "anchor",
          "data": {
            "tag": "_hoverin",
            "stop": true
          },
          "id": "JDgHfytLUXCywjpC"
        },
        {
          "action": "tempimage",
          "data": {
            "entity": {
              "id": "tile",
              "name": "This Tile"
            },
            "img": "cat.png",
            "showto": "trigger"
          },
          "id": "vP9XTFjQvRdshBeF"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "_hoverout",
            "stop": true
          },
          "id": "2GX2zMe8M71FCppP"
        },
        {
          "action": "tempimage",
          "data": {
            "entity": {
              "id": "tile",
              "name": "This Tile"
            },
            "img": "blank.png",
            "showto": "trigger"
          },
          "id": "P1nlFijDOnaZrvmQ"
        }
      ],
      "files": []
    },
    "tagger": {},
    "exportSource": {
      "world": "module-assembly",
      "system": "pf2e",
      "coreVersion": "12.330",
      "systemVersion": "6.2.0"
    }
  },
  "texture": {
    "src": null,
    "scaleX": 1,
    "scaleY": 1,
    "tint": "#ffffff",
    "anchorX": 0.5,
    "anchorY": 0.5,
    "offsetX": 0,
    "offsetY": 0,
    "fit": "fill",
    "rotation": 0,
    "alphaThreshold": 0.75
  },
  "width": 200,
  "height": 200,
  "rotation": 0,
  "alpha": 1,
  "elevation": 0,
  "occlusion": {
    "mode": 0,
    "alpha": 0
  },
  "restrictions": {
    "light": false,
    "weather": false
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "xXwVoMQgwbbXNXx0",
  "name": "UI_Button_v2.0",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

  • Foundry 12.330
  • MATT 12.02
⚠️ **GitHub.com Fallback** ⚠️