refactor(common): move button selector corner to common
This commit is contained in:
@@ -43,21 +43,21 @@ useRender((ctx) => {
|
||||
|
||||
ctx.globalAlpha = props.opacity;
|
||||
|
||||
ctx.drawImage(assets.home.bottomScreen.buttons.corner, x, y);
|
||||
ctx.drawImage(assets.common.selectorCorner, x, y);
|
||||
|
||||
ctx.save();
|
||||
ctx.scale(-1, 1);
|
||||
ctx.drawImage(assets.home.bottomScreen.buttons.corner, -(x + w), y);
|
||||
ctx.drawImage(assets.common.selectorCorner, -(x + w), y);
|
||||
ctx.restore();
|
||||
|
||||
ctx.save();
|
||||
ctx.scale(1, -1);
|
||||
ctx.drawImage(assets.home.bottomScreen.buttons.corner, x, -(y + h));
|
||||
ctx.drawImage(assets.common.selectorCorner, x, -(y + h));
|
||||
ctx.restore();
|
||||
|
||||
ctx.save();
|
||||
ctx.scale(-1, -1);
|
||||
ctx.drawImage(assets.home.bottomScreen.buttons.corner, -(x + w), -(y + h));
|
||||
ctx.drawImage(assets.common.selectorCorner, -(x + w), -(y + h));
|
||||
ctx.restore();
|
||||
});
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 80 B |
Reference in New Issue
Block a user