X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftracker%2FItems.js;h=9ec71e00223f6dbc5d670c357009144b1f32b78f;hb=1a3d040147c19d24b8d02ec8e594eb06b8efc1ff;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..9ec71e0 100644 --- a/resources/js/components/tracker/Items.js +++ b/resources/js/components/tracker/Items.js @@ -1,102 +1,192 @@ 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} ${y}) scale(${s || 0.85})`; + const Items = () => { const { state } = useTracker(); - return
-
- -
-
+ return { + e.preventDefault(); + e.stopPropagation(); + }} + > + + + + + + + + + + + + + + + + + + + + + + + + + + + {state['mm-medallion'] === 'bombos' ? + MM + : null} + {state['tr-medallion'] === 'bombos' ? + TR + : null} + + + + {state['mm-medallion'] === 'ether' ? + MM + : null} + {state['tr-medallion'] === 'ether' ? + TR + : null} + + + + {state['mm-medallion'] === 'quake' ? + MM + : null} + {state['tr-medallion'] === 'quake' ? + TR + : null} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
-
- -
-
- -
-
+ + + + -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -
-
- -
-
- -
-
- - -
-
- -
-
- -
-
- -
-
- -
-
; + + ; }; export default Items;