Adding highlight by darkening (black alpha) the source when dragging tiles within the Tiles panel.

This commit is contained in:
Jan-Thierry Wegener
2021-06-06 01:30:20 +02:00
parent e8c6e3fe07
commit b9a4e21d3a
@@ -1,6 +1,7 @@
package games.rednblack.editor.plugin.tiled.view.tabs;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.NinePatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
@@ -229,6 +230,8 @@ public class GridTilesTab extends DefaultTab {
@Override
public void touchDragged (InputEvent event, float x, float y, int pointer) {
isDragging = true;
//draggingSource.setColor(new Color(255f / 255f, 94f / 255f, 0f / 255f, 0.5f));
draggingSource.setColor(new Color(0 / 255f, 0 / 255f, 0f / 255f, 0.5f));
}
/**