mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
38 lines
No EOL
830 B
Text
38 lines
No EOL
830 B
Text
function canvas_tool() constructor {
|
|
|
|
node = noone;
|
|
rightTools = [];
|
|
|
|
override = false;
|
|
relative = false;
|
|
|
|
relative_position = [ 0, 0 ];
|
|
drawing_surface = noone;
|
|
_canvas_surface = noone;
|
|
apply_draw_surface = noone;
|
|
|
|
brush_resizable = false;
|
|
mouse_holding = false;
|
|
|
|
use_color_3d = false;
|
|
|
|
subtool = 0;
|
|
|
|
function disable() {
|
|
PANEL_PREVIEW.tool_current = noone;
|
|
}
|
|
|
|
function getTool() { return self; }
|
|
|
|
function init() {}
|
|
|
|
function step(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {}
|
|
|
|
function drawPreview(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {}
|
|
|
|
function drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {}
|
|
|
|
function drawPostOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {}
|
|
|
|
function drawMask(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {}
|
|
} |