PC-23 - Hotbar Flashing Text

This commit is contained in:
Shaun Bennett 2016-03-28 11:37:35 +11:00
parent 2d30983711
commit 8c1b91cbf5
2 changed files with 8 additions and 1 deletions

View File

@ -275,8 +275,9 @@ public abstract class Tutorial implements Listener, ObjectiveListener
for (Map.Entry<Player, TutorialSession> entry : _playerSessionMap.entrySet())
{
String prefix = entry.getValue().incrementAndGetColorTick() % 2 == 0 ? C.cYellow : C.cGold;
Objective objective = _objectives.get(entry.getValue().getObjectiveIndex());
UtilTextBottom.display(C.cYellow + objective.getDescription(entry.getKey()), entry.getKey());
UtilTextBottom.display(prefix + objective.getDescription(entry.getKey()), entry.getKey());
}
}

View File

@ -13,6 +13,7 @@ public class TutorialSession
private TutorialRegion _region;
private List<Hologram> _hologramList = new ArrayList<>();
private Location _homeLocation;
private int _colorTick;
public TutorialSession()
{
@ -52,4 +53,9 @@ public class TutorialSession
{
_homeLocation = homeLocation;
}
public int incrementAndGetColorTick()
{
return ++_colorTick;
}
}