Drawaria Power Drawing Tools

Combines Rapid Drawing and Pattern Bot with a modern UI for Drawaria.online

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
YouTubeDrawaria
今日安裝
0
安裝總數
14
評價
0 0 0
版本
1.0
建立日期
2025-05-15
更新日期
2025-05-15
尺寸
54.5 KB
授權條款
MIT
腳本執行於

- Rapid Drawing (Script 1 Adaptado):

UI en la pestaña "Rapid Draw" con inputs para configurar el comportamiento.
createAdditionalSockets(): Crea nuevos WebSockets y (gracias al interceptor global) se añaden a managedSockets.
startRapidDrawing() / stopRapidDrawing(): Controlan el proceso.
sendRapidDrawCommandsLogic(): Envía los comandos a todos los sockets en managedSockets que estén abiertos.

- Pattern Bot (Script 2 Adaptado):

UI en la pestaña "Pattern Bot". Las funciones originales PatternSelector, BotControl, DrawingControls se llaman para construir esta parte.
Las clases Player, Connection, Room, Actions se han mantenido en gran medida, pero:
Connection.prototype.open: Ya no llama a serverconnect. Crea un nuevo WebSocket que será interceptado. Almacena connectString para enviarlo cuando el socket esté listo (después de recibir '40' o en onopen).
Connection.prototype.socket: Se le asigna el socket creado.
Connection.prototype.onmessage: Es el manejador específico del bot. El interceptor global le pasa los mensajes si el socket coincide.
Se ha añadido startHeartbeat y stopHeartbeat a Connection para mantener viva la conexión del bot.
Las funciones de dibujo de patrones (pb_drawPattern, pb_execute, pb_drawcmd, pb_getRainbowColor, pb_clamp, pb_delay) se han prefijado con pb_ para evitar conflictos de nombres y asegurar que usan las variables correctas (pb_executionLine, pb_drawing_active).
pb_drawcmd ahora toma coordenadas 0-100 como entrada y las normaliza internamente a 0-1, como en el script original 2.
window.myRoom se mantiene por si alguna parte del código original (o futuras) lo necesita para información de la sala principal.