Experimental flow display
This commit is contained in:
@@ -360,6 +360,8 @@ public class SettingsMenuDialog extends SettingsDialog{
|
||||
if(!mobile){
|
||||
Core.settings.put("swapdiagonal", false);
|
||||
}
|
||||
|
||||
graphics.checkPref("flow", false);
|
||||
}
|
||||
|
||||
private void back(){
|
||||
|
||||
@@ -454,6 +454,9 @@ public class PlacementFragment extends Fragment{
|
||||
//setup hovering tile
|
||||
if(!Core.scene.hasMouse() && topTable.hit(v.x, v.y, false) == null){
|
||||
hoverTile = world.tileWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
|
||||
if(hoverTile != null && hoverTile.entity != null){
|
||||
hoverTile.entity.updateFlow(true);
|
||||
}
|
||||
}else{
|
||||
hoverTile = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user