import{_ as s,o as a,c as e,Q as l}from"./chunks/framework.1169fbc9.js";const d=JSON.parse('{"title":"Clickables","description":"","frontmatter":{},"headers":[],"relativePath":"public/lit/docs/clickables.md","filePath":"public/lit/docs/clickables.md","lastUpdated":1701137263000}'),n={name:"public/lit/docs/clickables.md"},t=l(`

Clickables

Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

Useful functions for dealing with achievements and implementing their effects:

Clickables should be formatted like this:

js
clickables: {
    rows: # of rows,
    cols: # of columns,
    11: {
        display() {return "Blah"},
        etc
    }
    etc
}
clickables: {
    rows: # of rows,
    cols: # of columns,
    11: {
        display() {return "Blah"},
        etc
    }
    etc
}

Features:

You can also use these features on the clickables object to add a button above all the clickables, for implementing a respec button or similar.

`,12),o=[t];function p(c,i,r,u,h,y){return a(),e("div",null,o)}const b=s(n,[["render",p]]);export{d as __pageData,b as default};