Add missing tooltips to player overview and various missing chat messages

This commit is contained in:
Jonas Herzig
2017-04-20 22:34:59 +02:00
parent 5677fc54cb
commit 8a6ec5191b
3 changed files with 22 additions and 4 deletions

View File

@@ -300,9 +300,15 @@ public class GuiPathing {
ListenableFuture<Void> future = player.start(mod.getCurrentTimeline().getTimeline(), startTime);
overlay.setCloseable(false);
overlay.setMouseVisible(true);
core.printInfoToChat("replaymod.chat.pathstarted");
Futures.addCallback(future, new FutureCallback<Void>() {
@Override
public void onSuccess(@Nullable Void result) {
if (future.isCancelled()) {
core.printInfoToChat("replaymod.chat.pathinterrupted");
} else {
core.printInfoToChat("replaymod.chat.pathfinished");
}
overlay.setCloseable(true);
timePath.setActive(true);
}