24.01.2016, 01:26
(This post was last modified: 24.01.2016, 01:27 by Profesores.)
A co Ci konkretnie nie działa?
Squirrel Script
- function onClick(key, x, y, wheel)
- {
- if(key == "LEFT_DOWN" && !IS_CLICKED)
- {
- local pos = getDrawPosition(zEditor.Draw[CURRENT_DRAW].selff);
- local dist = getDistance2D(x, y, pos.x, pos.y);
-
- if(dist <= 300)
- {
- TEXTURE = getCursorTexture();;
- IS_CLICKED = true;
- setCursorTexture("");
- }
- }
- else if(key == "RIGHT_DOWN" && IS_CLICKED)
- {
- IS_CLICKED = false;
- setCursorTexture(TEXTURE);
- }
- }