Added the ability to have title AND subtitle per TutorialText.
This commit is contained in:
parent
0619fb857f
commit
8d7b03e3f6
@ -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;
|
||||
@ -33,6 +34,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()
|
||||
{
|
||||
@ -58,5 +77,9 @@ public class TutorialText
|
||||
{
|
||||
_text = text;
|
||||
}
|
||||
|
||||
|
||||
public String getBigText()
|
||||
{
|
||||
return _bigText;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user