PC-23 - Hotbar Flashing Text
This commit is contained in:
parent
2d30983711
commit
8c1b91cbf5
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user