Skip to content

Commit

Permalink
Longdesc wasn't working as intended (#522)
Browse files Browse the repository at this point in the history
Now the list of rules should show when no longdesc exists and the
creator's description should show when there is one.
  • Loading branch information
TheGrayAlien authored Oct 4, 2023
1 parent 0319246 commit d3b104a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HouseRules.Configuration/UI/HouseRulesUiGameVr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void Initialize()
int numRules = 13;
int textLength = 0;
int returnCount = 0;
if (string.IsNullOrEmpty(HR.SelectedRuleset.Longdesc))
if (!string.IsNullOrEmpty(HR.SelectedRuleset.Longdesc))
{
textLength = HR.SelectedRuleset.Longdesc.Length;
returnCount = HR.SelectedRuleset.Longdesc.Count(f => f == '\n');
Expand Down
2 changes: 1 addition & 1 deletion HouseRules.Core/LifecycleDirector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ private static string RulesetActiveMessage()
sb.AppendLine(ColorizeString(HR.SelectedRuleset.Description, Color.white));
sb.AppendLine();

if (string.IsNullOrEmpty(HR.SelectedRuleset.Longdesc))
if (!string.IsNullOrEmpty(HR.SelectedRuleset.Longdesc))
{
sb.AppendLine(ColorizeString($"<========== Ruleset Creator's Description ==========>", orange));
sb.AppendLine(ColorizeString($"{HR.SelectedRuleset.Longdesc}", gold));
Expand Down

0 comments on commit d3b104a

Please sign in to comment.