feat: centralize all screen related callbacks in useScreen
This commit is contained in:
@@ -4,6 +4,8 @@ const props = defineProps<{
|
||||
y: number;
|
||||
}>();
|
||||
|
||||
const { onRender } = useScreen();
|
||||
|
||||
const settingsStore = useSettingsStore();
|
||||
const menusContext = inject<{
|
||||
isSubmenuSelected: ComputedRef<boolean>;
|
||||
@@ -23,7 +25,7 @@ const isAnyOtherMenuOpen = computed(() => {
|
||||
return false;
|
||||
});
|
||||
|
||||
useRender((ctx) => {
|
||||
onRender((ctx) => {
|
||||
if (isAnyOtherMenuOpen.value) {
|
||||
ctx.drawImage(
|
||||
assets.settings.topScreen.touchScreen.touchScreenDisabled,
|
||||
|
||||
Reference in New Issue
Block a user