public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (selectionStart == cursor) hasSelection = false; super.touchUp(event, x, y, pointer, button); }
public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (selectionStart == cursor) hasSelection = false; super.touchUp(event, x, y, pointer, button); }
public void touchUp(InputEvent event, float x, float y, int pointer, int button) { if (selectionStart == cursor) hasSelection = false; super.touchUp(event, x, y, pointer, button); }
@Override public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (selectionStart == cursor) hasSelection = false; super.touchUp(event, x, y, pointer, button); }
public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (selectionStart == cursor) hasSelection = false; super.touchUp(event, x, y, pointer, button); }
@Override public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (button == Buttons.BACK && hasHistoryBack()) { historyBack(); } else if (button == Buttons.FORWARD && hasHistoryForward()) { historyForward(); } else { super.touchUp(event, x, y, pointer, button); } } };
public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if(pressed){ boolean newIsLeft = toggleButton.getX() + toggleButton.getWidth()/2 < background.getWidth()/2; if(toggleListener != null && isLeft != newIsLeft){ toggleListener.widgetToggled(newIsLeft); } isLeft = newIsLeft; animating = true; pressed = false; toggleButton.setDrawable(style.toggleButtonDrawable); } super.touchUp(event, x, y, pointer, button); } }
@Override public void touchUp(InputEvent event, float x, float y, int pointer, int button) { float endx = x + getX(); float endy = y + getY(); vec2.set(endx - startx, endy - starty); // pixels of margin if (vec2.len() < 3) { if (getHeight() - y <= getPadTop() && y < getHeight() && x > 0 && x < getWidth()) if(button == Input.Buttons.LEFT) { // Left mouse button on title toggles collapse toggleCollapsed(); } } super.touchUp(event, x, y, pointer, button); }
@Override public void touchUp(InputEvent event, float x, float y, int pointer, int button) { super.touchUp(event, x, y, pointer, button); // EditorLogger.debug("Touch Up - X: " + x + " Y: " + y); if (draggingMode == DraggingModes.DRAGGING_ACTOR) { Ctx.project.getUndoStack().add(new UndoPosition(selActor, new Vector2(undoOrg))); } else if (draggingMode == DraggingModes.ROTATE_ACTOR) { Ctx.project.getUndoStack().add(new UndoRotation((SpriteActor) selActor, undoRot)); } else if (draggingMode == DraggingModes.SCALE_ACTOR || draggingMode == DraggingModes.SCALE_LOCK_ACTOR) { Ctx.project.getUndoStack().add(new UndoScale((SpriteActor) selActor, new Vector2(undoOrg))); } else if (draggingMode == DraggingModes.DRAGGING_REFPOINT) { Ctx.project.getUndoStack().add(new UndoRefPosition((InteractiveActor) selActor, new Vector2(undoOrg))); } else if (draggingMode == DraggingModes.DRAGGING_BBOX_POINT) { Ctx.project.getUndoStack().add(new UndoBboxPointPos(selActor, vertIndex, new Vector2(undoOrg))); } else if (draggingMode == DraggingModes.DRAGGING_MARKER_0 || draggingMode == DraggingModes.DRAGGING_MARKER_100) { Ctx.project.getUndoStack().add(new UndoDepthVector(scnWidget.getScene(), new Vector2(undoOrg))); } draggingMode = DraggingModes.NONE; return; }