Spectator Keyframes are now colored blue, and the timespan during which an Entity is spectated is tinted

This commit is contained in:
CrushedPixel
2015-06-03 14:20:32 +02:00
parent 0dbc18c662
commit 01f80294aa
5 changed files with 98 additions and 31 deletions

View File

@@ -138,6 +138,10 @@ public class GuiTimeline extends Gui implements GuiElement {
}
}
drawTimelineCursor(leftTime, rightTime, bodyWidth);
}
protected void drawTimelineCursor(long leftTime, long rightTime, int bodyWidth) {
// Draw the cursor if it's on the current timeline segment
if (cursorPosition >= leftTime && cursorPosition <= rightTime) {
long positionInSegment = cursorPosition - leftTime;