您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Import Images Directly to Drawaria Canvas
English: This script enhances Drawaria by allowing users to import images directly onto the game canvas using drag-and-drop functionality. It also resizes the canvas to a fixed dimension, potentially for better image consistency. Users can drag an image file onto the game window, and the script will load and display it on the canvas, overwriting any existing drawing. This feature is useful for quickly transferring reference images or creating artwork directly within the Drawaria environment.
Español: Este script mejora Drawaria permitiendo a los usuarios importar imágenes directamente en el lienzo del juego utilizando la funcionalidad de arrastrar y soltar. También redimensiona el lienzo a una dimensión fija, potencialmente para una mejor consistencia de imagen. Los usuarios pueden arrastrar un archivo de imagen a la ventana del juego, y el script lo cargará y mostrará en el lienzo, sobrescribiendo cualquier dibujo existente. Esta función es útil para transferir rápidamente imágenes de referencia o crear arte directamente dentro del entorno de Drawaria.
Español:
🇺🇸 English Instructions | 🇪🇸 Instrucciones en Español |
|
|
Feature / Característica | Details / Detalles |
Canvas Resizing | Directly modifies the `height` and `width` attributes of the canvas element. |
Drag-and-Drop API | Utilizes the `dragover` and `drop` events on the canvas element. |
File Reader API | Reads the dropped file as a data URL to be used as an image source. |
Canvas Rendering | Uses the 2D rendering context (`getContext('2d')`) to draw the image onto the canvas. |
Español:
✅ Compatible Browsers / Navegadores Compatibles | ✅ Required Extensions / Extensiones Requeridas |
Chrome, Firefox, Edge, Opera (Browsers supporting HTML5 Canvas and Drag-and-Drop API) | Tampermonkey or similar userscript manager (Required for script execution) |
Open your userscript manager (e.g., Tampermonkey), find "Drawaria Image Canvas Importer", and disable or delete it.
Método 1 - Gestor de Scripts: Abre tu gestor de userscripts (ej. Tampermonkey), busca "Drawaria Image Canvas Importer" y desactívalo o elimínalo.
You can edit the script and comment out or remove the lines that resize the canvas and add the event listeners.
Método 2 - Eliminar Código del Script: Puedes editar el script y comentar o eliminar las líneas que redimensionan el lienzo y añaden los listeners de eventos.
Español:
Easily bring your artwork onto the Drawaria canvas with drag-and-drop image importing!
¡Trae fácilmente tus obras de arte al lienzo de Drawaria con la importación de imágenes por arrastrar y soltar!
Author: YouTubeDrawaria | Version: 1.1 | License: MIT
Support: Report issues in the comments below | Additional Info: Allows direct image importing onto the Drawaria canvas via drag-and-drop.