onConfigureClosed (#6523)

* onConfigureClosed

* Run the closing of the previous block's config on the opening of another
This commit is contained in:
Matthew (or Maya) Peng
2022-01-23 16:34:28 -08:00
committed by GitHub
parent e2658ba497
commit 716702623d
2 changed files with 7 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ public class BlockConfigFragment extends Fragment{
}
public void showConfig(Building tile){
if(configTile != null) configTile.onConfigureClosed();
if(tile.configTapped()){
configTile = tile;
@@ -82,6 +83,7 @@ public class BlockConfigFragment extends Fragment{
}
public void hideConfig(){
if(configTile != null) configTile.onConfigureClosed();
configTile = null;
table.actions(Actions.scaleTo(0f, 1f, 0.06f, Interp.pow3Out), Actions.visible(false));
}