From 444d6995d3a0f063d0770e9f1a3ad72179d56aaf Mon Sep 17 00:00:00 2001 From: AndcoolSystems Date: Mon, 29 Jul 2024 21:28:50 +0300 Subject: [PATCH] added exp 2024 role --- src/app/modules/header.module.tsx | 2 -- src/app/roles.ts | 5 +++++ src/app/users/[name]/client_code.tsx | 2 +- src/app/workshop/[id]/bandage_engine.module.tsx | 6 +----- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/app/modules/header.module.tsx b/src/app/modules/header.module.tsx index 7489c5f..1d77af0 100644 --- a/src/app/modules/header.module.tsx +++ b/src/app/modules/header.module.tsx @@ -112,8 +112,6 @@ const Header = (): JSX.Element => { }} >Выйти } - - diff --git a/src/app/roles.ts b/src/app/roles.ts index 859600a..5a61a0e 100644 --- a/src/app/roles.ts +++ b/src/app/roles.ts @@ -1,5 +1,10 @@ export const roles = [ + { + id: 1267437920755908689, + title: "Игрок экспериментов 2024", + color: 1357990 + }, { id: 1142141232685006990, title: "Игрок PepeLand 8", diff --git a/src/app/users/[name]/client_code.tsx b/src/app/users/[name]/client_code.tsx index 9802d7d..f442725 100644 --- a/src/app/users/[name]/client_code.tsx +++ b/src/app/users/[name]/client_code.tsx @@ -10,6 +10,7 @@ import { Card, generateSkin } from "@/app/modules/card.module"; import styles from "@/app/styles/me/me.module.css"; import { Me } from "@/app/modules/me.module"; import Link from "next/link"; +import Footer from "@/app/modules/footer.module"; const UsersClient = ({ user }: { user: Users }) => { const [elements, setElements] = useState(null); @@ -62,7 +63,6 @@ const UsersClient = ({ user }: { user: Users }) => { - ); } diff --git a/src/app/workshop/[id]/bandage_engine.module.tsx b/src/app/workshop/[id]/bandage_engine.module.tsx index 87fce52..5411a53 100644 --- a/src/app/workshop/[id]/bandage_engine.module.tsx +++ b/src/app/workshop/[id]/bandage_engine.module.tsx @@ -369,7 +369,6 @@ class Client { canvas_context.drawImage(this.original_canvas, 0, 0); const height = bandage_canvas.height; - //(document.getElementById('position') as HTMLInputElement).max = (12 - height) + ""; let pepe = crop_pepe(bandage_canvas, this.slim, height, this.body_part); let cropped_pepe = document.createElement("canvas"); @@ -493,7 +492,7 @@ export const fillPepe = (input: HTMLCanvasElement | HTMLImageElement, color: Arr data[index] = (r / 255) * color[0]; data[index + 1] = (g / 255) * color[1]; data[index + 2] = (b / 255) * color[2]; - data[index + 3] = a; // альфа-канал остаётся неизменным + data[index + 3] = a; } } } @@ -502,9 +501,6 @@ export const fillPepe = (input: HTMLCanvasElement | HTMLImageElement, color: Arr return canvas; } -/*export function get_skin_type() { - return (document.getElementById("steve") as HTMLInputElement)?.checked ? "steve" : "alex"; -}*/ const hex2rgb = (hex: string) => { const r = parseInt(hex.slice(1, 3), 16);