X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Ftracker%2FItems.js;h=e991d0bcc6d2aee11070e4a972d21a489a8a807a;hb=9a4e2305bb37cb8c62e3ad332f4a2bf45f720a18;hp=fb47824034ac17cf1be23badc53307222c4fa72c;hpb=6a65eac02f94f00fdd2d56ad8feddf5d9476aa1e;p=alttp.git diff --git a/resources/js/components/tracker/Items.js b/resources/js/components/tracker/Items.js index fb47824..e991d0b 100644 --- a/resources/js/components/tracker/Items.js +++ b/resources/js/components/tracker/Items.js @@ -4,135 +4,238 @@ import ToggleIcon from './ToggleIcon'; import { BOTTLE_CONTENTS } from '../../helpers/tracker'; import { useTracker } from '../../hooks/tracker'; +const transform = (x, y, s) => `translate(${x * 0.2} ${y * 0.2}) scale(${(s || 0.85) * 0.2})`; + const Items = () => { const { state } = useTracker(); - return