Achievement cleanup

This commit is contained in:
Anuken
2020-11-30 12:52:10 -05:00
parent 639702ae1a
commit 5c89fa2d2b
2 changed files with 3 additions and 16 deletions

View File

@@ -257,18 +257,6 @@ public class ResearchDialog extends BaseDialog{
return node.content.unlocked() || !node.objectives.contains(i -> !i.complete());
}
public void showToast(String info){
Table table = new Table();
table.actions(Actions.fadeOut(0.5f, Interp.fade), Actions.remove());
table.top().add(info);
table.name = "toast";
table.update(() -> {
table.toFront();
table.setPosition(Core.graphics.getWidth() / 2f, Core.graphics.getHeight() - 21, Align.top);
});
Core.scene.add(table);
}
boolean locked(TechNode node){
return node.content.locked();
}
@@ -451,7 +439,6 @@ public class ResearchDialog extends BaseDialog{
void unlock(TechNode node){
node.content.unlock();
showToast(Core.bundle.format("researched", node.content.localizedName));
checkNodes(root);
hoverNode = null;
treeLayout();