{
  "version": "1.0",
  "timestamp": "2025-05-20T14:30:44.895Z",
  "objects": [
    {
      "name": "I like to count!",
      "id": "1",
      "type": "button",
      "position": {
        "left": "50px",
        "top": "50px",
        "width": "178px",
        "height": "30px"
      },
      "script": "on mousedown\n   put \"buttons: \" & the number of buttons of this card into fld \"tally\"\n   put \"images:\" && the number of images of this card into line 2 of fld \"tally\"\n   put \"fields:\" && the number of fields of this card into the last line of fld \"tally\" +1\n   put \"graphics:\" && the number of graphics of this card into last line of fld \"tally\" +1\n   put \"players:\" && the number of players of this card into last line of fld \"tally\" +1\n   --\n   put \"line count:\" && the number of lines in fld \"tally\" into field \"linecount\"\nend mousedown",
      "properties": {
        "visible": "true",
        "layer": "2",
        "textSize": 16,
        "rotation": 0,
        "foregroundColor": "white",
        "backgroundColor": "137,137,137",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "tally",
      "id": "2",
      "type": "field",
      "position": {
        "left": "251px",
        "top": "50px",
        "width": "382px",
        "height": "208px"
      },
      "script": "on mousedown\n   -- I haven't implemented clickLine at this stage, so this is just a temporary script to do so\n   put the top of me into fTop\n   put the mouseV into vMouse\n   put vMouse - fTop into tMouse\n   put tMouse / 25 into tMouse -- the 25 value here: I'm guessing at the lineHeight of each line!\n   replace \".\" with return in tMouse\n   put line 1 of tMouse into tClickLine\n   put \"clicked line: \" & tClickLine into line 2 of fld \"linecount\"\n   set the textstyle of fld \"tally\" to plain\nend mousedown",
      "properties": {
        "visible": "true",
        "layer": "3",
        "textAlign": "left",
        "scrollable": true,
        "locktext": false,
        "multiline": true,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 16,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": true,
        "foregroundColor": "rgb(0, 0, 0)",
        "backgroundColor": "rgb(255, 255, 255)",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "1px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontFamily": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "plain",
        "fontWeight": "400"
      },
      "content": "<div class=\"field-content\" contenteditable=\"true\" style=\"width: 100%; height: 100%; outline: none; white-space: pre-wrap; font-family: &quot;-apple-system, BlinkMacSystemFont, \\&quot;Segoe UI\\&quot;, Roboto, Arial, sans-serif&quot;, sans-serif;\"></div>"
    },
    {
      "name": "clear",
      "id": "3",
      "type": "button",
      "position": {
        "left": "532px",
        "top": "264px",
        "width": "100px",
        "height": "30px"
      },
      "script": "on mousedown\n   put empty into fld \"tally\"\n   put empty into field \"out\"\n   put \"line count: 0\" into fld \"linecount\"\nend mousedown",
      "properties": {
        "visible": "true",
        "layer": "4",
        "textSize": 16,
        "rotation": 0,
        "foregroundColor": "white",
        "backgroundColor": "137,137,137",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "linecount",
      "id": "4",
      "type": "field",
      "position": {
        "left": "250px",
        "top": "261.5px",
        "width": "200px",
        "height": "75px"
      },
      "script": "",
      "properties": {
        "visible": "true",
        "layer": "6",
        "textAlign": "left",
        "scrollable": false,
        "locktext": true,
        "multiline": false,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 16,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": false,
        "backgroundColor": "transparent",
        "foregroundColor": "rgb(0, 0, 0)",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "0px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontFamily": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      },
      "content": "line count: 0"
    },
    {
      "name": "put",
      "id": "5",
      "type": "button",
      "position": {
        "left": "662px",
        "top": "98px",
        "width": "100px",
        "height": "30px"
      },
      "script": "on mousedown\n   put field \"tally\" into field \"out\"\nend mousedown",
      "properties": {
        "visible": "true",
        "layer": "8",
        "textSize": 16,
        "rotation": 0,
        "foregroundColor": "white",
        "backgroundColor": "137,137,137",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "out",
      "id": "6",
      "type": "field",
      "position": {
        "left": "768px",
        "top": "98px",
        "width": "200px",
        "height": "165px"
      },
      "script": "",
      "properties": {
        "visible": "true",
        "layer": "7",
        "textAlign": "left",
        "scrollable": true,
        "locktext": false,
        "multiline": true,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "rotation": 0,
        "textSize": 16,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "visiblelines": "1",
        "showborder": true,
        "foregroundColor": "rgb(0, 0, 0)",
        "backgroundColor": "rgb(255, 255, 255)",
        "borderColor": "rgb(0, 0, 0)",
        "borderWidth": "1px",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontFamily": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      },
      "content": "<div class=\"field-content\" contenteditable=\"true\" style=\"width: 100%; height: 100%; outline: none; white-space: pre-wrap; font-family: &quot;-apple-system, BlinkMacSystemFont, \\&quot;Segoe UI\\&quot;, Roboto, Arial, sans-serif&quot;, sans-serif;\"></div>"
    },
    {
      "name": "put line 3",
      "id": "7",
      "type": "button",
      "position": {
        "left": "662px",
        "top": "157px",
        "width": "100px",
        "height": "30px"
      },
      "script": "on mousedown\n   put \"3\" into tvar\n   put line tvar of field \"tally\" into line tvar of field \"out\"\n\nend mousedown",
      "properties": {
        "visible": "true",
        "layer": "10",
        "textSize": 16,
        "rotation": 0,
        "foregroundColor": "white",
        "backgroundColor": "137,137,137",
        "borderColor": "rgb(153, 153, 153)",
        "borderWidth": "1px",
        "textAlign": "start",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "fontWeight": "400"
      }
    },
    {
      "name": "card",
      "type": "card",
      "script": "",
      "properties": {}
    }
  ]
}