Merge branches 'pregametutorial' and 'william-gladiators' of ssh://184.154.0.242:25565/min/mineplex into william-gladiators
This commit is contained in:
commit
624e8bbe89
@ -136,7 +136,7 @@ public abstract class TutorialPhase
|
||||
i++;
|
||||
}
|
||||
displayMessage(text);
|
||||
UtilTextMiddle.display("", text.getText(), 0, text.getStayTime(), 0, players);
|
||||
UtilTextMiddle.display((text.getBigText() == null ? "" : text.getBigText()), text.getText(), 0, text.getStayTime(), 0, players);
|
||||
try
|
||||
{
|
||||
Thread.sleep(text.getStayTime() * 50);
|
||||
|
@ -7,6 +7,7 @@ public class TutorialText
|
||||
{
|
||||
|
||||
private String _text;
|
||||
private String _bigText;
|
||||
private int _stayTime;
|
||||
private int _id;
|
||||
private Sound _sound;
|
||||
@ -34,6 +35,24 @@ public class TutorialText
|
||||
this(text, stayTime, id, Sound.NOTE_PLING);
|
||||
}
|
||||
|
||||
public TutorialText(String text, String bigText, int id)
|
||||
{
|
||||
this(text, (int) (Math.round(1.5 * text.length()) + 25), id, Sound.NOTE_PLING);
|
||||
_bigText = bigText;
|
||||
}
|
||||
|
||||
public TutorialText(String text, String bigText, int id, Sound sound)
|
||||
{
|
||||
this(text, (int) (Math.round(1.5 * text.length()) + 25), id, sound);
|
||||
_bigText = bigText;
|
||||
}
|
||||
|
||||
public TutorialText(String text, String bigText, int stayTime, int id)
|
||||
{
|
||||
this(text, stayTime, id, Sound.NOTE_PLING);
|
||||
_bigText = bigText;
|
||||
}
|
||||
|
||||
public String getText()
|
||||
{
|
||||
return _text;
|
||||
@ -59,4 +78,8 @@ public class TutorialText
|
||||
_text = text;
|
||||
}
|
||||
|
||||
public String getBigText()
|
||||
{
|
||||
return _bigText;
|
||||
}
|
||||
}
|
||||
|
@ -237,7 +237,6 @@ public class GameManager implements Listener
|
||||
if(!team.getTutorial().hasEnded())
|
||||
{
|
||||
finished = false;
|
||||
}
|
||||
if(checkForTimer)
|
||||
{
|
||||
if(team.getTutorial().ShowPrepareTimer)
|
||||
@ -246,6 +245,7 @@ public class GameManager implements Listener
|
||||
finished = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(prepTime <= timeUsage)
|
||||
prepTime = timeUsage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user