Skip to content

Commit

Permalink
added exp 2024 role
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jul 29, 2024
1 parent 8d156b3 commit 444d699
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/app/modules/header.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ const Header = (): JSX.Element => {
}}
><img alt="" src="/static/icons/logout.svg" />Выйти</a>
}


</div>
</CSSTransition>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/app/roles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@

export const roles = [
{
id: 1267437920755908689,
title: "Игрок экспериментов 2024",
color: 1357990
},
{
id: 1142141232685006990,
title: "Игрок PepeLand 8",
Expand Down
2 changes: 1 addition & 1 deletion src/app/users/[name]/client_code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<JSX.Element[]>(null);
Expand Down Expand Up @@ -62,7 +63,6 @@ const UsersClient = ({ user }: { user: Users }) => {
</div>
</div>
</Me>

</body>
);
}
Expand Down
6 changes: 1 addition & 5 deletions src/app/workshop/[id]/bandage_engine.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}
}
}
Expand All @@ -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);
Expand Down

0 comments on commit 444d699

Please sign in to comment.