23 lines
350 B
Vue
23 lines
350 B
Vue
<script setup lang="ts">
|
|
const props = defineProps<{
|
|
x: number;
|
|
y: number;
|
|
opacity: number;
|
|
}>();
|
|
|
|
const { assets } = useAssets();
|
|
|
|
useRender((ctx) => {
|
|
ctx.globalAlpha = props.opacity;
|
|
ctx.drawImage(
|
|
assets.home.bottomScreen.buttons.downloadPlay,
|
|
props.x,
|
|
props.y,
|
|
);
|
|
});
|
|
|
|
defineOptions({
|
|
render: () => null,
|
|
});
|
|
</script>
|