fix(settings): wrong submenus drawing order
This commit is contained in:
@@ -33,11 +33,6 @@ onRender((ctx) => {
|
|||||||
ctx.translate(props.x, props.y);
|
ctx.translate(props.x, props.y);
|
||||||
|
|
||||||
if (isOpen.value || animation.playing) {
|
if (isOpen.value || animation.playing) {
|
||||||
assets.images.settings.topScreen.options.language.draw(
|
|
||||||
ctx,
|
|
||||||
0,
|
|
||||||
-48 + animation.stage1Offset,
|
|
||||||
);
|
|
||||||
assets.images.settings.topScreen.options.gbaMode.draw(
|
assets.images.settings.topScreen.options.gbaMode.draw(
|
||||||
ctx,
|
ctx,
|
||||||
48 - animation.stage2Offset,
|
48 - animation.stage2Offset,
|
||||||
@@ -48,6 +43,11 @@ onRender((ctx) => {
|
|||||||
0,
|
0,
|
||||||
-96 + animation.stage2Offset + animation.stage1Offset,
|
-96 + animation.stage2Offset + animation.stage1Offset,
|
||||||
);
|
);
|
||||||
|
assets.images.settings.topScreen.options.language.draw(
|
||||||
|
ctx,
|
||||||
|
0,
|
||||||
|
-48 + animation.stage1Offset,
|
||||||
|
);
|
||||||
|
|
||||||
assets.images.settings.topScreen.options.optionsActive.draw(ctx, 0, 0);
|
assets.images.settings.topScreen.options.optionsActive.draw(ctx, 0, 0);
|
||||||
} else if (isAnyOtherMenuOpen.value) {
|
} else if (isAnyOtherMenuOpen.value) {
|
||||||
|
|||||||
@@ -38,11 +38,6 @@ onRender((ctx) => {
|
|||||||
-48 + animation.stage2Offset,
|
-48 + animation.stage2Offset,
|
||||||
-48 + animation.stage1Offset,
|
-48 + animation.stage1Offset,
|
||||||
);
|
);
|
||||||
assets.images.settings.topScreen.user.userName.draw(
|
|
||||||
ctx,
|
|
||||||
0,
|
|
||||||
-48 + animation.stage1Offset,
|
|
||||||
);
|
|
||||||
assets.images.settings.topScreen.user.message.draw(
|
assets.images.settings.topScreen.user.message.draw(
|
||||||
ctx,
|
ctx,
|
||||||
48 - animation.stage2Offset,
|
48 - animation.stage2Offset,
|
||||||
@@ -53,6 +48,11 @@ onRender((ctx) => {
|
|||||||
0,
|
0,
|
||||||
-96 + animation.stage2Offset + animation.stage1Offset,
|
-96 + animation.stage2Offset + animation.stage1Offset,
|
||||||
);
|
);
|
||||||
|
assets.images.settings.topScreen.user.userName.draw(
|
||||||
|
ctx,
|
||||||
|
0,
|
||||||
|
-48 + animation.stage1Offset,
|
||||||
|
);
|
||||||
|
|
||||||
assets.images.settings.topScreen.user.userActive.draw(ctx, 0, 0);
|
assets.images.settings.topScreen.user.userActive.draw(ctx, 0, 0);
|
||||||
} else if (isAnyOtherMenuOpen.value) {
|
} else if (isAnyOtherMenuOpen.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user