feat(assets): use single texture atlas instead of loading all images individually
This commit is contained in:
@@ -27,14 +27,14 @@ const isAnyOtherMenuOpen = computed(() => {
|
||||
|
||||
onRender((ctx) => {
|
||||
if (isAnyOtherMenuOpen.value) {
|
||||
ctx.drawImage(
|
||||
assets.settings.topScreen.touchScreen.touchScreenDisabled,
|
||||
assets.images.settings.topScreen.touchScreen.touchScreenDisabled.draw(
|
||||
ctx,
|
||||
props.x,
|
||||
props.y,
|
||||
);
|
||||
} else {
|
||||
ctx.drawImage(
|
||||
assets.settings.topScreen.touchScreen.touchScreen,
|
||||
assets.images.settings.topScreen.touchScreen.touchScreen.draw(
|
||||
ctx,
|
||||
props.x,
|
||||
props.y,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user