mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Prevent breaking win streak label for desktop game
This commit is contained in:
@@ -29,4 +29,5 @@ public interface IVQuestStats {
|
||||
IButton getLblZep();
|
||||
|
||||
boolean isChallengesView();
|
||||
boolean allowHtml();
|
||||
}
|
||||
|
||||
@@ -399,9 +399,16 @@ public class QuestUtil {
|
||||
|
||||
view0.getLblNextChallengeInWins().setText(str);
|
||||
|
||||
view0.getLblWinStreak().setText(
|
||||
"Win streak: " + qA.getWinStreakCurrent()
|
||||
+ " (Best: " + qA.getWinStreakBest() + ")");
|
||||
if (view0.allowHtml()) {
|
||||
view0.getLblWinStreak().setText(
|
||||
"<html>Win streak: " + qA.getWinStreakCurrent()
|
||||
+ "<br> (Best: " + qA.getWinStreakBest() + ")</html>");
|
||||
}
|
||||
else {
|
||||
view0.getLblWinStreak().setText(
|
||||
"Win streak: " + qA.getWinStreakCurrent()
|
||||
+ " (Best: " + qA.getWinStreakBest() + ")");
|
||||
}
|
||||
|
||||
// Current deck message
|
||||
final IButton lblCurrentDeck = view0.getLblCurrentDeck();
|
||||
|
||||
Reference in New Issue
Block a user