X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Ftracker%2FItems.js;h=e991d0bcc6d2aee11070e4a972d21a489a8a807a;hb=9a4e2305bb37cb8c62e3ad332f4a2bf45f720a18;hp=712ee6cf97bdcfef966cd5bf937d0e76826c0e4d;hpb=b5a50d74cf042fa7fc874d8184dc37ae20bb74dd;p=alttp.git diff --git a/resources/js/components/tracker/Items.js b/resources/js/components/tracker/Items.js index 712ee6c..e991d0b 100644 --- a/resources/js/components/tracker/Items.js +++ b/resources/js/components/tracker/Items.js @@ -1,102 +1,241 @@ import React from 'react'; -import CountDisplay from './CountDisplay'; 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