Adding highlight by darkening (black alpha) the source when dragging tiles within the Tiles panel.
This commit is contained in:
+3
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user