Only show diamond time if it exists
This commit is contained in:
parent
692e423223
commit
b93dc95c4a
1 changed files with 16 additions and 13 deletions
|
@ -18,6 +18,8 @@ namespace DiamondTimeViewer.Patches
|
||||||
float diamond = LevelSelect.instance.level.DiamondTime;
|
float diamond = LevelSelect.instance.level.DiamondTime;
|
||||||
|
|
||||||
bool showDiamondTime = false;
|
bool showDiamondTime = false;
|
||||||
|
if (diamond > 0.0f)
|
||||||
|
{
|
||||||
switch (Config.Mode)
|
switch (Config.Mode)
|
||||||
{
|
{
|
||||||
case DisplayMode.Always:
|
case DisplayMode.Always:
|
||||||
|
@ -33,6 +35,7 @@ namespace DiamondTimeViewer.Patches
|
||||||
showDiamondTime = false;
|
showDiamondTime = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string spacingText = "<space=0.5em> ";
|
string spacingText = "<space=0.5em> ";
|
||||||
string diamondText = "";
|
string diamondText = "";
|
||||||
|
|
Loading…
Add table
Reference in a new issue